@6:59 It is a good practice to always escape the "*" symbol. In the example given at the 6:59 time stamp, if there was a file named "whatever.conf" in your current directory, then the "find" command would have searched for only "whatever.conf". Also, if you happened to have had more than one file, in your current directory, that matched the *.conf pattern, then the "find" command would have complained. In other words, if you happened to have "whatever1.conf" and "whatever2.conf", then, due to shell substitution, the shell would have fed the following to the "find" command: $ find / -name whatever1.conf whatever2.conf So do something like: $ find / -name \*.conf -- or -- $ find / -name "*.conf" If you do not escape the "*" character, when applying it to commands, then sooner or later you will get burned. And if you are not familiar with this issue, you will be left scratching your head as to why your command is bombing.
I think I got it: find / -name *.conf | wc -l will output the number of all *.conf lines find / -name *.conf | xargs wc -l will show the number of lines in each *.conf file.
9 years on, still outstanding content. Thank you.
Excellent. Clear language at an appropriate rate, concise explanations, and logically organized. You are an outstanding presenter.
@6:59
It is a good practice to always escape the "*" symbol.
In the example given at the 6:59 time stamp, if there was a file named "whatever.conf" in your current directory, then the "find" command would have searched for only "whatever.conf".
Also, if you happened to have had more than one file, in your current directory, that matched the *.conf pattern, then the "find" command would have complained.
In other words, if you happened to have "whatever1.conf" and "whatever2.conf", then, due to shell substitution, the shell would have fed the following to the "find" command:
$ find / -name whatever1.conf whatever2.conf
So do something like:
$ find / -name \*.conf
-- or --
$ find / -name "*.conf"
If you do not escape the "*" character, when applying it to commands, then sooner or later you will get burned. And if you are not familiar with this issue, you will be left scratching your head as to why your command is bombing.
Just started learning about command lines on Codecademy a couple hours earlier and was kind of stuck at piping, thank heavens for this video.
I don't usually bother upvoting videos, but this one is awesome.
Really!? You should do it more often, it's very delightful!
Appreciate your tutorials, really really well explained. i would love to see some VI editor tutorials in the future. thanks.
Exceptional teaching ,Thank you
Me@Learning-Linux ~$ echo A very good tutorial by JasonWertz his explanations were clear and concise. > Thank-You.txt
Thank you. Very well done video. Know that your effort is appreciated.
Do you recommend any books on in-depth Linux? You've done a great job explaining, thank you.
Steven Tsao Linux bible available in amazon
Steven Tsao wrote this comment so he can sell you his book 😂
I wrote this so u all can see
awesome awesome articulate explanation i'm so glad I *found hahah your video. please make more
Thank you!
You're welcome!
🇵🇸🇵🇸
can you make some videos on assembly programming
Thank you. Great Videos :)
Your welcome! I'm glad you enjoyed them :)
Hi Jason, do you have a link or website that contains all your videos? thanks
Two Thumbs Up!
/dev/null = Black Hole
SUBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I have a doubt....i don't understand the purpose of xargs.....
Xargs are these types of Yeti's you see...
I did not quite get what's the difference between:
find / -name *.conf | xargs wc -l
and
find / -name *.conf | wc -l
I think I got it:
find / -name *.conf | wc -l
will output the number of all *.conf lines
find / -name *.conf | xargs wc -l
will show the number of lines in each *.conf file.
@@j.h.6672 yeah, if you use
find ~/Videos "*.mp4" | xargs mpv
It will play the mp4 video instead of trying to play the name of the mp4 file
5:51 cat command - to combine files,
had to... I want to remember where to find this example_V-much