hi, what is the option with grep or egrep through which we can search from bottom to up of a file normally they works in the top to bottom
Shame on Mac OS X not including that program!
Arafangion
2010-07-28 07:17:30
Ups, and linux has it!
mosg
2010-07-28 07:30:14
You can get it throug macports (coreutils), it will be named gtac.
DiggyF
2010-07-28 07:32:14
A:
If you can stand the delay, I'd consider just piping the result through the rev program.
Arafangion
2010-07-28 07:15:54
A:
#!/bin/bash
start=10
while true
do
if tail -${start} "file" | grep -q "search" ;then
tail -${start} "file" | grep "search"
exit
else
((start+=10))
fi
done
ghostdog74
2010-07-28 07:28:32