Script [message #508525] |
Sun, 22 May 2011 23:54 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
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 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
![](http://www.orafaq.com/forum/images/custom_avatars/102589.gif) |
Michel Cadot
Messages: 68648 Registered: March 2007 Location: Nanterre, France, http://...
|
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
|
|
|