Computer scienceSystem administration and DevOpsCommand lineWorking with files

Find and exec

Copy files

Report a typo

Use the -exec option of the find command to copy all .pdf files from the /tmp/test directory to /tmp/docs.

Sample Input 1:

test_file.txt 10
notes.txt 10
students_book.pdf 10
novel.pdf 10
data_table.csv 10

Sample Output 1:

novel.pdf
students_book.pdf
Write a program in Shell
#!/usr/bin/env bash

solve() {
# add your solution here

}
___

Create a free account to access the full topic