11-23-2007
how to move word by word on command line
Hey All,
On commad promt of a shell..
How can we move our cursor word by word.
Like Ctrl+A takes to the starting of the command...
Any shortcut like that..?
Thanks
pbsrinivas
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Greetings.
I am struggling with a shell script to make my life simpler, with a number of practical ways in which it could be used. I want to take a standard text file, and pull the 'n'th word from each line such as the first word from a text file.
I'm struggling to see how each line can be... (5 Replies)
Discussion started by: tricky
5 Replies
2. Shell Programming and Scripting
Hello,
I'm trying to move the last word of matching pattern to the begining of next line. Appreciate if anyone post the script.
From the below line I'm getting the last word, Note: this word also appears in many places in my file
#return the last word of line that contains ListenPort
sed... (4 Replies)
Discussion started by: baskar
4 Replies
3. Shell Programming and Scripting
Adding a word in front of a word of each line.In that line only one word will be there.
pl help:( (4 Replies)
Discussion started by: Ramesh Vellanki
4 Replies
4. UNIX for Dummies Questions & Answers
I have a File with the below contents
File1
I have no prior experience in unix. I have just started to work in unix.
My experience in unix is 0. My Total It exp is 3 yrs.
I need to replace the first word in each line with the last word for example
unix have no prior experience in... (2 Replies)
Discussion started by: kri_swami
2 Replies
5. Shell Programming and Scripting
i have a file in this pattern
MATCH1 word1 IMAGE word3 word4
MATCH2 word1 word2 word3 word4
MATCH2 word1 word2 word3 word4
MATCH2 word1 word2 word3 word4
MATCH2 word1 word2 word3 word4
MATCH1 word1 IMAGE word3 word4
MATCH2 word1 word2 word3 word4
MATCH2 word1 word2 word3 word4
MATCH2 word1... (7 Replies)
Discussion started by: bangaram
7 Replies
6. UNIX for Dummies Questions & Answers
I have a file that has the words I want to find in other files (but lets say I just want to find my words in a single file). Those words are IDs, so if my word is ZZZ4, outputs like aaZZZ4, ZZZ4bb, aaZZZ4bb, ZZ4, ZZZ, ZyZ4, ZZZ4.8 (or anything like that) WON'T BE USEFUL.
I need the whole word... (6 Replies)
Discussion started by: chicchan
6 Replies
7. Shell Programming and Scripting
Hi,
I have been trying to replace the key word
"SQL> spool off "
with
"/
show errors"
with out double quotes in all the files in a directory.
above show erros should be displayed next line
Could you please help me how to do that.
I have tried something like this... (3 Replies)
Discussion started by: pointers
3 Replies
8. Shell Programming and Scripting
Hi All,
Hope you guys had a wonderful weekend
I have a scenario where in which I have to read a file line by line
and check for few words before redirecting to a file
I have searched the forum but,either those answers dint work (perhaps because of my wrong under standing of how IFS... (6 Replies)
Discussion started by: Kingcobra
6 Replies
9. Shell Programming and Scripting
I have a file: file.txt, which contains the following data in it.
This is a file, my name is Karl, what is this process, karl is karl junior, file is a test file, file's name is file.txt
My name is not Karl, my name is Karl Joey
What is your name?
Do you know your name and... (3 Replies)
Discussion started by: anuragpgtgerman
3 Replies
10. UNIX for Beginners Questions & Answers
I have a eg file op.txt
This is a cat
This is a fat cat
This is a fat black cat
I want to remove only the word cat from the first alone .can somebody help.
please do wrap your samples in CODE TAGS
As per forum rules. (7 Replies)
Discussion started by: Sharks
7 Replies
LEARN ABOUT DEBIAN
fvwmconsole
FvwmConsole(1) Fvwm Modules FvwmConsole(1)
NAME
FvwmConsole - an fvwm command input interface
SYNOPSIS
Module FvwmConsole [options]
FvwmConsole can only be invoked by fvwm. Command line invocation of the FvwmConsole module will not work.
DESCRIPTION
FvwmConsole allows the user to type fvwm configuration commands interactively, and have them executed immediately. This tool is particu-
larly useful for testing new configuration ideas, or for implementing temporary changes to your environment.
INVOCATION
FvwmConsole must be spawned as a module by fvwm. FvwmConsole takes all xterm(1) options.
FvwmConsole can be invoked by inserting the line 'Module FvwmConsole' in the .fvwm2rc file. This can be placed on a line by itself, if
FvwmConsole is to be spawned during fvwm's initialization, or can be bound to a menu or mouse button or keystroke to invoke it later.
CONFIGURATION OPTIONS
FvwmConsole uses xterm(1). All resources set for xterm are inherited unless overridden by command line options.
Module FvwmConsole -g 40x10 -fg black -bg green3
A different terminal emulator can be specified with the -terminal option. However, only terminal programs that understand the options
-name, -title and -e can be used.
Module FvwmConsole -terminal rxvt
Previous versions of FvwmConsole supported a -e option to choose a different front-end. Although this option is still provided for back-
wards compatibility its use is discouraged unless you know exactly what you are doing.
Module FvwmConsole -e FvwmConsoleC.pl
(see FvwmConsoleC.pl(1)).
Also X resources can be set in your ~/.Xdefaults file:
FvwmConsole*VT100*geometry: 40x4
FvwmConsole*font: 7x14
COMMAND EDITING
There are a few options. If the GNU readline library is available, it can be used.
If Perl5 is installed, FvwmConsoleC.pl can be used as a command editor. This can be accomplished by either copying FvwmConsoleC.pl to
fvwmlib directory as FvwmConsoleC or invoking FvwmConsole with -e option. For example:
Module FvwmConsole -e FvwmConsoleC.pl
If neither one is installed, a simple input reading function which doesn't have editing capabilities is used.
GNU readline and FvwmConsoleC.pl have some frequent used commands in common as default. These commands are similar to emacs. For more
details, refer GNU readline man and info pages, and FvwmConsoleC.pl man page.
Ctrl-A - beginning of line
Ctrl-B - previous char
Ctrl-D - delete char
Ctrl-E - end of line
Ctrl-F - next char
Ctrl-H - backspace
Ctrl-K - erase to the end of line
Ctrl-N - next line
Ctrl-P - previous line
Ctrl-R - search reverse
Ctrl-U - delete line
Meta-B - previous word
Meta-F - next word
Esc < - beginning of history
Esc > - end of history
EXITING
FvwmConsole can be stopped by entering the EOF character (usually CTRL-D).
Note! Do not use the "quit" command, as this is an fvwm builtin: typing "quit" at the FvwmConsole command line will cause fvwm to exit.
SEE ALSO
xterm(1), FvwmConsoleC.pl(1), GNU Readline library
AUTHOR
FvwmConsole is the original work of Toshi Isogai.
3rd Berkeley Distribution 09 May 2010 (2.5.30) FvwmConsole(1)