Script [message #508525] |
Sun, 22 May 2011 23:54 |
muktha_22
Messages: 527 Registered: December 2009
|
Senior Member |
|
|
Hi All,
Kindly help me on the below query..
I have written the below script:
--------------------------------------------
echo "Enter the filename:"
read filename
echo -e "Enter the pattern Name: \c"
read pattern
grep $pattern $filename
--------------------------------------------
But when I change the order of the specification in the last line.
eg:- grep $filename $pattern
It is giving error,
Kindly any one tell me the reason....
Regards
Muktha
|
|
|
|
Re: Script [message #508540 is a reply to message #508525] |
Mon, 23 May 2011 01:12 |
|
Michel Cadot
Messages: 68716 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
This question bears no real connection with Oracle.
Please find a more appropriate forum.
The topic is locked.
If I'm wrong, please, PM me (or report this message to a moderator, explain why you think it should be unlocked and it might be done).
Regards
Michel
|
|
|