Here is an example for generated DESADV files:
#!/bin/bash
FILES=./desadv*
for f in $FILES
do
sed '2!d' $f | cut -c 210-221 >> ./list_desadv.txt
done
This snippet is very useful if you have a bunch of EDI files generated by metasfresh and you need to know the POReferences of all shipments (M_InOut
records) that made it into EDI files.