* White space through a pipe in a Bourne shell
@ 1997-03-20 15:31 farley
0 siblings, 0 replies; only message in thread
From: farley @ 1997-03-20 15:31 UTC (permalink / raw)
To: tru64-unix-managers
Anyone know how to save the white spaced that is shoved through a pipe in a
Bourne Shell?
I have the command:
cat /tmp/file.txt |while read AA
/tmp/file.txt looks like this before going through the pipe and while read
command.
0.0 6611 /opt2/dome/
0.0 6831 /opt2/dome/
0.0 13532 /opt2/dome/
0.0 13773 /opt2/dome/
The output looks like this:
0.0 6611 /opt2/dome/
0.0 6831 /opt2/dome/
0.0 13532 /opt2/dome/
0.0 13773 /opt2/dome/
0.0 15482 /opt2/dome/
I've losted the formatting that was in the original file.
I need to be able to cut -c the first and second column and
with this odd formatting it gets darn near impossible.
Of course, I could be a moron and there may be a better way to do this.
-Patrick
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-03-20 15:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-03-20 15:31 White space through a pipe in a Bourne shell farley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox