metafresh logo and link to homepage

Extract particular fields from a generated EDI file

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

Notes:

This snipped is very usefull 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.


Zur Quelldatei auf github.com