bash script looping?
public shellscript v1 · immutable#!/bin/bashfor VHFILE in ./virthosts/*do if sed 's/68\.12\.54\.142/65.43.123.23/g' "$VHFILE" > /tmp/hosttemp.txt \ && cat /tmp/hosttemp.txt >> "$VHFILE" \ && rm -f /tmp/hosttemp.txt then echo "Done with \"$VHFILE\"." else echo "Failure at \"$VHFILE\"." fidone