User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » how do I save the last shell command I typed? Page [1]  
wolftrap
All American
1260 Posts
user info
edit post

i'm using bash

1019 perl -e 'do something'

To re-execute this command I used I can type:
!1019
If it was the last one I can type:
!!

how to I save this to a file like:
echo !1031 > myCommand.sh

this records:
echo perl -e do something
i lost my single quote and I don't want "echo"

4/20/2007 1:19:14 PM

ruffler
Veteran
108 Posts
user info
edit post

history | grep 1019 > myCommand.sh
?

4/20/2007 5:06:19 PM

 Message Boards » Tech Talk » how do I save the last shell command I typed? Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.