Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Dumb sed trick for converting GB/MB to bytes..
# Dumb sed trick for converting GB/MB to bytes..
# awk would be better for detail work as you can do math
sed 's/\.[0-9] GB/000000000/' Raw_Status.csv |sed 's/\.[0-9] MB/000000/' | sed 's/0\ bytes/0/' > Cooked_Status.cvs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.