![]() |
|
|
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 |
| Creation of output file from list of file | ganapati | Shell Programming and Scripting | 7 | 01-18-2008 07:55 PM |
| Use file as list in for loop... | earnstaf | Shell Programming and Scripting | 11 | 06-18-2007 02:48 PM |
| List File size | komputersman | UNIX for Dummies Questions & Answers | 10 | 06-13-2007 05:39 PM |
| List file without the bumff | Zak | Shell Programming and Scripting | 7 | 03-16-2005 02:30 AM |
| Get a none duplicate list file | trynew | Shell Programming and Scripting | 5 | 06-25-2002 01:06 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
list out a specify file
Hello,
I would like to list out all CLIENTINVOICE*.archived (but not _9_4_bfmh.archived or other such as _x_x_xxx.archived). how can I do it? /appl/appl/archive/client/CACHE/CLIENTINVOICE05020_9_4_bfmh.archived /appl/appl/archive/client/CACHE/CLIENTINVOICE05021.archived /appl/appl/archive/client/CACHE/CLIENTINVOICE05021_9_4_bfmh.archived /appl/appl/archive/client/CACHE/CLIENTINVOICE05022.archived /appl/appl/archive/client/CACHE/CLIENTINVOICE05022_9_4_bfmh.archived /appl/appl/archive/client/CACHE/CLIENTINVOICE05023.archived /appl/appl/archive/client/CACHE/CLIENTINVOICE05023_9_4_bfmh.archived /appl/appl/archive/client/CACHE/CLIENTINVOICE05024.archived /appl/appl/archive/client/CACHE/CLIENTINVOICE05024_9_4_bfmh.archived /appl/appl/archive/client/CACHE/CLIENTINVOICE05025.archived /appl/appl/archive/client/CACHE/CLIENTINVOICE05025_9_4_bfmh.archived /appl/appl/archive/client/CACHE/CLIENTINVOICE05026.archived /appl/appl/archive/client/CACHE/CLIENTINVOICE05026_9_4_bfmh.archived /appl/appl/archive/client/CACHE/CLIENTINVOICE05027.archived /appl/appl/archive/client/CACHE/CLIENTINVOICE05027_9_4_bfmh.archived /appl/appl/archive/client/CACHE/CLIENTINVOICE05028.archived /appl/appl/archive/client/CACHE/CLIENTINVOICE05028_9_4_bfmh.archived /appl/appl/archive/client/CACHE/CLIENTINVOICE05029.archived /appl/appl/archive/client/CACHE/CLIENTINVOICE05029_9_4_bfmh.archived |
|
||||
|
Try :
Code:
ls | grep -v 'CLIENTINVOICE.*_' /appl/appl/archive/client/CACHE/CLIENTINVOICE05021.archived /appl/appl/archive/client/CACHE/CLIENTINVOICE05022.archived /appl/appl/archive/client/CACHE/CLIENTINVOICE05023.archived /appl/appl/archive/client/CACHE/CLIENTINVOICE05024.archived /appl/appl/archive/client/CACHE/CLIENTINVOICE05025.archived /appl/appl/archive/client/CACHE/CLIENTINVOICE05026.archived /appl/appl/archive/client/CACHE/CLIENTINVOICE05027.archived /appl/appl/archive/client/CACHE/CLIENTINVOICE05028.archived /appl/appl/archive/client/CACHE/CLIENTINVOICE05029.archived |
|
||||
|
Quote:
After CLIENTINVOICE there are 5 digits above command should end with ????? ![]() |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|