Henry @ Web Apps
Thursday, June 30, 2011
using sed to replace spaces
I want to replace multiple white spaces(but still keep tabs) with one space only in a file. Here is how we can do it:
sed 's/ \+/ /g' targetFile > newFile
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment