Skip to content

Instantly share code, notes, and snippets.

@yangziy
Created July 29, 2022 15:48
Show Gist options
  • Save yangziy/0ed5789d108534a14cd322c62e118dea to your computer and use it in GitHub Desktop.
Save yangziy/0ed5789d108534a14cd322c62e118dea to your computer and use it in GitHub Desktop.
#!/bin/bash
interactive=
filename=~/sysinfo_page.html
while [ "$1" != "" ]; do
case $1 in
-f | --file ) shift
filename="$1"
;;
-i | --interactive ) interactive=1
;;
-h | --help ) usage
exit
;;
* ) usage
exit 1
esac
shift
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment