Wednesday, May 5, 2010

Tactical Use of Symbolic Links in Code Review

Need an index of all files that contains a given regex nice and need for review purposes? (Like, cough, strcpy?)
find . -type f -exec grep -l strcpy \{} \; | sed -s s:^./:$PWD: >STRCPY_INDEX
mkdir STRCPY
ln -sf $(cat STRCPY_INDEX) STRCPY

No comments:

Post a Comment

Post a Comment