#!/bin/sh
something
for file in *_${Today}*.csv *_${Today}*.txt
do
if [ -f "LET_daily_trans_${Today}.csv" || -f "LET_daily_trans_345_${Tod
ay}.csv" ]
then
echo "This file will be processed in separate script"
continue
fi
something
done
The script doesn't understand if condition. Could you please let me know what is wrong?
PLEASE get used to the habit of posting DATA, CONTEXT, ERROR messages, etc. so people can understand and/or analyse WHAT goes wrong.
Your statement is difficult to understand and believe. As long as there is a (any) file named LET_daily_trans_${Today}.csv or LET_daily_trans_345_${Today}.csv , with Today having a matching contents, the condition is true irrerspective of any other file name that you might work upon.