![]() |
|
|
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 |
| i want to know entered string ends with .jar | naree | Shell Programming and Scripting | 3 | 03-08-2008 07:24 AM |
| while never ends | Raom | UNIX for Advanced & Expert Users | 4 | 12-05-2005 01:00 AM |
| file transfer ends | jph | Shell Programming and Scripting | 4 | 10-12-2005 06:18 PM |
| I have not c compile environment ,i can download it but it ends with *.gz,so i can't | dsun5 | High Level Programming | 1 | 10-11-2001 04:36 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
[AWK] process field which ends with .dat
This is my first day with awk scripting..Please pardon my ignorance, if any..
I am trying to remove all files ending with .dat ls -1R xyz/ | awk '$1==*.dat{print "rm " $1}' | bash ls -1R --> will list files/directories one per line, even the sub directories I try to match first field of line == *.dat , if true.. remove that file,i know I have not taken care of subdirectory... But that is what I am trying..Any idea how to do it.. ![]() |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|