Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 10:53 PM
10-04-2007 10:53 PM
delete
-rw-r--r-- 1 porabat prod 1004 Aug 31 07:40 IFCHAPSIN1070831072920310807074046.dat.Z
-rw-r--r-- 1 porabat prod 1695 Aug 31 07:41 IFCHAPSIN1070831070023310807074105.dat.Z
-rw-r--r-- 1 porabat prod 5095 Aug 31 07:41 IFCHAPSIN1070831062919310807074118.dat.Z
-rw-r--r-- 1 porabat prod 109 Aug 31 07:41 CHAPSIn_Error31AUG2007074117.csv.Z
-rw-r--r-- 1 porabat prod 109 Aug 31 07:41 CHAPSIn_Error31AUG2007074103.csv.Z
-rw-r--r-- 1 porabat prod 109 Aug 31 07:41 CHAPSIn_Error31AUG2007074134.csv.Z
-rw-r--r-- 1 porabat prod 1084 Aug 31 08:11 IFCHAPSIN1070831080002310807081111.dat.Z
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 11:15 PM
10-04-2007 11:15 PM
Re: delete
do
rm $FILE
done
You might want to test by replacing "rm" with "ll" first.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 11:18 PM
10-04-2007 11:18 PM
Re: delete
do
if [ ! -f $i ]
then
continue
fi
if [ "$f" != "Aug" -o "$g" != "31" ]
then
continue
fi
echo "# $(ls -l $i)"
echo "rm $i"
done > myfiletoexecute
check the myfiletoexecute, if it looks ok
sh myfiletoexecute
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 11:37 PM
10-04-2007 11:37 PM
Re: delete
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2007 03:18 AM
10-05-2007 03:18 AM
Re: delete
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2007 09:35 PM
10-07-2007 09:35 PM
Re: delete
use rm -i if you want to confirm each signle file.
HTH,
Art