if [ ! -s file ] ; then
rm file
fi
and finally the full loop:
for file in *
do
if [ ! -s $file ] ; then
rm $file
fi
done
if [ ! -s file ] ; then
rm file
fi
for file in *
do
if [ ! -s $file ] ; then
rm $file
fi
done
paste file1 file2
cat file1 file2which will first print file1 and then file2.
join file1 file2If file1 and file2 share the same string in one line it gets printed to standard out.
watch [-n <seconds>] [--differences[=cumulative]] [--interval=<seconds>] <command>For example like this:
watch ls -l
variable="`BASH COMMAND`"
variable="`echo $VARIABLE`"
rename -- -help help *