Web Scraping Images and Renaming Multiple Files

Image from the author
Image by the author
sed -i 's/original/new/g' file.txt
for filename in ./book*; do cp "./$filename" "output/$(echo "$filename" | sed -e "s/ //g")"; done
Image from the author
for filename in ./book*; do cp "./$filename" "output/$(echo "$filename" | sed -e "s/)//g")"; donefor filename in ./book*; do cp "./$filename" "output/$(echo "$filename" | sed -e "s/(//g")"; done
for filename in ./book*; do cp "./$filename" "output/$(echo "$filename" | sed -e "s/e/E/g")"; done
Image from the author
for filename in ./DJI*; do cp “./$filename” “output/$(echo “$filename” | sed -e ‘s/\.\([0..9]\)/\1/g’)”; done
for filename in ./DJI*; do cp “./$filename” “output/$(echo “$filename” | sed -e ‘s/\(\-\)/_/g’)”; done
for filename in ./DJI*; do cp “./$filename” “output/$(echo “$filename” | sed -e “s/ //g”)”; done
for filename in ./DJI*; do cp “./$filename” “output/$(echo “$filename” | sed -e “s/\(\ (1)\)//g”)”; done
for filename in ./container*; do cp “./$filename” “output/$(echo “$filename” | sed -e ‘s/\(\_\)//1’)”; done
sed -i ‘s/rot\-/rot_/g’ *.xml
for filename in ./page*; do cp “./$filename” “output/$(echo “$filename” | sed -e “s/\(\ (\)/\_/g”)”; done
for filename in ./page*; do cp “./$filename” “output/$(echo “$filename” | sed -e “s/)//g”)”; done

--

--

--

Imran is a computer vision and AI enthusiast with a PhD in computer vision. Imran loves to share his experience with self-improvement and technology.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Top CSS Frameworks for Front-end Developers in 2021

RebaseAPY Partners with SolidProof to Audit the Smart Contract

Bluehost vs GoDaddy Comparison 2021

Advanced Feature Toggle using Unleash (Java Implementation)

Testing ViewModel LiveData

How to work with Metafields when building Shopify themes

My December Recommendations for Flutter Packages

a snowy mountain peak against a background of a rosy sky

#Cloning of everhour.com —Team Boron

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Imran Bangash

Imran Bangash

Imran is a computer vision and AI enthusiast with a PhD in computer vision. Imran loves to share his experience with self-improvement and technology.

More from Medium

Identifying Tumor in MRI scan using Deep Learning Techniques.

Confusion matrix with the use case in cyber crime.

Data Mining for Wellbeing

Nuance — how we navigate through life’s spectrum