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
‹
›
Home
View web version
No comments:
Post a Comment