Skip to content

Instantly share code, notes, and snippets.

@dpapp-hortonworks
Created November 17, 2017 14:53
Show Gist options
  • Save dpapp-hortonworks/ae968c06fbfa6e53213e275c5ac4f6ff to your computer and use it in GitHub Desktop.
Save dpapp-hortonworks/ae968c06fbfa6e53213e275c5ac4f6ff to your computer and use it in GitHub Desktop.
#!/bin/bash
set -x
cat short | while read line
do
export file_name="`echo $line | cut -d' ' -f 1`"
export line_number="`echo $line | cut -d' ' -f 2`"
export error_message="`echo $line | cut -d' ' -f 3-`"
vim "$file_name" +${line_number}
# echo $file_name
# echo $line_number
# echo $error_message
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment