I have this code so far...for i in {1..200}; do sed '$i,0!d' md5list.txt | grep -a : ; done I would like to run basename for each iteration of the code above, like so:basename $(for i in {1..200}; do sed '$i,0!d' md5list.txt | grep -a : ; done)How can I do that? What are some keywords, so I can look up similar issues? 
Use sed as argument for basename
bash;for;shell builtin