# Active code sample from script. #!/bin/bash echo -e "\nAuto installing dependancies for packages to be edited\n" for PACKAGEDEPENDS in $(grep -h "#-" gen-* |cut -c 1,2 --complement -) do echo "$PACKAGEDEPENDS" done # What happens when for loop is run. linux-image-$(uname -r) # uname -r is on one line when just the grep is run. grep -h "#-" gen-* |cut -c 1,2 --complement - linux-image-$(uname -r)