Citat:
Ursprungligen postat av ennstate
Jag antar att du vill fånga terminalsession kan du använda skriptet kommando.
I ditt skal prompten
Kod:
script capture-this-session.txt
Mannen script för mer info.
Tack
Nagarajan G
|
Tyvärr, som egentligen inte hjälper kan det vara meningsfullt för er, men tyvärr inte för mig.
Här är mitt problem:
Jag kommandot i en bash shell: historia | grep "emacs"
och jag:
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 historia | grep emacs
85 historia | grep "emacs"
107 historia | grep "emacs"
Jag vill, förutom med nummer och kommandot sig den hårda katalog. så detta är hur jag vill se historia
35 emacs new.txt / namn / 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
och så vidare
62 grep emacs newbob.txt
63 grep "emacs" newbob.txt
65 historia | grep emacs
85 historia | grep "emacs"
107 historia | grep "emacs"
någon hjälp uppskattas