Search Edit Commands

   

Korn Shell: Unix and Linux Programming Manual, Third Edition, The
By Anatole Olczak

Table of Contents
Appendix E.  Korn Shell Man Page


These commands access your command history.

[count] k

Fetch previous command. Each time k is entered the previous command back in time is accessed.

[count]?/span>

Equivalent to k.

[count]j

Fetch next command. Each time j is entered the next command forward in time is accessed.

[count]+

Equivalent to j.

[count]G

The command number count is fetched. The default is the least recent history command.

/string

Search backward through history for a previous command containing string. String is terminated by a Return or Newline. If string is preceded by a ^, the matched line must begin with string. If string is null the previous string will be used.

? string

Same as / except that search will be in the forward direction.

n

Search for next match of the last pattern to / or ? commands.

N

Search for next match of the last pattern to / or ?, but in reverse direction. Search history for the string entered by the previous / command.


       
    Top
     



    Korn Shell. Unix and Linux Programming Manual, Third Edition
    Korn Shell. Unix and Linux Programming Manual, Third Edition
    ISBN: N/A
    EAN: N/A
    Year: 2000
    Pages: 177

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net