Skip to content

Instantly share code, notes, and snippets.

@ryo1kato
Created April 5, 2014 11:20
Show Gist options
  • Select an option

  • Save ryo1kato/9990618 to your computer and use it in GitHub Desktop.

Select an option

Save ryo1kato/9990618 to your computer and use it in GitHub Desktop.
list=($(echo file?))
max=${#l[@]}
i=0
while (( i < max ))
do
j=0
while (( j < max-i-1))
do
echo ${list[$j]} ${list[$i]}
let j++
done
let i++
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment