![]() |
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 |
| Using 'sed' to delete or ignore columns in a dataset | aarif | UNIX for Dummies Questions & Answers | 4 | 07-21-2008 01:22 PM |
| Using 'sed' to delete or ignore columns in a dataset | aarif | UNIX for Dummies Questions & Answers | 0 | 02-29-2008 01:21 PM |
| Row to Columns | vskr72 | UNIX for Dummies Questions & Answers | 4 | 03-21-2007 09:53 AM |
| How can I use columns with a command? | chrchcol | Shell Programming and Scripting | 0 | 07-24-2006 08:51 PM |
| add columns with awk | tonet | Shell Programming and Scripting | 4 | 06-21-2005 04:02 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
delete some columns
I've got a data file like the following format.
196004010000 196004020000 8192 24 ueaag 98.793 18.750 20 ---- - 36 23 9999 314.161773681641 196004020000 196004030000 8192 24 ueaag 98.793 18.750 20 ---- - 36 23 9999 314.71533203125 196004030000 196004040000 8192 24 ueaag 98.793 18.750 20 ---- - 36 23 9999 315.208740234375 I need the first and last column as 196004010000 314.161773681641 196004020000 314.71533203125 196004030000 315.208740234375 Would you have any idea to do this job? I'd be grateful with any help. Many thanks, su_in99 |
|
||||
|
Quote:
Code:
awk ' { print $1,$NF } ' filename
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|