Last active
March 28, 2021 12:19
-
-
Save gonaumov/678576f3e10a774581019135a583d08f to your computer and use it in GitHub Desktop.
Replace a semicolon (;) with a greek question mark (;)
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
# -------------------------------------------------------------------------------------- | |
# Note: This bash one linner had been written just for education and demonstration | |
# purposes only. Don't actually use it. It would be very bad joke with your friend! :) | |
# It will replace usage of semicolon (;) with Greek question mark in all | |
# C#, JavaScript and TypeScript files in the directory recursively. | |
# -------------------------------------------------------------------------------------- | |
# | |
# Replace a semicolon (;) with a greek question mark (;) in your friend's | |
# C#, JavaScript or TypeScript code and watch them pull their hair over the syntax error ... | |
# They don't understand it, but their arms go rubbery and their throats constrict. | |
# Suddenly, I am their greatest fear, I love it! | |
# @author Georgi Naumov | |
# @email [email protected] for contacts and suggestions | |
find . -type f -name "*.cs" -o -name "*.js" -o -name "*.ts" -print0 | xargs -0 sed -i 's/\x3b/\xCD\xBE/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment