Skip to content

Instantly share code, notes, and snippets.

@nguyenhuutuananh
Created January 13, 2023 01:02
Show Gist options
  • Save nguyenhuutuananh/629d0b6cf491528fa4e592b1deed27da to your computer and use it in GitHub Desktop.
Save nguyenhuutuananh/629d0b6cf491528fa4e592b1deed27da to your computer and use it in GitHub Desktop.
Bash - Split string by delimiter
#!/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