into my history.
Here is what I made:
find_history='history|fgrep $1'
As you can try it extract every thing contains the pattern I give after
the command name.
Es.:
bash$ find_history ls
12 ls -l
230 ls -la
....
1021 find_history ls
bash$...
How U can imagine, I don't like to see also the lines where there is the
find_history command. So I modified the previous to:
find_history='history|fgrep $1|fgrep -v find_history'
But this doesn't work as I think, see later the result...
bash$ find_history ls
Usage: fgrep [OPTION]... PATTERN [FILE]...
Try `fgrep --help' for more information.
fgrep: ls: No such file or directory
Broken pipe
bash$ ...
Can you help me?Thanx a lot
Please reply to jan...@technologist.com too.
--
G. Costagliola (jancos)
--------------+------------------------------------
mobile: | +39 (0)347 1174139
office: | +39 (0)81 5323466
office/FAX: | +39 (0)81 5323467
personal FAX: | +39 (0)6 233205937
www: | http://digilander.iol.it/jancos
e-mail: | jan...@technologist.com (Official)
| jan...@libero.it
s-mail: | Via A. de Gasperi, 128
| 80053 C.mmare di Stabia (NA)
| ITALY
ICQ#: | 28211040
--------------+------------------------------------