Skip to content

Instantly share code, notes, and snippets.

View nilshah98's full-sized avatar
🎯
Focusing

Neel Shah nilshah98

🎯
Focusing
View GitHub Profile
@nilshah98
nilshah98 / vim_tricks.md
Last active March 14, 2022 14:32
Everything vim related I use
  • To open any other file using vim command -
    :e [file] - Opens a file, where [file] is the name of the file you want opened
@nilshah98
nilshah98 / sed_regex.md
Last active August 15, 2021 08:39
Uniformly formatting dates using sed and regex

Issue

Exported data contains date in two formats, ie - 07/12/2021 and 7/20/2021 which makes it a little trickier to do analysis on the data. Sample data -

www.google.com,07/12/2021,123
www.wikipedia.org,7/20/2021,567

Solution

Using sed and regex, detect those dates and make them uniform.

Keybase proof

I hereby claim:

  • I am nilshah98 on github.
  • I am nilshah98 (https://keybase.io/nilshah98) on keybase.
  • I have a public key ASBDuR2SS3KiChTE3KHlLHOZ5YnhfgEGlY7sjY6wpNKDHQo

To claim this, I am signing this object: