Skip to content

Instantly share code, notes, and snippets.

@acidtib
Last active September 10, 2024 02:29
Show Gist options
  • Save acidtib/f4022339db1bc26a1fcf7d66d4c44e2e to your computer and use it in GitHub Desktop.
Save acidtib/f4022339db1bc26a1fcf7d66d4c44e2e to your computer and use it in GitHub Desktop.
for x in $(cat webcash.log) ; do webcash insert $x &> /dev/null && echo "OK: $x" || echo "ERROR: $x" ; done
Get-Content webcash.log | ForEach-Object { if (webcash insert $_ *> $null) { "OK: $_" } else { "ERROR: $_" } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment