#!/bin/bash for i in $(cat sample.txt) do echo $i,$(awk -F, '{print $5}' $i | md5sum ) done