deepakdeshp
September 17th, 2016, 10:17 PM
Hello,
1.I was trying to create scripts for following
ffmpeg -i myvideo.mp4 -codec: copy myvideo.avi input .mp4 file names should be taken from a text file and the converted video should be saved with same names as the input file with .avi extension. The above basic command does work.
2. Find 10 biggest file in a directory and interactively delete them. I wasnt able to combine find command with -exec rm -i (find . -type -f -name ".file-to-delete" -exec rm {} \;) .
What I was trying
command |(find . -type -f -name ".file-to-delete" -exec rm -i {} \; where command finds 10 biggest files. I dont want to delete any directories.
Thank you for your help .
1.I was trying to create scripts for following
ffmpeg -i myvideo.mp4 -codec: copy myvideo.avi input .mp4 file names should be taken from a text file and the converted video should be saved with same names as the input file with .avi extension. The above basic command does work.
2. Find 10 biggest file in a directory and interactively delete them. I wasnt able to combine find command with -exec rm -i (find . -type -f -name ".file-to-delete" -exec rm {} \;) .
What I was trying
command |(find . -type -f -name ".file-to-delete" -exec rm -i {} \; where command finds 10 biggest files. I dont want to delete any directories.
Thank you for your help .