×
Create a new article
Write your page title here:
We currently have 3,189 articles on s23. Type your article name above or create one of the articles listed here!



    s23
    3,189Articles

    UsefulBashScripts: Difference between revisions

    Content added Content deleted
    imported>(logged).anon-online.org
    No edit summary
    imported>mutante
    mNo edit summary
     
    (One intermediate revision by one other user not shown)
    Line 1: Line 1:
    <h1>Bashscript for transforming Filename</h1>
    <h1>Bashscript for transforming Filename</h1>
    I have encountered one problem when I tried to use software I have copied from a windows machine in a windows emulator. The filenames where all in capital letters most windows programm╪≈¬we5»1q·äó)┼%Auntil I have renamed them all. Instaed of renaming each file with one seperate "mv" command you can use this little, useful script
    I have encountered one problem when I tried to use software I have copied from a [[windows]] machine in a windows emulator. The filenames where all in capital letters most windows programms didn't work until I had renamed them all. Instaed of renaming each file with one seperate "mv" command you can use this little, useful script
    <br>
    <br>
    <br>
    <br>
    Line 6: Line 6:
    do mv -i $i $(echo $i | tr [A-Z] [a-z])<br>
    do mv -i $i $(echo $i | tr [A-Z] [a-z])<br>
    done<br>
    done<br>
    [[Category:Computer]]
    [[Category:Linux]]
    [[Category:Programming]]

    Latest revision as of 22:53, 23 February 2005

    Bashscript for transforming Filename

    I have encountered one problem when I tried to use software I have copied from a windows machine in a windows emulator. The filenames where all in capital letters most windows programms didn't work until I had renamed them all. Instaed of renaming each file with one seperate "mv" command you can use this little, useful script

    for i in *
    do mv -i $i $(echo $i | tr [A-Z] [a-z])
    done

    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.