Created
November 30, 2018 13:38
-
-
Save egoarka/ee9d69aa3a091ec746fcc70f9a7a1e42 to your computer and use it in GitHub Desktop.
JS alike destructuring assignment for bash
This file contains 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
echo "33:34" | awk -F':' '{ print $1, $2 }' | read a b <<< (cat) | |
read c d <<< $(echo "21:22" | awk -F':' '{ print $1, $2 }') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment