Something
public shellscript v1 · immutablefilelength=wc -l array.txtwhile ((i=1;i<=filelength;i+=1))do if sed -n $i Amount array.txtfor ((j=i;j<=filelength;j+=1)); sed -n $i /<string>.*</string>/p array.txtfor ((i=1;i<=filelength;i+=1))donefilelength=wc -l array.txtwhile ((i=1;i<=filelength;i+=1))do if sed -n $i Amount array.txtfor ((j=i;j<=filelength;j+=1)); sed -n $i /<string>.*</string>/p array.txtfor ((i=1;i<=filelength;i+=1))done