Feed the list of all those empty files to the rm command one at a time, and you're done:
$ ls -tr |xargs -t -I{} rm -f {}
==============================
ls /var/log/*.[0-9]* | xargs gzip --best
Readers who read this page, also read:
Tips n Tricks
- OpenSSH Server Best Security Practices
- How to kill defunct processes
- awk notes
- Related Posts on Blogger
- Edit PDF online
- recreate /dev/null
- Finding Installed Perl Modules
- LDAP Commands Notes
- Shell commands collections
- without lsof
- Crontab cheatsheet
- Expandable post summaries for Blogger
- HOW TO SETUP Acekard2i on Nintendo DSi
- Adsense inside Ad Posts
- Handy Sed oneliners
- imikimi customize your world
- Website Grader
- Twiter twiter | tweet me
- Optimize Blogger Title
- Free Blogger Templates | Free Blogger Layouts | Free Blogger Themes
- Stale NFS file handle error
- Gzip to a different directory
- Copying Downloaded Free DS ROM for DS lite (Free DS Lite Games Download)
- Installing the R4DS from scratch | DS lite R4
UNIX
- Solaris Jumpstart Howto
- Sun INIT States
- ZFS Cheat Sheet
- Clearing Sendmail queue
- How to: Mounting an ISO image in Solaris
- How to: IPMP Load Balancing & Resilience in Solaris
- crontab: unexpected end of line
- Find WWN (world wide name) in Solaris
- ZFS boot/root - backup and restore
- OpenSSH Server Best Security Practices
- How to kill defunct processes
- ZFS Tip: Comparison of SVM mirroring and ZFS mirroring
- ZFS Datasets and "zfs list"
- ZFS Tip: "zpool list", "zpool status", "zpool iostat" & "zpool history"
- E10K: Powering on/off procedures
- Moving a pool to a different server
- ZFS Tip: Multiple vdevs in a pool
- Creating multiple ZFS file systems in a single pool
- Creating a simple ZFS pool and ZFS file system
- ZFS boot/root - bring on the clones
- ZFS boot/root - mirroring
- ZFS boot/root - intro
- awk notes
- Uninstall Solaris Patch Cluster
- Solaris Zones Notes
0 comments:
Post a Comment