Awesome video and very smooth explanations. Thank you Women’s always do something special they always keep things pretty easy, organized and clean. Learning awk and English at the same time I learned that armoire in English is closet. By the what is the name of house fourniture closet, bed chair in English ?
Excellent stuff thanks Debra - very clear. A noob speaking here. Where did you get the AWK manual from or the the link you mentioned? Thanks again from New Zealand
Thank you.. May I ask how did you know that `head` command can have a `-Number` to get the head lines ... it is not written in the man pages... only `-n Number` .. ?
Diaa, I cannot tell you exactly how I know this. I have been using `head` since my days at AT&T Bell Labs back in the 1980's. I am sure that someone taught it to me that way and I have been using it ever since!
@@baruchben-david4196 Thank You :) good to remember… but, my main question was that in video head was used like “head -5” not “head -n 5” which was a new way for me ( but, surprisingly.. after seeing it in this video, i rarely use -n , unless I am passing lines count in a script to head ,, which rarely happens ) .. Thank You :) again
Hi Debra - I like your tip on NR==1 {next;}. I've found using FNR>1 has a measurable impact on performance (see discussion at this channel: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-IEDtCZUuSfg.html&ab_channel=Terminalforlife%28LL%29 ) Your method is wonderfully minimalist, needing to be parsed just once. The only amendment I would make is that I normally use FNR instead of NR to cater for instances where I'm processing multiple files in one session. NR==1 will only hit the first line of the first file. Not sure why you're using cat to pipe the file to awk though. "awk -f strip-header.awk english-french.txt would do the trick, or make the awk file executable as you say in the video (chmod +x strip-header.awk) and then simply run "strip-header.awk english-french.txt".
You are correct, Isaac, that the "awk -f" syntax handles the job. I suppose that I used the "cat" and the "|" (pipe) since my students had just been reviewing piping. Good comment, though.