ItecSoftware Logo

Shell Batch Script to Loop through Files

batch script to loop through files

Another quick example of a tool belonging in an administrators toolbox. In our multi server hosting environment, we’re often in need for an automated, administrative command line task, and here is one to write a batch script to loop through files in the current directory and perform some actions on them.

Really, nothing is much simpler than that once we know how to it, it’s just that most administrators or developers don’t take the time to get into shell scripting. But little ...

read more

Listed in Linux, Shell Scripting

Tags: bash, scripting, shell