![]() |
|
|
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 |
| aside from paste | kenshinhimura | Shell Programming and Scripting | 3 | 03-11-2008 01:16 AM |
| Paste Script Help | Dangrim1 | Shell Programming and Scripting | 1 | 01-17-2007 11:06 PM |
| Cut Paste and Insert Help | PradeepRed | Shell Programming and Scripting | 5 | 12-09-2005 05:49 AM |
| awk or sed or paste | leprichaun | UNIX for Dummies Questions & Answers | 3 | 11-16-2003 07:58 PM |
| Cut, Copy and Paste with X | auswipe | UNIX Desktop for Dummies Questions & Answers | 4 | 03-27-2002 04:27 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
cut & paste
hi i am new to shell scripting,
i have been trying to cut columns numbered 1,4 of a file consisiting of 4 columns. Each column is seperated by 2 spaces. for example: john 6102097199 tennessee usa michel 6734590899 texas USA now, i need to cut the name and country column and paste it in another file. I used the delimiter with 2 spaces using 'cut' function and pasted using 'paste' function to paste it in another file. But, this did'nt work CAN ANYONE PLEASE HELP ME OUT WITH THIS????????????????????? |
|
||||
|
Quote:
Code:
awk '{ print $1,$NF }' entry.txt > output.file
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|