Browsed by
Tag: xargs

My top 20 linux favourite commands

My top 20 linux favourite commands

Here’s my linux favourite commands, by type : Scripting 1. egrep : aaah… if I had to keep only one, this would be the one I’d choose… can’t spend 10 minutes without using it. 2. sed : because I always need to replace something by something else 10 times on each line in huge files 3. xargs : helps me avoid the for loop, shorter to write, easier to remember and understand when you find it in history 4. awk…

Read More Read More

Xargs

Xargs

Today I learnt a new command 😀 $ xargs Ok I’m a little bit lying : I knew it before but I was using it only to put several lines into one unique line, like this : $ ls |xargs Now, thanks to the new guy in front of me (the colorblind one), I will be able to replace a lot of “for” and ` ` by xargs 😀