![]() |
|
|
|
|
|||||||
| 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 |
| "find command" to find the files in the current directories but not in the "subdir" | swamymns | Shell Programming and Scripting | 9 | 07-22-2008 08:23 AM |
| grep to find content in between curly braces, "{" and "}," | keshav_rk | Shell Programming and Scripting | 4 | 08-09-2007 07:14 PM |
| How to get Find command work with a variable passing "*" value? | unxuser | Shell Programming and Scripting | 5 | 08-16-2006 07:47 AM |
| How to find out the exact year in "Last modified time" using ls command | Dophlinne | UNIX for Dummies Questions & Answers | 6 | 04-11-2006 08:07 AM |
| What is "escape sequence" in tcsh on Solaris | modemer | UNIX for Advanced & Expert Users | 2 | 02-15-2005 02:00 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to combine "find" command in for each loop (tcsh)
Hello
I was wandering if I can combine find command in side for each loop in unix the main propose is to change some thing in files from several types and not all of them is this possible ? (on liner script? ) tnx for the helppers |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
#!/usr/bin/ksh
for i in `find $PATH your filter conditions` do .... do whatever you want to do with $i done |
|
#3
|
||||
|
||||
|
I m giving an example for ksh. As such no idea of tcsh should work to my belief.
#!/usr/bin/ksh for i in `find $PATH filter conditions` do .... do whatever you want with $i done regards, Rishi |
|
#4
|
|||
|
|||
|
Tnx allot folks
but can someone please help me with do it in tcsh ? and how can i make it one liner script ? thanks allot |
|||
| Google The UNIX and Linux Forums |