Hello all,
Scenario: bash, #of days in year into verable and I want to use in find.
Sample:
#!/bin/bash
three=`date '+%j'`
two=`expr $three + 365`
one=`expr $two + 365`
todir='/usrdata/history/working'
for i in $(echo one two three)
do
out="outfile$i"
touch $out
find /usr4/daten -mtime +$("$i") >>$out
while read bla
do
echo $bla
#more command here for moving data
done < $out
done
Fault: the -mtime should read -mtime +"value for each verable"
How do I do this pleeeezz.