sbc_compliant: (Default)
[personal profile] sbc_compliant
yesterday in class we learned about conditional shell loops:

  • if then elif else fi

  • case esac


plus shell variables:


  • $1, $2, $3 ... $n
    command line arguments
  • $#
    count of all command line arguments
  • $*
    all command line arguments
  • $?
    exit code from last command


Today we're learning more about quoting, i/o, and loops.

It's fun to see what I do and don't know. Some of this is review; some is brand-spankin'-new.

Fr'ex, I found I can use $(cmd) in place of `cmd`.

Profile

sbc_compliant: (Default)
sbc_compliant

November 2019

S M T W T F S
     12
3456789
10111213141516
17181920212223
24252627282930

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 10th, 2026 06:35 am
Powered by Dreamwidth Studios