Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- full_array=(*); declare -p full_array
- edited_array=()
- for x in "${full_array[@]}"; do
- if [[ $x == *.com.au ]]; then
- edited_array+=( "${x#.com.au" )
- fi
- done
- echo "${edited_array[@]}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement