![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| total number of files which have "aaa" in files whose names are File*_bbb* | sudheshnaiyer | UNIX for Dummies Questions & Answers | 1 | 08-16-2007 11:34 AM |
| [Urgent]how to print the file names into a txt file??? | kumarsaravana_s | Shell Programming and Scripting | 15 | 03-12-2007 12:32 AM |
| Moving files and changing names | muneebr | UNIX for Dummies Questions & Answers | 5 | 11-20-2006 06:42 AM |
| Unix ISO's for FTP, I've searched the other Posts | killrazor | UNIX for Dummies Questions & Answers | 3 | 10-11-2002 07:05 AM |
| Need to print file names in a certain date range using ls | Shamwari | UNIX for Dummies Questions & Answers | 2 | 10-08-2001 04:14 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to print the files names that being searched
Hello all
Im doing search in jar files using this oneLiener : f Code:
ind . -name "*.jar" -print -exec jar -tvf {} \; | grep -n \/someClassName.class
What I need to add to this command so it will give the file names? |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Quote:
Code:
find . -name "*.jar" -print -exec jar -tvf {} \; | grep -n -l \/someClassName.class
|
|
#3
|
|||
|
|||
|
hello and thanks for the reply
but i have problem here when i run this commnad with the "-l" switch im getting : "(standard input) " as massage , i have no idea what it means . when i remove the "-l" switch im getting the maches but without the file name by the way im using cygwin . |
|||
| Google The UNIX and Linux Forums |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|