Quantcast
Channel: FedoraForum.org
Viewing all articles
Browse latest Browse all 36140

Bash script question

$
0
0
I have the following command in a bash script:

list_of_files =`find *.tgz -mtime +10'

but instead of using 10 i want to pass a variable. I have tried the following:

list_of_files=`find *.tgz -mtime +"$MAX_DAYS"`

list_of_files=`find *.tgz -mtime +$MAX_DAYS`


Any ideas?

Thanks

Viewing all articles
Browse latest Browse all 36140

Trending Articles