From: farley () Manassas1 ! TDS-GN ! LMCO ! COM (Patrick Farley)
To: tru64-unix-managers
Subject: White space through a pipe in a Bourne shell
Date: Thu, 20 Mar 1997 15:31:29 +0000 [thread overview]
Message-ID: <96078609810526.tru64-unix-managers.marc@archive.invalid> (raw)
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
reply other threads:[~1997-03-20 15:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox