Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to print out 40 or so different .doc files which are in a directory. There is no right-click option to print them all out if I select them. I don't want to open each one and then print them one by one.

Is there any way to batch print word (.doc) files in Ubuntu?

share|improve this question

3 Answers 3

Create file in ~/.gnome2/nautilus-scripts and name it 'Print selected' or whatever you want. Copy paste this into in:

#!/bin/bash
for i in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
do
  lpr $i
done

Make it executable, restart Nautilus. Now you'll be able to print selected file(s) with right clicking the selection and choosing 'Print selected' from Scripts menu.

share|improve this answer

open your terminal and cd to that dir where you have files and then type

lpr file_name1 file_name2 file_name3

for easy filling your files name there press first two or three letters of that file name and give a TAB , so automatically it will fill that file name .

Hope that helps.

share|improve this answer

cd into the directory and then run something like find . -name "*.doc" -exec lpr {} \;

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.