Csv-iteration: Revision history

Jump to navigation Jump 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.

25 February 2024

  • curprev 05:1905:19, 25 February 2024Admin talk contribs 429 bytes 0 No edit summary
  • curprev 05:1105:11, 25 February 2024Admin talk contribs 429 bytes −10 No edit summary
  • curprev 05:1005:10, 25 February 2024Admin talk contribs 439 bytes +439 Created page with " <pre> #!/bin/sh # process a comma-separated list of values ITEMLIST="apples,pears" ITEMCOUNT=1 STATUS=0 while true do ARGCNT="$" ARGCNT=$ARGCNT$ITEMCOUNT ITEMNAME=`echo $ITEMLIST | awk -F \, "{print $ARGCNT}"` if test -z "$ITEMNAME" then ITEMCOUNT=$((ITEMCOUNT - 1)) break else # item name found, do something with it echo "Item $ITEMCOUNT = $ITEMNAME" ITEMCOUNT=$((ITEMCOUNT + 1)) fi done </pre>"