Computer scienceSystem administration and DevOpsCommand lineWorking with files

Find and exec

Rename files

Report a typo

Use the -exec option of the find command to rename all file* files from the /tmp/test directory by adding the .renamed extension to the existing file name.

Sample Input 1:

file.txt 10
book.pdf 10
file.pdf 10
data.csv 10

Sample Output 1:

book.pdf
data.csv
file.pdf.renamed
file.txt.renamed
Write a program in Shell
#!/usr/bin/env bash

solve() {
# add your solution here

}
___

Create a free account to access the full topic