Skip to content

Instantly share code, notes, and snippets.

@nzakas
Created July 2, 2015 18:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nzakas/0cc645d5f73cf54999ce to your computer and use it in GitHub Desktop.
Save nzakas/0cc645d5f73cf54999ce to your computer and use it in GitHub Desktop.
Increment all numbers in the form "column: 1"
# This was used to update all column numbers in ESLint tests when we
# changed to 1-based columns from 0-based
$ perl -pi.bak -e "s/(column: *)([0-9]+)/\$1.(\$2+1)/e;" tests/lib/rules/*.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment