Posts Tagged ‘Unix’
Sort the content of a file
Case: you have to sort the content of a file in Unix.
Solution
sort -d sourceFile > destinationFile
How to find all the files of which size is greater than a given value?
Abstract: we need to retrieve all the files in current folder (and its sub-folders) of which size is greater than 10 Mo
Use:
find . -type f -size +10000 -print