Created
July 14, 2022 05:36
-
-
Save coreymcmahon/19bc09ba489faaf8ee36a7a463c83bc5 to your computer and use it in GitHub Desktop.
Replace each character in a given string with all 0's
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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