![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| running command in while loop | gefa | Shell Programming and Scripting | 2 | 11-21-2007 07:27 AM |
| for loop with db2 command | Vaddadi | Shell Programming and Scripting | 1 | 10-05-2007 12:51 PM |
| Help with a simple loop command! | dfs | Shell Programming and Scripting | 8 | 05-18-2007 01:27 PM |
| Pb in while loop with ssh command | madmat | Shell Programming and Scripting | 1 | 10-13-2005 02:45 AM |
| rsh command in a while loop | Nicol | Shell Programming and Scripting | 6 | 11-19-2003 01:08 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Using cat command in a for loop
If I have a data file containing entries like-> abc abc:123
and I use a for loop: for I in `cat data-file` do echo $I done the output would contain 2 lines -> abc.... and abc:123 but I want it to be on only one line. How can I do this? thanks |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|