Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # !!! Be careful with scripts, always do your backup or play on a copy !!!
- if [[ $# -eq 0 ]] ; then
- echo 'usage: prfiles.sh project.dproj'
- exit 1
- fi
- declare file_content=$( cat $1 | sed -nr "/DCCReference Include/I{s/(.*)\"(.*)\"(.*)/\2/g;p}" )
- shopt -s nocasematch
- for i in `find . -name "*.pas" -type f -printf '%f\n'`; do
- [[ ! " $file_content " =~ $i ]] && echo $i "not in dproj"
- done
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement