The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
shell replacing space with line breaks
.
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
:
shell replacing space with line breaks
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
6
(
permalink
)
04-21-2009
mshulman1980
Registered User
Join Date: Apr 2009
Posts: 4
giannicello: thanks!
I appended the script to add the colons back in for later parsing.
#!/bin/bash
IFS=":"
while read line; do
echo $line
done <servername.lpp|tr ' ' ':'
mshulman1980
View Public Profile
Find all posts by mshulman1980
Find mshulman1980's past nominations received
Find mshulman1980's present nominations given