Skip to content

Instantly share code, notes, and snippets.

@sjaeckel
Created January 20, 2014 21:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sjaeckel/8529714 to your computer and use it in GitHub Desktop.
Save sjaeckel/8529714 to your computer and use it in GitHub Desktop.
script to remove content of CVS/SVN tags from files
s@\$Author.*\$@\$Author\$@Ig
s@\$Date.*\$@\$Date\$@Ig
s@\$Id.*\$@\$Id\$@Ig
s@\$Revision.*\$@\$Revision\$@Ig
s@\$Source.*\$@\$Source\$@Ig
#!/bin/sh
# remove content of CVS/SVN tags from files
myfiles=`find . -type f -name *.c -o -name *.h`
for f in $myfiles; do
sed -b -i -f commit_ids.sed ${f}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment