The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
replace space with delimiter in whole file -perl
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
replace space with delimiter in whole file -perl
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
02-14-2008
sb008
Registered User
Join Date: Jan 2007
Posts: 384
sed
-e "s/ [ ]*/|/g" infile > outfile
there are 2 spaces between the first "/" and the "[".
sb008
View Public Profile
Find all posts by sb008
Find sb008's past nominations received
Find sb008's present nominations given