Created
January 13, 2023 01:02
-
-
Save nguyenhuutuananh/629d0b6cf491528fa4e592b1deed27da to your computer and use it in GitHub Desktop.
Bash - Split string by delimiter
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
#!/bin/bash | |
awk -F':' '{ for(i=1;i<=NF;i++) print $i }' <<< $PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment