gibney.org : Technology : Programming : sed


just a logo :)

search:


See as: raw | code

terms of service | imprint

gibney.org
is powered by m1d1





sed
(Entry Nr. 81, by user 1 | edit)
Replace the first instance of foo with bar:
sed 's/foo/bar/'

Replace the fourth instance of foo with bar:
sed 's/foo/bar/4'

Replace all instances of foo with bar:
sed 's/foo/bar/g'

Get all mounted folders:
mount | sed s/.*on\ // | sed s/\ type.*//
Convert Filenames with sed convert ä,ü,ö to ae,ue,oe
Replace a string in multiple files
Create a new entry at this position