Re: Xterm + Bash + Long command lines

From: Carl Holtje ;021;vcsg6; (cwh0803_at_cs.rit.edu)
Date: 11/11/04


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."



Relevant Pages

  • Re: Interrpreting modifier codes in /etc/inputrc ??
    ... simply produces ";5C" at the cursor on my command line and Control ... Thanks for introducing me to the showkey command. ... on the command line for it to the sequences to operate on. ... # for non RH/Debian xterm, ...
    (Fedora)
  • RE: Looping with Userform
    ... Prior to this section the cursor is ... placed in the first cell of the order section via RANGE.Select. ... Knowing what global variables I need and how to declare them. ... This userform has two command buttons: ...
    (microsoft.public.excel.programming)
  • Re: Simple EDT or TPU init file
    ... command like: ... and update the window. ... If you don't care about the cursor position, ... SCROLL changes the editing point by leaving ...
    (comp.os.vms)
  • Re: Cursor in Grid
    ... Yes, but when i click on the commandbutton, even if there is no command on ... or I just loose focus on grid1 with recordsource cursor1, ... It always selects the last cursor I created on ... > As a grid refreshes, it automatically changes the work area to its ...
    (microsoft.public.fox.programmer.exchange)
  • Re: ADO CursorType Problem
    ... here is the code with no command object. ... It's still returning a cursor of type 0. ... > this case recordset should inherit settings for the cursor type from this ... >> End Sub ...
    (microsoft.public.data.ado)

Loading