to iterate over both key and value in for loop

{% for key, value in listOfKeyValueArray %}

to prevent google docs, from editing document, even if viewer has edit rights, add following suffix to URL:

/preview

use this suffix in replacement of

/edit*

or at at the end if /edit is not present

other options you can force are
– Preview mode
– Force copy
– Force copy with comments
– Create template
– PDF

/preview
/copy
/copy?copyComments=true
/template/preview
/export?format=pdf
/export/pdf

to remove duplicates within file, when duplicates are not one after another (adjacent duplicate lines), and preserver order so that last duplicate line is last in file

awk '!visited[$0]++' YOUR_FILE_HERE > YOUR_FILE_HERE.temp && mv YOUR_FILE_HERE.temp YOUR_FILE_HERE