• Skip to primary navigation
  • Skip to content
  • Skip to footer
Personal Website Dorian Gravier
  • Skills
  • Portofolio
  • Code
  • Maps
  • Tools
  • About
    Dorian Gravier

    Dorian Gravier

    Just another boring, autodidact, climber, biker, time traveler, and french dude.

    • Konstanz, DE
    • GitHub
    • Instagram
    • Youtube

    Rename_in_bash_with_perl_or_sed_with_for_loop

    less than 1 minute read

    
    for i in *pdf;do
    	new=$(echo $i | perl -pe 's/(.*?)_(.*?)(_\d*.pdf|.pdf)/\2__\1__\3/g')
    	mv "$i" "$new"
    done
    

    Source in SuperUser

    Updated: April 8, 2024

    Share on

    X Facebook LinkedIn Bluesky
    Previous Next

    You May Also Enjoy

    Set up Barrier windows to windows (installed with scoop)

    less than 1 minute read

    Set up Barrier windows to windows (installed with scoop)

    Compare 2 files and get the output colored from icdiff in html

    less than 1 minute read

    I already posted the icdiff tool to compare 2 files.

    Fix chrome to open http or local link, file in a new tab when you use scoop

    less than 1 minute read

    Open chrome Use process explorer with the target to find which exe it is and check the path - Should be something like this : - `“C:\Users\...

    Html table with images to xlsx with python

    1 minute read

    How to convert a html table with images to xlsx with those images included. Here you have to adapt your code with input output (here info.html and info.xlsx).

    • Feed
    © 2026 Personal Website. Powered by Jekyll & Minimal Mistakes.