Sed Command

[root@local~]# find /home -type f -exec sed -i 's/word1/word2/g' {} \;

Replace the word1 to word2 in all the files under /home by command find + sed

cat abc.txt |sed 's/^ *// sed -i 's/^ *// file

Delete whitespace in each line of file gg g gg g t ttt gg g gg g t ttt

Server is hosted by Alanstudio
Linux Operating System

Recommend screen resolution 1024 x 768 / IE / FireFox
Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved.