Can somebody help me with a simple request.
I need to check a file size (amount of characters) and if bigger than a certain limit send it of.
I have a function that generates the file which works.
I have a function that sends of the file that works.
But this seems incorrect:
Makefile
a=`wc -m file.txt | awk '{print$1}'`
while [ "$a" < "35" ]
do
MakeFile
done
SendFile
I need to check a file size (amount of characters) and if bigger than a certain limit send it of.
I have a function that generates the file which works.
I have a function that sends of the file that works.
But this seems incorrect:
Makefile
a=`wc -m file.txt | awk '{print$1}'`
while [ "$a" < "35" ]
do
MakeFile
done
SendFile