Search Results

Search: Posts Made By: MaureenT
6,437
Posted By MaureenT
echo ls to a file and then read file and selectively delete
I'm trying to write a script that will do an ls of a location, echo it into a file, and then read that file and selectively delete files/folders, so it would go something like this:

cd...
5,218
Posted By MaureenT
find with complex logic
That's great and clearly cleaner than the round about way that I was trying to do it. I guess it's time to stop putting off learning awk and sed.

ls -r | awk -F. '{a=$1$2$3$4} b!=a {b=a;i++} i>2...
5,218
Posted By MaureenT
find with complex logic
So the ideal would be to keep the last 2 build#'s so you have the last successful deploy and the current one which may have multiple iterations but as the folder names are constantly changing that...
5,218
Posted By MaureenT
find command with complex logic
I'm looking to write a script that will do a find of directories and delete them if they are older than x days but keep the last x # of folders even if they are older than x days.
The usage is for a...
Showing results 1 to 4 of 4

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