-
Notifications
You must be signed in to change notification settings - Fork 3
bash tail
ghdrako edited this page Jan 11, 2023
·
1 revision
tail -3 columns[2-4].txt
# checks if the last line of test.txt contains the string aa:
x=`cat test.txt |tail -1|grep aa`
if [ $x == ]
echo found aa in the last line
fi
Test