Skip to content

Instantly share code, notes, and snippets.

@chip
Created February 2, 2014 01:56
Show Gist options
  • Select an option

  • Save chip/8761933 to your computer and use it in GitHub Desktop.

Select an option

Save chip/8761933 to your computer and use it in GitHub Desktop.
#!/bin/bash
for file in ls *.html; do
echo $file
sed '/right-nav/{N;N;N;N;N;N;N;d;}' $file > $file.out
mv $file.out $file
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment