I have the following input:
Value1|Value2|Value3|Value4@@ Value5|Value6|Value7|Value8@@ Value9|etc...
In my bash script I would like to replace
How about:
for line in `echo $longline | sed 's/@@/\n/g'` ; do $operation1 $line $operation2 $line ... $operationN $line for field in `echo $each | sed 's/|/\n/g'` ; do $operationF1 $field $operationF2 $field ... $operationFN $field done done