how to move word by word on command line | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

how to move word by word on command line

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 11-23-2007
pbsrinivas pbsrinivas is offline
Registered User
 
Join Date: Jul 2006
Last Activity: 22 August 2012, 4:55 PM EDT
Posts: 141
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #2  
Old 11-23-2007
radoulov's Avatar
radoulov radoulov is offline Forum Staff  
Moderator
 
Join Date: Jan 2007
Last Activity: 19 December 2014, 9:35 AM EST
Location: Варна, България / Milano, Italia
Posts: 5,675
Thanks: 184
Thanked 620 Times in 578 Posts
With bash:

esc+f : move forward a word

esc+b : move backward a word

Otherwise:

set -o vi and use vi commands: w b etc ...

Last edited by radoulov; 11-23-2007 at 06:27 AM..
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Find EXACT word in files, just the word: no prefix, no suffix, no 'similar', just the word chicchan UNIX for Dummies Questions & Answers 6 03-30-2012 05:28 PM
Print word 1 in line 1 and word 2 in line 2 if it matches a pattern bangaram Shell Programming and Scripting 7 08-31-2009 06:58 AM
regular expression for replacing the fist word with a last word in line kri_swami UNIX for Dummies Questions & Answers 2 07-31-2009 05:51 AM
move the last word to begining of next line - SED baskar Shell Programming and Scripting 4 02-15-2008 12:28 PM
Can a shell script pull the first word (or nth word) off each line of a text file? tricky Shell Programming and Scripting 5 08-17-2006 07:29 AM



All times are GMT -4. The time now is 07:52 PM.