Skip to content

Instantly share code, notes, and snippets.

@coreymcmahon
Created July 14, 2022 05:36
Show Gist options
  • Save coreymcmahon/19bc09ba489faaf8ee36a7a463c83bc5 to your computer and use it in GitHub Desktop.
Save coreymcmahon/19bc09ba489faaf8ee36a7a463c83bc5 to your computer and use it in GitHub Desktop.
Replace each character in a given string with all 0's
# Takes the first argument and replaces all characters with '0'
node -e 'console.log(process.argv[1].split("").map(() => "0").join(""))' "<here>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment