Thread
:
Reverse Search For Bash History
View Single Post
#
2
(
permalink
)
02-12-2009, 10:07 PM
rockdalinux
Is that all you got?
User
Join Date: May 2005
Location: Planet Vegeta
OS: Redhat
Posts: 708
Thanks: 15
Thanked 19 Times in 18 Posts
Rep Power:
10
Code:
command-name
Run the last command-name
Code:
!!
Another
Code:
cp /path/to/a/long/file/dir/name/file1 /go/to/dest/file2
to call 1st arg
Code:
echo !!:1
to call 2nd arg
Code:
echo !!:2
__________________
Rocky Jr.
What's wrong? I hope I am not making you uncomfortable...
Never send a boy to do a mans job.
The Following User Says Thank You to rockdalinux For This Useful Post:
jaysunn
(03-12-2009)
rockdalinux
View Public Profile
Send a private message to rockdalinux
Find all posts by rockdalinux