DeveloperBreeze

Bash: How to Loop Over Files in a Directory

bash
#!/bin/bash

for file in /path/to/directory/*; do
    echo "Processing $file"
    # perform some operation on $file
done

Continue Reading

Handpicked posts just for you — based on your current read.

Discussion 0

Please sign in to join the discussion.

No comments yet. Start the discussion!