I am trying to check whether two files are empty or not using below if condition but its checking for only one file
if [[ -s file1.csv && -s file2.csv ]]
Again I tried
if [[ -s file1.csv ] && [-s file2.csv ]]
Need your assistance
I am trying to check whether two files are empty or not using below if condition but its checking for only one file
if [[ -s file1.csv && -s file2.csv ]]
Again I tried
if [[ -s file1.csv ] && [-s file2.csv ]]
Need your assistance
Almost:
if [ -s file1.csv ] && [ -s file2.csv ]
then echo 'both file1.csv and file2.csv have a size greater than 0'
fi
This syntax also works, at least in bash.
if [ -s file1.csv -a -s file2.csv ]