• Features of vim
  • Sort command
  • Features of a sort command
  • Top Seven Linux command Line tools for text




    Download 6,34 Mb.
    Pdf ko'rish
    bet87/203
    Sana10.01.2024
    Hajmi6,34 Mb.
    #134102
    1   ...   83   84   85   86   87   88   89   90   ...   203
    Bog'liq
    Linux This Book Includes 4 Manuscripts The Underground Bible

    Top Seven Linux command Line tools for text
    manipulation
    ❖ 
    The vim command - The command is a text editor that can be used in a command-line
    mode or as GUI mode. Vim is very strong and can be used in editing any kind of text. One
    demerit with vim is that it that its learning curve is very steep.


    Features of vim
    ❖ 
    Runs on very low memory.
    ❖ 
    It supports very many files and encodings.
    ❖ 
    It is compatible across all Unix systems
    ❖ 
    Grep command - The command is one of the frequently used commands due to its high
    speed in most Unix based systems. With other programs, a grey command can be used with
    other programs to read inputs in various. In a file or a standard output, grep can be used to
    find strings or matched regular extensions.
    ❖ 
    Sort command - As its name suggests, it used in sorting a file alphanumerically as it will
    arrange the lines following a specific order. The command arranges files in ASCII by default.
    Ways in which sort command sorts lines
    1. Sort command arrange lines one at a time
    2. The sort command program prints all lines of inputs in an argument ordered list
    3. The sort command supports sorting of lines in alphabetically, by the use of reverse
    order, numerically or even by word of mouth.
    4. The command can also ignore case sensitive and return on if the line is sorted or not
    5. The entire input key is assumed to be a sort key by default, and the blank space is
    taken by the field separator
    Features of a sort command
    ❖ 
    The lines that are starting with numbers will come before lines that start with alphabets
    ❖ 
    Lines whose first letter appears first on the alphabet list are placed before lines whose first
    letter comes later in the alphabet list.
    ❖ 
    Lines beginning with a letter that appears earlier in the alphabet will come before lines
    starting with a letter that appears later on the alphabet

    Lines that begin with an uppercase letter will be placed before lines starting with a
    lowercase letter of the same word
    Example:
    Suppose you are creating a file with the name file.txt
    $ cat > file.txt
    Emailing
    Client
    command
    variable

    Download 6,34 Mb.
    1   ...   83   84   85   86   87   88   89   90   ...   203




    Download 6,34 Mb.
    Pdf ko'rish

    Bosh sahifa
    Aloqalar

        Bosh sahifa



    Top Seven Linux command Line tools for text

    Download 6,34 Mb.
    Pdf ko'rish