Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Bash for loop on files

  • for
#!/usr/bin/env bash

# Ynon

#FILES=examples/*
#for f in $FILES
#do
#   echo "File $f"
#done



for f in examples/*
do
   echo "File $f"
done