The Fei's Tech Notes
Wednesday, March 12, 2014
Remove Comments and empty lines from SQL file
sed '/\/\*.*\*\// d; /\/\*/,/\*\// d; s/--.*$//; /^$/ d; $!N; s/\n/ /' sample.sql > /tmp/parsed.sql
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment