-
-
Save Amarlanda/fc4166a543a9c5393f71b0117a18b5af to your computer and use it in GitHub Desktop.
aws vs sed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Here's what we're parsing" | |
cat -T input | |
echo '' | |
echo "First, we try awk and then cut" | |
echo '' | |
set -o xtrace | |
awk '{ print $1 "\t" $2 }' input | |
tr -s '[:blank:]' "\t" <input | cut -f 1,2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a b | |
a b | |
a b | |
a b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment