Lalit-Workz
This blog is all about me and my work till now....
Friday, January 16, 2009
Using sed to remove leading or trailing spaces
Remove leading or trailing spaces from file
sed -e "s/[ ]*//g" 1.xml > 2.xml
For with in tags like in XML
sed -e "s/[ ]*<\//<\//g" 1.xml > 2.xml
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)