linux - Renamea file with new suffix -
how can rename file eith new suffix known prefix ?
example:
i have file called: a_proof.txt
how can rename in: a_proof.tmp
i have utilize linux shell csh , ksh, , used programs on linux reddish hat.
without using bash features can utilize basename
:
mv a_proof.txt `basename 'a_proof.txt' '.txt'`.tmp
linux shell redhat
No comments:
Post a Comment