query: How to write bash script that deletes the oldest file in a directory if there are greater than N files in the directory?
positive_passages.docid: 47667
positive_passages.text: remove oldest files
negative_passages.docid: 123646
negative_passages.text: Remove an element from a Bash array
negative_passages.docid: 86196
negative_passages.text: Recursive bash script to collect information about each file in a directory structure
negative_passages.docid: 1303
negative_passages.text: Bash rename 360 000 files using find -exec
negative_passages.docid: 134236
negative_passages.text: How to remove all files in a directory except hidden ones?
negative_passages.docid: 24119
negative_passages.text: How do I delete a folder which is nested quite deep and avoid "File name too long"?
negative_passages.docid: 12582
negative_passages.text: How can I recursively delete all files of a specific extension in the current directory?
negative_passages.docid: 153244
negative_passages.text: Delete all files to which no corresponding file with another extension exists
negative_passages.docid: 28597
negative_passages.text: Checking from shell script if a directory contains files
negative_passages.docid: 9818
negative_passages.text: bash command for each file in a folder
negative_passages.docid: 94950
negative_passages.text: How do I limit the running time of a BASH script
negative_passages.docid: 29703
negative_passages.text: Batch file to delete files older than N days
negative_passages.docid: 151094
negative_passages.text: Deleting files older than 30 days based on filename as date
negative_passages.docid: 75654
negative_passages.text: How could I compare two files and remove similar rows in them (bash script)
negative_passages.docid: 74513
negative_passages.text: Delete files except n files with the "bigger" name?
negative_passages.docid: 84894
negative_passages.text: How to find and delete duplicate files within the same directory?
negative_passages.docid: 12151
negative_passages.text: Rename multiples files using Bash scripting