LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-13-2003, 10:40 AM   #1
nkelle
LQ Newbie
 
Registered: Nov 2003
Posts: 4

Rep: Reputation: 0
ksh commands in bash


I am new to bash & it is ok so far.

I like using "!" to repeat commands.

I also liked the ksh "r" to repeat commands.

How can I set up bash to use "r" to repeat commands:

i.e.

in ksh - if my last "l" command was ls -l

then r l would repeat it.

in bash I must use !l

r l is easier to hit than !l

nk
 
Old 11-13-2003, 11:01 AM   #2
raees
Member
 
Registered: Nov 2003
Posts: 65

Rep: Reputation: 15
Can you create an alias for r
like
alias r=!


Raees
 
Old 11-13-2003, 11:11 AM   #3
nkelle
LQ Newbie
 
Registered: Nov 2003
Posts: 4

Original Poster
Rep: Reputation: 0
yep. tried that.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
processing a ksh shell in bash environment ntoughe Programming 9 09-12-2005 05:09 AM
bash/ksh variables question tpe Programming 2 08-11-2005 09:39 AM
shell confusion..what is diff between bash, ksh, csh, tcsh..?? servnov Linux - Newbie 7 11-18-2004 08:28 PM
Bash commands PhuckFonix Linux - Newbie 2 03-30-2004 07:13 PM
Bash commands wprescott Linux - Distributions 6 04-27-2002 02:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration