Skip to content

Instantly share code, notes, and snippets.

@henningjensen
Created November 22, 2017 21:12
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 henningjensen/0f87e8144ee4c1b1bf69177f8094de78 to your computer and use it in GitHub Desktop.
Save henningjensen/0f87e8144ee4c1b1bf69177f8094de78 to your computer and use it in GitHub Desktop.
Printing multiple files in Ubuntu with Nautilus script
#!/bin/bash
#
# print.sh
#
# credits original script:
# http://www.frenssen.be/2010-05-09-printing-a-file-from-the-right-click-context-menu-in-nautilus/
#
# Print files from the right-click context menu in Nautilus.
# Place this script in ~/.local/share/nautilus/scripts/
echo "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | while read file
do
lpr "$file"
done
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment