10-11-2019, 04:57 PM
Ok with some trial and error I have found a way to do this with a for loop. It seems a bit excessive so I would be interested in an easier way of doing this. Here is the command
for line in $(cut -f4 -d'*' pmkidfile); do echo "$line">temp.txt; cat temp.txt | xxd -r -p; echo ; done
for line in $(cut -f4 -d'*' pmkidfile); do echo "$line">temp.txt; cat temp.txt | xxd -r -p; echo ; done