Skip to content
ᴀɴᴛᴏɴ ɴᴏᴠᴏᴊɪʟᴏᴠ edited this page Jun 23, 2024 · 4 revisions

Description

Checks bash loops formatting.

Problematic code

for file in $(ls -1)
do
  rm -f $file
done

Correct code

for file in $(ls -1) ; do
  rm -f $file
done
Clone this wiki locally