Search Results

Search: Posts Made By: pozar
87,624
Posted By pozar
Ok... Found a bug soon as I posted this. In the...
Ok... Found a bug soon as I posted this. In the previous example the "awk" will only print out the string after the number up to the end of the line or another space. Not good if you have files or...
87,624
Posted By pozar
More on deleting old files in subdirectories
Here is a perl script that I wrote for some commercial radio stations that want to delete the oldest archive file out of subdirectories from a root directory...

#!/usr/bin/perl

# This will sort...
87,624
Posted By pozar
Here is a one liner that will sort the oldest to the newest files...
in all the subdirectories...

find . -type f -printf "%T@ %p \n" | sort -n -k 1,1 | awk '{print $2}'

Tim
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 08:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy