Cli favourites

From bibbleWiki
Revision as of 03:47, 15 January 2018 by Iwiseman (talk | contribs) (Created page with "==find large files== find /home/iwiseman -size 10M ==gawk usage== This nicely removes the total line in ls and prints the filename ls -l | sed /^total/d |gawk {'print $...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

find large files

find /home/iwiseman -size 10M 

gawk usage

This nicely removes the total line in ls and prints the filename

ls -l | sed /^total/d |gawk  {'print $9'}

sed search and replace

Replace text in file

sed -i -e 's/fff/ddd/g' iain.txt