1 3 3

: rename

  1. #1
      OtmanGX
    Ubuntu 14.04 LTS
    LXDE

    Mar 2013
    152
    345
    287 78
    2

    rename

    : rename


    : mv

    rename sed rename perlexpr .
    :
    n, no-act- :
    f, force :
    v, verbose : verbose
    :

    :
    rename [option] 's/old-name/new-name/' file
    file
    _ :

    1 :
    :
    rename 's/ /_/g' *
    g


    :
    mkdir test ; cd test ; touch gx1.txt Gx2.txt gX3.txt GX4.txt
    2 :

    gx dx
    :
    rename -n 's/gx/dx/' *.txt
    :
    :
    rename(gx1.txt, dx1.txt)
    gx case-insensitive gx GX Gx :
    :
    rename -n 's/GX/dx/' *.txt
    i
    :
    rename -n 's/gx/dx/i' *.txt
    :

    :
    rename(gx1.txt, dx1.txt) rename(Gx2.txt, dx2.txt) rename(gX3.txt, dx3.txt) rename(GX4.txt, dx4.txt)



    3 :

    txt doc :
    :
    rename -n 's/\.txt$/.doc/' *
    \ .
    ɡ :


    4 :
    :
    rename -n 's/([0-9])/<\1>/' *
    <>

    5 :


    $
    :
    :
    date +%F

    :
    rename -n "s//$(date +%F)_/" *
    6 :

    s y s - - y
    :
    rename -v 'y/A-Z/a-z/' *
    capital to small

    :


    ; sed
    :
    rename "s//$(date +%F)_/;s/gx/dx/i;s/\.txt$/.doc/" *
    -v -n verbose




    pdf

  2. 12 OtmanGX :

    Adnane-GX, , , , , , , saf1, , , yucef,

  3. #2
    .: :.
    35
    GNOME

    Apr 2008
    6,800
    6,703
    14,109 4,117
    8

    .
    ( )
    188
    :
    { }
    { ѡ }





  4. #3
    Fedora 25
    GNOME

    Apr 2017
    6
    0
    Thanked 1 Time in 1 Post


  5. aziz75 :


: 1 (0 1 )