Sunday, 18 December 2011

Delete All .txt files in all subdirectories in ubuntu?

To use of Following command line You can delete all files named like .txt

    find /folder -type f -name "*.txt" -delete 




         Use of this command line you can  delete all file in sub directories named like ".txt". You can delete any  files by just by replacing file extension and put that your extension into your command line.
         "folder -type f" is the path where the folder is located




No comments:

Post a Comment