Leser: 22
1
2
3
/inputfile/data/xxx/yyy/update/dateiname1_20110128.txt,123,LED,31....
/inputfile/data/xxx/yyy/update/dateiname12_20110127.txt,128,EPF,11....
...
1
2
/inputfile/data/xxx/yyy/update/20110128/dateiname1_20110128.txt,123,LED,31....
/inputfile/data/xxx/yyy/update/20110127/dateiname12_20110127.txt,128,EPF,11....
perl -p -i.old -nle 's/\/(\w+)(\d{8})/\/\2\/\1\2/;print $_;' $inputdirectory/update.txt
2011-03-01T18:09:33 lukastonnerHallo,
Code: (dl )perl -p -i.old -nle 's/\/(\w+)(\d{8})/\/\2\/\1\2/;print $_;' $inputdirectory/update.txt
perl -pi.old -e 's~(/\w+)(\d{8})~/$2$1$2~' filename