![]() |
|
|
|
|
|||||||
| 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. |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
-d
why we use -d in script?
|
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Quote:
Guessing... look into man test to see about -d. |
|
#3
|
||||
|
||||
|
Where is this -d being used? Is it for a particular command? If so, then check the man page for that command.
|
|
#4
|
|||
|
|||
|
reply about -d
Actually my friend using the -d in this code.
if [ -d $LOG_DIR ] then cd $LOG_DIR echo $LOG_DIR >> $LOG_FILE find . \( -name '*.log*' -type f \) -mtime +30 -exec rm -f {} \; fi |
|
#5
|
||||
|
||||
|
As I said ealier, look into man test to see the description about -d
|
|
#6
|
|||
|
|||
|
i got the solution.thanks
|
|
#7
|
|||
|
|||
|
will u tell me what is this meaning?
find . \( -name '*.log*' -type f \) -mtime +30 -exec rm -f {} \; What it will search the file which is less than 30 minutes? |
|||
| Google The UNIX and Linux Forums |