Share Pastebin
Guest
Public paste!

nettoyer_image

By: a guest | Sep 9th, 2010 | Syntax: Bash | Size: 0.18 KB | Hits: 21 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  1. #!/bin/bash
  2. # usage: ./nettoyer_image ficher_liste
  3.  
  4. if [ $# -ge 1 ]
  5. then
  6.         FILE_LIST=$1
  7. else
  8.         FILE_LIST=$STDIN
  9. fi
  10.  
  11. cat $FILE_LIST | while read LINE
  12. do
  13.         rm -f $LINE
  14. done