You are viewing a single comment's thread. Return to all comments →
Bash syntax:
#!/bin/bash array=() while read line; do array+=("$line") done START=3 END=5 echo "${array[@]:$START:$END}"
Seems like cookies are disabled on this browser, please enable them to open this website
Slice an Array
You are viewing a single comment's thread. Return to all comments →
Bash syntax: