Skip to content

Instantly share code, notes, and snippets.

@odadoda
Created March 7, 2014 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odadoda/9410896 to your computer and use it in GitHub Desktop.
Save odadoda/9410896 to your computer and use it in GitHub Desktop.
Fetching one line at a time with awk
current_line=$(awk "NR==$current_row" "$FILE")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment