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: ruclips.net/video/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.
Thanks ! Your course is very well !
Thank you! This is a very good talk on AWK.
Thank you for your video Debra! :-)
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 ?
Wonderful examples. Thank you
Thanks for video! :)
Thanks for sharing. Good stuff 👍
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
Love the content
Thanks for this useful video!
Thanks. Very clear demonstration.
Haha Debra cancel that request sharpened up my search…. thanks google…..😂
Very useful, thanks!
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!
@@debramccusker i have found it in the info pages though, but nice shortcut :) thank you so much for your efforts
Man Pages in my experience only include common commands. Which make them a pain when trying to reimplement complete replications
-n, --lines=[-]NUM
print the first NUM lines instead of the first 10; with the leading '-', print all but the
last NUM lines of each file
@@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
só no 1.5x para suportar
2x for sure
awokawokawokawokawok
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: ruclips.net/video/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.