ShellCheck


finds bugs in your shell scripts.
You can cabal, apt, dnf, pkg or brew install it locally right now.
Paste a script to try it out:
📄
Your Editor (Ace – loading 800kb of JS)
 
#!/bin/bash
# Demo code from https://www.vidarholen.net/contents/blog/?p=632

# Show uptime for all hosts
while IFS= read -r host
do
  ssh "$host" uptime
done < hostnames.txt


# Play mkv video files in random order
find . -name '*.mkv' | shuf |
    while IFS= read -r file
    do
      mplayer -fs "$file"
    done

# Convert a range of avi files to mp4
printf 'vid%05d.avi\n' {34..120} |
    while IFS= read -r file
    do
      ffmpeg -i "$file" "${file%.*}.mp4"
    done


📄
ShellCheck Output
If you paste a script in the editor above, this window will show shellcheck output.

ShellCheck is...

A special thanks to the GitHub Sponsors: GitpodMercedes-Benz BashSupport Pro Route4MeSiemensper1234cavcrosbydcminterphotostructureCronitordjdefisteve-chavezChrLaucjgibsonCelebian LLC.org loves open source BestKruVPSServer.com

Wiki Sitemap