Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Dec 2004
    Texas, USA

    script to shred multiple files?

    Newb needs to shred multiple files. Have been using:
    shred -vuxfn 5 <filename>
    and it works great but only one file at a time. Info shred indicates shred is for devices but this is just a folder. I thought about creating a new /dev/hda8 then transfer files to this partition, but.....
    I don't want to shred the device or disk, just about 40 or 50 non critical financial files before i sell my PC.
    New to scripting. Any help out there?

  2. #2
    Linux Engineer
    Join Date
    Mar 2005
    I don't know shred (and I don't know what it means), however if you make a list of files you want to "shred" in a file called /home/user/shred.txt, then to shred them, try this command:
    cat /home/user/shred.txt|xargs shred -vuxfn 5

  3. #3
    try this out. it works for me
    shred -n 200 -z -u /<directory name>/*.*

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts