R. L. Dane :debian: :openbsd:🧉 on Nostr: npub15lrw0…qp2vs npub1cj22q…l2fze Since I'm a sucker for pedagogy: The function ...
npub15lrw098mn4fnsv9j7e4538479q04xran9u8tv595nf68y7tk6wqq2qp2vs (npub15lr…p2vs) npub1cj22qv2lhm4g5mgme49k33hz97pam08ca2nzapr8yhv4xyjgnmfs5l2fze (npub1cj2…2fze)
Since I'm a sucker for pedagogy:
The function line declares a function
The if line branches whether or not the first parameter "$1" evaluates to a number (that's the fancy grep command). If so, call sleep with parameter times 60, otherwise just call sleep by itself (which prints an error)
Since I'm a sucker for pedagogy:
The function line declares a function
The if line branches whether or not the first parameter "$1" evaluates to a number (that's the fancy grep command). If so, call sleep with parameter times 60, otherwise just call sleep by itself (which prints an error)