![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Arg List too Long in SCP | chris1234 | UNIX for Dummies Questions & Answers | 5 | 02-27-2008 04:40 AM |
| ksh: /usr/bin/ls: arg list too long | jitindrabappa | UNIX for Dummies Questions & Answers | 2 | 10-12-2006 12:08 AM |
| ls -t arg list too long | CSU_Ram | UNIX for Dummies Questions & Answers | 4 | 05-05-2005 07:19 AM |
| Parameter List to Long | lesstjm | Shell Programming and Scripting | 3 | 03-07-2002 05:36 AM |
| arg list too long | vingupta | UNIX for Dummies Questions & Answers | 5 | 08-02-2001 08:43 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
| Forum Sponsor | ||
|
|
|
||||
|
I have a dirctory(in fact many directories) for which I have to grep
a certain string -In my case a 10 digit number starting with 011 code: Quote:
/usr/bin/grep Arg list too long Would find command help me? find . -name * -exec egrep '^011......$' /dev/null {} \; Thanks enc |
|
||||
|
I think the find syntax as you have it will have the same problem. If you use xargs like this you may have some luck. I am not anywhere I can test it right now to confirm for you but this syntax may work:
find ./ -print | xargs grep '^011.......$' *| cut -f1 -d : If you run this from your top level directory where you were running your script, you should get the results you want. |