home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 October / Chip_2003-10_cd2.bin / prezentace / dexon / p.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  2003-04-14  |  173b  |  14 lines

  1. #!/bin/sh
  2. #
  3. #
  4. #
  5. echo -n "co: "; read co
  6. echo -n "cim: "; read cim
  7. read aa
  8. for a in `ls *.htm*` ; do
  9. echo $a
  10. cat $a | sed "s/$co/$cim/g" >$a.tmp
  11. mv $a .$a
  12. mv  $a.tmp $a
  13. done
  14.