![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Delete a row that has a duplicate column | spartan22 | Shell Programming and Scripting | 5 | 05-30-2009 05:13 AM |
| Delete first column in tab-delimited text-file | andmal | Shell Programming and Scripting | 2 | 03-13-2009 06:42 AM |
| to delete a column in unix | gaddesuneetha | UNIX for Dummies Questions & Answers | 8 | 12-12-2006 06:48 PM |
| delete 7th column in unix | pavan_test | UNIX for Dummies Questions & Answers | 6 | 12-20-2005 03:17 AM |
| Search for by column and delete line | thudak | Shell Programming and Scripting | 4 | 04-24-2002 10:13 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Delete first row last column
Hi All,
I am having following file and I want to delete 1 row last column. Current File Content: ================ procedure test421 put_line procedure test321 test421 procedure test521 test321 procedure test621 test521 Expected File Content: =========================== procedure test421 procedure test321 test421 procedure test521 test321 procedure test621 test521 With best wishes, -Saurabh |
|
||||
|
solution for delete last column in first row
Hope this works,
$cat data procedure test421 put_line procedure test321 test421 procedure test521 test321 procedure test621 test521 $sed "1s/\(.* \)\([a-zA-Z0-9_]*\)$/\1/g" data procedure test421 procedure test321 test421 procedure test521 test321 procedure test621 test521 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|