Re: Xterm + Bash + Long command lines
From: Carl Holtje ;021;vcsg6; (cwh0803_at_cs.rit.edu)
Date: 11/11/04
- Next message: chris-usenet_at_roaima.co.uk: "Re: 2 articles in LinuxGazette.net (shameless self-PR)"
- Previous message: Laurent Herve: "Re: how to create a buffer ?"
- In reply to: Shankar B: "Xterm + Bash + Long command lines"
- Next in thread: William Park: "Re: Xterm + Bash + Long command lines"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 11 Nov 2004 07:40:35 -0500
On Thu, 11 Nov 2004, Shankar B wrote:
> Hi all
>
> I wonder if there is an easy way to change the position of keyboard
> cursor on the Bash command line by clicking that location with the
> mouse. I use Bash 2.05b and Xterm 4.2.99. The reason I need is that I
> have long command lines like :
>
> paste -d" " aa bb |grep "N5" | cut -d" " -f8,16 | awk '{print $1-$2}'
> | sort -n | uniq -c | ~/bin/addup
>
> and I would like to change the cut option 16 to say 15 without using
> the left/right arrows to go to that location. I use such command lines
> as part of some quick and dirty work once in a while and I don't want
> to write shell scripts or anything of that sort.
$> paste -d" " aa bb |grep "N5" ...
$> ^16^15
Will replace the instance of '16' with '15' and re-execute the command.
Hope it helps!
Carl
- --
"There are 10 types of people in the world: Those who understand binary
and those that don't."
- Next message: chris-usenet_at_roaima.co.uk: "Re: 2 articles in LinuxGazette.net (shameless self-PR)"
- Previous message: Laurent Herve: "Re: how to create a buffer ?"
- In reply to: Shankar B: "Xterm + Bash + Long command lines"
- Next in thread: William Park: "Re: Xterm + Bash + Long command lines"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|