Skip to main content
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
Source Link

Using ricchard'sricchard's idea removing all except last in month:

rm -f `ls *.sql | sort | uniq w11 -D -u`

To view what will be deleted:

ls *.sql | sort | uniq w11 -D -u

Using ricchard's idea removing all except last in month:

rm -f `ls *.sql | sort | uniq w11 -D -u`

To view what will be deleted:

ls *.sql | sort | uniq w11 -D -u

Using ricchard's idea removing all except last in month:

rm -f `ls *.sql | sort | uniq w11 -D -u`

To view what will be deleted:

ls *.sql | sort | uniq w11 -D -u
Source Link

Using ricchard's idea removing all except last in month:

rm -f `ls *.sql | sort | uniq w11 -D -u`

To view what will be deleted:

ls *.sql | sort | uniq w11 -D -u