1 2 3 4 5 6 7 8
#!/bin/sh for i in "$@"; do # get last element in path kver=${i##*/} mkinitfs $kver done