Tail Command [message #310113] |
Mon, 31 March 2008 05:45  |
bholaimmu
Messages: 35 Registered: October 2007
|
Member |
|
|
hi,
I am getting error.......
tail: cannot open input
below code is running fine when I am hardcoding "tail -200 <path>" but when I am using variable its erroring out.
count=`wc -l <path> | cut -c1-8`
echo $count
if [ $count -gt 0 ]
then
tail -$count <path>
else
echo "Message File is empty"
fi;
Regs,
Khan
|
|
|
Re: Tail Command [message #310126 is a reply to message #310113] |
Mon, 31 March 2008 06:28  |
 |
Michel Cadot
Messages: 68737 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
This IS an Oracle site.
This is NOT an Oracle question.
In addition, when you post a question you must copy and paste your execution and not just describe it.
Regards
Michel
|
|
|