info:2dos.sh

#! /bin/bash
# [[2dos.sh]] script to make a list of files containing string "todo"
# Authors:
# FR, radeff@akademia.ch
# History
#  2009/05/05 16:07: FR, created
#########
clear
echo "Searching todos within current dir: " `pwd` 
find . -type f -exec grep -l todo {} \; > junk
grep -v ".svn/" junk > t && mv t junk
cat junk | while read i
do
echo "---"
echo $i
grep -n todo $i
done
rm junk
  • info/2dos.sh.txt
  • Dernière modification : 2023/01/16 12:35
  • de radeff