From: cenan@runbox.com
Date: Mon Jun 21 2004 - 02:15:23 EDT
Thanks for all responded to my mail: Mohan Sundaram was the one who responded first.
rgds.
cen
----------------------------------here are the responses.
Kevin Epstein
cat text.file|tr -s " " "\n"
Wolf-Dietrich Schmook
tr " " "\n" < original-file > new-file-with-linefeeds
ami.kumar@tcs.com
cat <file name> | tr ' ' '\n'
john.lanier@hp.com
cat testfile|awk -F" " '{print $1"\n"$2"\n"$3"\n"$4"\n"$5"\n"$6"\n"$7"\n"$8}'
bill@billhassell.com
cat your_file | tr -s " " "\n"
Dinesh Devan
cat /tmp/1 |tr -s " " "\012" > /tmp/2
/tmp/1 is the file where you have you patch names with space demlimited and /tmp/2 will have it with new line.
Ruby Domalanta
cat /tmp/test1 |tr " " "\n"
Deepak Cutinha
tr ' ' '\n' < file.txt > output.txt
Where file.txt has your patch list with spaces
and output.txt will have all those with a newline
Wolf-Dietrich Schmook
how about "tr(1)"?
tr " " "\n" < original-file > new-file-with-linefeeds
Mohan Sundaram
awk 'gsub(" ","\n")' <filename>
Original question:
-- Hello, I have txt file: PHKL_25614 PHKL_26233 PHKL_27278 PHKL_28267 PHKL_28428 PHKL_28990 PHKL_30158 PHKL_30616 I just want to make it as list with newline PHKL_25614 PHKL_25614 PHKL_25614 I want tor replace the blank space with a newline. what is the easiest solution, pls. Rgds, cen -- ---> Please post QUESTIONS and SUMMARIES only!! <--- To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl Name: hpux-admin@dutchworks.nl Owner: owner-hpux-admin@dutchworks.nl Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only) http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)
This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:41 EDT