Skip to content

Instantly share code, notes, and snippets.

@nak3
Last active August 29, 2015 14:12
Show Gist options
  • Save nak3/8496c01ce6c733b6bc26 to your computer and use it in GitHub Desktop.
Save nak3/8496c01ce6c733b6bc26 to your computer and use it in GitHub Desktop.
deleteline1="%{?scl:%scl_prefix}build"
deleteline2="nodejs010-build"
deleteline3="ruby193-build"
find . -name "*.spec" -type f -print0 | xargs -0 sed -i -e /$deleteline1/d
find . -name "*.spec" -type f -print0 | xargs -0 sed -i -e /$deleteline2/d
find . -name "*.spec" -type f -print0 | xargs -0 sed -i -e /$deleteline3/d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment