Back to Browse

Linux Command Line (45) xargs

5.9K views
Aug 7, 2021
12:06

xargs is short for execute as argument and is shown in the video by echoing out a filename and piping that in to wc. Without xargs the filename information is processed by the wc command, with xargs the file itself is processed by the wc command. The number of fields per line can be changed with the -n option and xargs uses -t for verbose. The default input delimiter is white-space, but that can be changed. The video then shows how to use xargs to create a text file for every item in the grocerylist.txt file. We then use xargs with grep to change the group of only the test files that start with the letter "s" and then use xargs with find to change the permissions of files that start with the letter p. xargs is then used to add some text to filenames. See the complete LCL playlist at: https://www.youtube.com/watch?v=JMT5CGFxa_4&list=PLy7Kah3WzqrHPrgkBgwzXyfDDCvthdUfl Website link: https://thefrugalcomputerguy.com/linux/seriespg.php?ser=10020

Download

1 formats

Video Formats

360pmp413.9 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Linux Command Line (45) xargs | NatokHD