Shell stuff: Revision history

From ihaveahax's Site
Jump to navigationJump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

22 January 2022

  • curprev 03:2403:24, 22 January 2022Ihaveahax talk contribs 344 bytes +344 Created page with "Some shell stuff I need to keep searching for. == Comparison == <syntaxhighlight lang="bash"> if [ abc = def ]; then echo "Valid" fi </syntaxhighlight> == Arguments == <syntaxhighlight lang="bash"> if $# -eq 0 ; then echo "No arguments" fi echo "First arg: $1" for arg in "$@"; do echo "Arg: $arg" done </syntaxhighlight>"