I want to delete files in a directory, from the supplies csv file if its older than 1 day.
I tried to print them for test purpose:
in.txt
1,one
2,two
code:
INPUT="in.txt"
while IFS=',' read -r id name
do
find tmp/$name -mtime +1 -type f
done < "$INPUT"
This code throws error :
find: bad status-- tmp/one
find: bad status-- tmp/two
Thanks.