Quote:
Originally Posted by ennstate
I guess you want to capture the terminal session,you can make use of script command.
In your shell prompt,
Code:
script capture-this-session.txt
man script for more info.
Thanks
Nagarajan G
|
Sorry, that really didn't help, it may make sense to you, but sadly not to me.
Here is my problem:
I do the command in a bash shell: history | grep "emacs"
and I get:
35 emacs new.txt
37 emacs new.txt
41 emacs new.txt
48 cd emacs/bob/
50 emacs Feb1lul.txt
62 grep emacs newbob.txt
63 grep "emacs" newbob.txt
65 history | grep emacs
85 history | grep "emacs"
107 history | grep "emacs"
I'd like to, in addition with the number and command itself, the hard directory. so this is how i'd like to view history
35 emacs new.txt /name/sub_dir/new.txt
37 emacs new.txt *
41 emacs new.txt *
48 cd emacs/bob/ /emacs/bob
50 emacs Feb1lul.txt /emacs/work.../Feb1lul.txt
and so on
62 grep emacs newbob.txt
63 grep "emacs" newbob.txt
65 history | grep emacs
85 history | grep "emacs"
107 history | grep "emacs"
any help appreciated