Files
bash-programming-from-scratch/manuscript/resources/code/BashScripting/while-file-pipe.sh
2020-10-17 10:22:39 +02:00

8 lines
103 B
Bash

#!/bin/bash
find . -maxdepth 1 -print0 |
while IFS= read -r -d '' filename
do
file "$filename"
done