From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078609810526.tru64-unix-managers.marc@archive.invalid> From: farley () Manassas1 ! TDS-GN ! LMCO ! COM (Patrick Farley) Date: Thu, 20 Mar 1997 15:31:29 +0000 To: tru64-unix-managers Subject: White space through a pipe in a Bourne shell X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078609810526 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