gen_repo_files.sh grep errors
by reddog83 from LinuxQuestions.org on (#6CNN7)
Quote:
This is what is happening with grep 3.11 on Slackware-Current and using the gen_repo_files.sh script that Eric has made available.
cat gen_repos_files44.sh | grep grep if [ "$(echo $PKG|grep -E '(.*{1,})\-(.*[\.\-].*[\.\-].*).t[blxg]z[ ]{0,}$')" == "" ]; if [ "$(echo $PKG|grep -E '(.*{1,})\-(.*[\.\-].*[\.\-].*).t[blxg]z[ ]{0,}$')" == "" ]; cat .PACKAGES.TXT | grep -v "PACKAGE MIRROR: " >> PACKAGES.TXT find -L . -type f -print $PRUNES | grep -v CHECKSUMS | sort | xargs md5sum $1 2>/dev/null >> .CHECKSUMS.md5 find . -type f -print $PRUNES | grep -v CHECKSUMS | sort | xargs md5sum $1 2>/dev/null >> .CHECKSUMS.md5 GPG_FPR=$($GPGBIN --with-colon --with-fingerprint --list-keys "$REPOSOWNERGPG" |grep ^fpr |head -1 |cut -d: -f10) if ! grep -q $GPG_FPR ${REPOSROOT}/GPG-KEY ; then if ! grep -q $GPG_FPR ${REPOSROOT}}/${SUBDIR}/GPG-KEY ; then packages will not be signed! Continue? [y|N] y grep: warning: stray \ before - grep: warning: stray \ before - grep: warning: stray \ before - |