We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [batch]

Questions about batch-processing - how to apply the same procedure to a lot of files/objects.

Filter by
Sorted by
Tagged with
540
votes
7answers
647k views

How can I recursively delete all files of a specific extension in the current directory?

How do I safely delete all files with a specific extension (e.g. .bak) from current directory and all subfolders using one command-line? Simply, I'm afraid to use rm since I used it wrong once and now ...
24
votes
3answers
36k views

How can I compress images?

I have 5,000 images which I need to compress (to display on my website). I am new to Ubuntu. So what do I do?
18
votes
4answers
45k views

How to batch convert .doc or .docx to .pdf

I need to batch convert a set of .doc or .docx files to .pdf in terminal, not using a GUI. It would be helpful if I could batch-process multiple files. I would also like to maintain as much meta-...
4
votes
1answer
17k views

CMD.exe Emulator in Ubuntu to run .cmd/.bat file [duplicate]

Possible Duplicate: Executing .bat file The title says it all. I need to create batch files and run and test them. I dont have any Windows machine. If there was any cmd.exe emulator in Ubuntu I ...
7
votes
2answers
2k views

How to recursively and automatically convert all bmp images to png files in a given directory?

I have a directory on my machine with 100s of images in it. About half of those images are bmp files, and the other half are png files. I need to convert all the bmps into pngs, but as there are so ...
14
votes
3answers
70k views

Is there a way to make a file that would run a terminal command when you click it?

Is there a way to make a file that would run a terminal command when you click it? Similar to a .bat extension in windows?
14
votes
4answers
58k views

What's the Linux equivalent to Windows batch files?

I have a batch file which I use to create an .apk file on my Windows machine. Now I need to be able to create the .apk file in Ubuntu but I don't know how translate my .bat file to a script to be able ...
9
votes
5answers
3k views

How can I kill a specific X window

Given IDs produced by wmctrl -l, I d like to be able to kill the process linked to the window ID. How would you suggest to do it?'
46
votes
4answers
133k views

How to create multiple files with the Terminal?

I've been learning to program with a really cool introductory book to C and I write off every example and task so I can learn the syntax by heart. I did every file manually until now, but the clicking,...
11
votes
3answers
63k views

How do I create a batch file and run it? [duplicate]

should I use the text editor? the extension should be .sh or .bat?
6
votes
2answers
7k views

How can I batch convert images to b/w while preserving the folder structure

I want to batch process images but I have a very specific task that I want to do I do not want to change image type I want to make them black and white I want it to create/preserve images and sub ...
1
vote
2answers
14k views

How to run a batch (.bat) file on Ubuntu using Wine (with complete steps)?

I have this old Windows game with a .bat file which doesn't open with Wine and only opens as a text file. I have browsed through and tried several suggested ways of opening it with Wine console ...
5
votes
2answers
2k views

How can I recursively strip off exif info from all images in a directory?

for i in *.jpg; do echo "Processing $i"; exiftool -all= "$i"; done I need to adapt this line of code which strips all exif info from images in a directory. I need it to; not fail if the current ...
4
votes
1answer
542 views

Free codecs: How to use FFmpeg to convert my mp4s to ogv under Xenial?

I am very attracted to the idea of using completely free codecs. How do I convert my .mp4 files to .ogv using FFmpeg under Xenial Xerus using these free codecs? I am interested in: Converting a ...
1
vote
1answer
2k views

Ape files (Monkey's Audio): How to create them under Trusty and Xenial?

I have seen plenty of useful information on Ask Ubuntu about how to play Monkey's Audio or APE files. However I would like create these files from a collection of wav files using either command line ...
1
vote
3answers
5k views

Give write access to USB and Serial devices automatically

I am working with some USB and Serial micro-controllers. Everytime I plug a device I have to do the following command to give it write access, and also my password: sudo chmod 666 /dev/ttyUSB0 Can I ...
1
vote
2answers
7k views

GUI tool for watermarking photos and other images

Parents asked me if they can watermark their photos. By "watermark" I mean a small signature in a corner. I made Phatch scenario which they run they need. But it looks like Phatch breaks rotation ...
-1
votes
1answer
1k views

Using txt file to download the File from FTP location in Batch Mode capability

I need help regarding downloading the files from FTP Server to the Local Server. for downloading i need to use the FTP In batch Mode capability and I have a txt file with with all the files which ...