Search:
Forum
UNIX/Linux Programming
how to rerun the command without last ar
[try Beta version]
Not logged in
register
log in
user name:
password:
remember me
forgot your password?
or sign in using:
try again
cancel
forgot your password?
how to rerun the command without last argument in unix
Dec 21, 2013 at 4:46am
Dec 21, 2013 at 4:46am UTC
Ajaycpp
(40)
Hi,
how to rerun the command without last argument in unix?
It means I have passed 4 arguments for execution but next time I want re-run the same command without last argument/parameter.
Please help me on this.
Last edited on
Dec 21, 2013 at 4:58am
Dec 21, 2013 at 4:58am UTC
Dec 27, 2013 at 11:46pm
Dec 27, 2013 at 11:46pm UTC
keskiverto
(10421)
That depends on your
shell
. Bash, for example, has command line history, so you could tap Up-arrow once and then delete the trailing parameter with Backspace.
Dec 28, 2013 at 5:58am
Dec 28, 2013 at 5:58am UTC
Ajaycpp
(40)
I am asking like as follows
>!3*
Dec 30, 2013 at 10:27pm
Dec 30, 2013 at 10:27pm UTC
keskiverto
(10421)
man bash
Word Designators
:
> echo foo bar gaz bah foo bar gaz bah > !!:0-3 echo foo bar gaz foo bar gaz
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs