Skip to content

Instantly share code, notes, and snippets.

@knksmith57
Created April 30, 2014 16:02
Show Gist options
  • Save knksmith57/11431202 to your computer and use it in GitHub Desktop.
Save knksmith57/11431202 to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
## sandwiches 1 file (slice.v) into another (d_ff.v) _before_ regex /endmodule/
echo -e "`sed -n '/endmodule/,$!p' d_ff.v`\n`<slice.v`\n`sed -n '/endmodule/,$p' d_ff.v`"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment