Skip to content

Instantly share code, notes, and snippets.

@gonaumov
Last active March 28, 2021 12:19
Show Gist options
  • Save gonaumov/678576f3e10a774581019135a583d08f to your computer and use it in GitHub Desktop.
Save gonaumov/678576f3e10a774581019135a583d08f to your computer and use it in GitHub Desktop.
Replace a semicolon (;) with a greek question mark (;)
# --------------------------------------------------------------------------------------
# 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