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
For example
#!/bin/bashlist=$(cat somefile | grep jar | sed 's/aaa/bbb/g')# add each of the paths as a system scope dependency to the pomcounter=1for OUTPUT in $listdopathvar=/$OUTPUTecho "<dependency><groupId>x</groupId><artifactId>$counter</artifactId><version>1.0</version><systemPath>$pathvar</systemPath><scope>system</scope></dependency>" >> pom.xml((counter++))done
Comments
Post a Comment