![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| combine 2 lines | Deanne | Shell Programming and Scripting | 0 | 10-24-2007 03:08 AM |
| Combine multilpe lines with various combinations | jojojmac5 | UNIX for Dummies Questions & Answers | 6 | 07-13-2007 01:15 PM |
| Combine two lines | superprg | UNIX for Dummies Questions & Answers | 10 | 02-01-2006 08:47 AM |
| SImple HELP! how to combine two lines together using sed or awk.. | forevercalz | UNIX for Dummies Questions & Answers | 10 | 09-29-2005 06:33 AM |
| sed or grep or perl combine two lines | artjaniger | UNIX for Dummies Questions & Answers | 3 | 06-27-2003 06:20 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
I have a file called test.txt. Inside this file is the following:
tcenh100.telkom.co.za 100.200.300.400 tcenh101.telkom.co.za 500.600.700.800 I want to take out the new lines and spaces, then I want to put the ip address of the host name next to the host name on the same line, as soon as this is done, I want to switch around the ip address and host name with a space between them. The file must look as follows after script is done running: 100.200.300.400 tcenh100.telkom.co.za 500.600.700.800 tcenh101.telkom.co.za Anyone can help please? Thanks Wolf ![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|