Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

for name in file2[o-9].txt; do sed -i -e 's/file/film/g' Sname; done (4) Suppose you have a directory full of phone pictures and each of them

image text in transcribed
for name in file2[o-9].txt; do sed -i -e 's/file/film/g' Sname; done (4) Suppose you have a directory full of phone pictures and each of them has a name of the form: 20171225 204539.jPg where the first part is a date, the second part is just random numbers and the extension is the type of image. Here is a command line bash script. 1-1; for N in ..jpg; do x-$(echo "$N" I sed -e 'blah"); "SN" "$x" ((1++)); done . mv replace the blah in the above so that it changes the filenames to be of the form xmas-20171225-1.jpg xmas-20171225-2.jpg xmas-20171225-3.jpg etc (5) ) Suppose you have a camera that names it's images with the word 'image' followed by a 10 digit random number, followed by a dash and the date. For example: image3874319230-160908. jpg where the 16090S means the image was created on the 16th of September, 2018. You don't like the 10 digit random number in there and would rather have the images just named by the date and the file number from that date. So that, for example, the file above would be called 160908-1.jPg and the next one on that same date would be 160908-2.jpg etc. Write a command line shell script which will rename all of the jpg files in the current directory to get rid of the stuff you don't want as in the example above

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Information Systems 1 International Baltic Conference Dbandis 2020 Tallinn Estonia June 19 2020 Proceedings

Authors: Tarmo Robal ,Hele-Mai Haav ,Jaan Penjam ,Raimundas Matulevicius

1st Edition

303057671X, 978-3030576714

More Books

Students also viewed these Databases questions

Question

7. Discuss the key features of the learning organization.

Answered: 1 week ago