Simply put, using the bash for loop and other standard commands it can be a quite powerful method to write custom content to files/databases etc For example #!/bin/bash list=$(cat somefile | grep jar | sed 's/aaa/bbb/g') # add each of the paths as a system scope dependency to the pom counter=1 for OUTPUT in $list do pathvar=/$OUTPUT echo " <dependency> <groupId>x</groupId> <artifactId>$counter</artifactId> <version>1.0</version> <systemPath>$pathvar</systemPath> <scope>system</scope> </dependency> " >> pom.xml ...
I want to learn something new every day, but can I?