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.
Find and exec
Rename files
Report a typo
Sample Input 1:
file.txt 10
book.pdf 10
file.pdf 10
data.csv 10Sample Output 1:
book.pdf
data.csv
file.pdf.renamed
file.txt.renamedWrite a program in Shell
#!/usr/bin/env bash
solve() {
# add your solution here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.