Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save byte/245525 to your computer and use it in GitHub Desktop.
Save byte/245525 to your computer and use it in GitHub Desktop.
grep "blogspot.com" file.csv | awk -F "\"*,\"*" '{print "["$4"/feeds/posts/default]", "\nname = " $2 "\n"}' >config.ini
sed 's/\[www/\[http\:\/\/www/g' config.ini
# another example for parsing CSV from the command line
# awk -F "\"*,\"*" '{print $3}' file.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment