The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 02-04-2008
cleansing_flame's Avatar
cleansing_flame cleansing_flame is offline
Registered User
 

Join Date: Nov 2007
Location: NYC
Posts: 37
Thumbs down

Quote:
Originally Posted by ennstate View Post
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
Reply With Quote