![]() |
|
|
|
|
|||||||
| 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 |
| Crontab not recognizing the jar files | rajuutla | UNIX for Dummies Questions & Answers | 4 | 05-01-2008 11:20 PM |
| Crontab not recognizing the jar files | rajuutla | Linux | 3 | 05-01-2008 05:27 AM |
| Crontab not recognizing the jar files | rajuutla | UNIX for Advanced & Expert Users | 0 | 04-30-2008 03:39 AM |
| recognizing * character | csejl | Shell Programming and Scripting | 3 | 11-15-2005 10:55 PM |
| command find returned bash: /usr/bin/find: Argument list too long | yacsil | Shell Programming and Scripting | 1 | 12-15-2003 02:38 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
recognizing *.* in find
hi folks,
I am trying to write a script for deleting all the files which are older than "N" days from current directory. CODE: FileName="*.*" NumDays=-1 echo $FileName echo $NumDays find * -prune -name $FileName -mtime $NumDays -exec rm {} \; Now the problem here is when i am trying to print the 'FileName' variable here its printing all the files here and not "*.*" so the 'find ' statement is not working .(its not deleting the files) I have tried with "\*" char also but its not working . How to do that ?? |
| Forum Sponsor | ||
|
|
|
|||
|
hi shereen,
thanx for prompt reply, i read the link sent by u but its not giving me the solution. my script is NOT giving me any error like "find: Argument list too long." my problem is the variable is replaced by its values (*.*) |