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
-1 votes
2 answers
2k 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 ...
kunal's user avatar
  • 442
2 votes
1 answer
635 views

Running script through Terminal

I wonder if I can execute something in terminal, like .bat on Windows. Like, writing the script on the terminal, saving it somewhere, for example on desktop, and opening it, running automatically. I'm ...
sticsk's user avatar
  • 1,571
2 votes
0 answers
80 views

Program to generate batch PDFs or JPEGs?

I have a spreadsheet and I was wondering if anyone knew of a program that would batch generate simple PDFs or JPEGs from the records in it a la mail merge? That is, I have a record that contains Title,...
Brendan Michael Anderson's user avatar
3 votes
2 answers
3k views

Unattended GnuPG Key Generation for ECC

I'm trying to create an ECC PGP unattended within a bash script. It looks like this: cat >ecc <<EOF Key-Type: ECC Key-Length: 521 Subkey-Type: ECC Subkey-Length: 521 Name-Real: Test ...
msrd0's user avatar
  • 247
2 votes
1 answer
134 views

How do I perform a batch operation on files using Imagemagick on CLI [closed]

I have a working command. Now I need to know how to apply it to a bunch of files at once so as to automate the process. I tried the below commands and it didn't work. I'm trying to use Imagemagick ...
Fudruckers's user avatar
12 votes
5 answers
8k 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?'
user123456's user avatar
  • 2,368
3 votes
2 answers
6k views

Run another command when my script receives SIGKILL signal

Suppose I run a script $ nohup ./myscript </dev/null >/dev/null 2>&1 & and then kill it $ pkill myscript How can my script be designed so that when it receives the SIGKILL signal,...
user123456's user avatar
  • 2,368
2 votes
1 answer
140 views

Where is "PTBatcher" in Ubuntu 16.04?

I used PTBatcher (from package hugin) in a script on Ubuntu 14 LTS to create panoramas photos. I switched to 16.04 and now this tools does not exist any more. I used it like this: PTBatcher -a foo....
guettli's user avatar
  • 1,737
5 votes
2 answers
6k 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 ...
Dave's user avatar
  • 145
6 votes
2 answers
5k views

Embedding album art in m4a files?

I have a directory of m4a files together with a single album art image named cover.jpg. How can I 'embed' this album art image into the m4a files using the command line?
andrew.46's user avatar
  • 38k
1 vote
1 answer
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 ...
andrew.46's user avatar
  • 38k
4 votes
1 answer
1k 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 ...
andrew.46's user avatar
  • 38k
5 votes
2 answers
3k views

How to extract first 10pages from each pdf files of a folder

I have 90 sub-folders in a folder. Each sub-folder contains pdf files. Total pdf files are nearly 2200. How can I extract page number 3 to 10 from all pdfs? To extract the pages from one pdf, I am ...
info-farmer's user avatar
4 votes
1 answer
704 views

OGG to M4A with extended tags?

So, I have this program that is a game creator and it uses OGG and M4A files. OGG files are used on PC and M4A are used for Mobile exports. The thing is that there's looping information stored in the ...
user245115's user avatar
  • 1,163
53 votes
9 answers
84k 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?
user2950593's user avatar
1 vote
2 answers
2k views

Git commit and push via batch file on Ubuntu

Our team have to always submit code on git after their work. And on every PC there are a lot of projects. All system running with Ubuntu OS. So I need some solution for overcome this manually commit ...
vikujangid's user avatar
14 votes
4 answers
9k views

Moving large amount of files (~ 100 000)

I work with folders that contain a lot of files, like 100 000 or even 1 000 000 files per folder. When I try to move the content of a folder into another, my computer always gets stuck. Even when the ...
Hyperion's user avatar
  • 243
1 vote
2 answers
41 views

Identifying which directory a filename comes from

I have a .txt list of filenames which come from two different directories. They come from a server database and share a single characteristic (database flag), but I really need to know which of the 2 ...
Tim Vincent's user avatar
7 votes
2 answers
5k 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 ...
user avatar
2 votes
2 answers
1k views

Converting mp3 with avconv keeping folder structure

I Have a bunch (~31GB) of mp3 files encoded at 320kbps/cbr and I want to convert them all to mp3 320kbps/vbr keeping it's tags and folder structure but in another master path. I Would like to use ...
André M. Faria's user avatar
0 votes
1 answer
2k views

batch "convert" into jpg with nice alpha flatten

I would like to batch resize and convert to jpg a few png files. But some pixels are transparent, and some are half transparent; I would like the transparent ones to be white, and the half-transparent ...
Fal's user avatar
  • 65
2 votes
2 answers
1k views

Scale down image such that it fills a square of 100x100

I want to create thumbnails for all images of a folder. I also want the images to fit in a square of 100x100 pixels. So after scaling the images down, while the smaller side needs to be 100 pixels, ...
user1170330's user avatar
6 votes
2 answers
7k views

How to batch add header/footer to pdf files in Ubuntu?

Is there a command or script that would help me ease the process of adding page numbers to a PDF with hundreds of pages? Thanks.
betty's user avatar
  • 71
38 votes
3 answers
65k views

Batch convert H.265 mkv to H.264 with ffmpeg to make files compatible for re-encoding

I have H.265 encoded files that are so resource intensive they don't play well and my conversion software (mencoder) doesn't (currently) support the H.265 format. Can I convert them to H.264 in a ...
TheMegolith's user avatar
3 votes
0 answers
40 views

How to batch rename linked files [duplicate]

I created and linked 50+ files but now they have in the name Link to xyz So what I want is to remove Link to from the all 50+ files names
Levan's user avatar
  • 10.9k
1 vote
0 answers
250 views

Run konsole script opening php script from python

I've written a python script, which runs, and upon closure I want it to open a shell script, that opens a php script. Python script directory: /home/user/test/a named: python1.py Shell script ...
Maximilian brutus III's user avatar
0 votes
1 answer
344 views

How to comment multiple images at once

On Windows I had that nice bar on the bottom with the exif entries that I can't manage to make appear on Ubuntu (I'm on Lubuntu but I've tried Mate and Plasma 5.4 too). I've tried with exiftool: ...
Arch Stanton's user avatar
1 vote
0 answers
48 views

Split found files to run find -exec commands in parallel [duplicate]

I have a multi-level directory of jpegs that I want to optimise on a semi-regular basis (as things are added). The command I'm using jpegoptim is single-threaded so when I run the following, only one ...
Oli's user avatar
  • 293k
2 votes
2 answers
27k 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 ...
seasonedsevencolors's user avatar
4 votes
2 answers
10k views

Delete first part of file names

I have a directory full of files foo_num.txt. I'd like to rename all to num.txt (that is delete the "foo_" part). Can I do this in one line?
Ditte's user avatar
  • 329
2 votes
2 answers
3k views

Batch-convert pictures in command line

I would like to convert a large number of pictures in Konsole. I need pictures resized in order to make a video. I can do it for one picture; I am satisfied with this command: convert video000001....
user3601754's user avatar
6 votes
1 answer
3k views

How to detect files with the same name but different extensions?

I have a directory whose files have extension either .JPG or .NEF and I want to delete the files of the form X.NEF for which X.JPG does not exist in the directory. (X here can be any string.) I don't ...
Reza's user avatar
  • 1,235
1 vote
1 answer
81 views

Is there a way to feed commands to ubuntu at runtime? [duplicate]

what I want is way to feed commands to Ubuntu at runtime that is to so that i don not have to wait for resources that gets locked to be free for example during during update we get this error ...
Ahmed Ali's user avatar
  • 135
3 votes
4 answers
4k views

how to move a specific range of files from one directory to another

In my parent directory I have 10000 files, I want to copy or move the files to 4 sub directories subdir1, subdir2, subdir3, subdir4 equally and if possible simultaneously. Is to possible to copy a ...
satyanaryana reddy's user avatar
67 votes
5 answers
275k 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,...
deranor's user avatar
  • 773
1 vote
1 answer
2k views

How to batch compress folders?

I want to batch compress folders, I want the format to be 7zip and of course I want to preserve the name and get the .7z extension at the end.
Levan's user avatar
  • 10.9k
1 vote
1 answer
3k views

How can I rename files/change their extensions based on mimetype with a script? [duplicate]

I'm hoping someone can explain to me how I can change a file type. I recently uploaded my pictures onto my laptop and half of them are saved as a file and not an image meaning I cannot upload them ...
Laura's user avatar
  • 11
2 votes
2 answers
1k views

How can I compress multiple pairs of files into separate archives by name?

I've got a couple dozen sets of Audacity project folders and .aup project files whose names are very close, i.e. 10-13-14-data and 10-13-14.aup. I'd like to compress all of these files automatically ...
Noah Bertilson's user avatar
1 vote
1 answer
106 views

How to find out what an action is called in gimp's Batch Image Manipulation?

I want to both zealous crop and remove image transparency for a bunch of files. I know how to start the batch job and I was able to find the action plug-in-zealouscrop for--duh--zeahlous crop. Yet I ...
k0pernikus's user avatar
  • 6,105
1 vote
1 answer
514 views

Batch export torrent files from KTorrent

To export single torrent file: Right mouse click -> Advanced -> Export Torrent To export n torrent files: ???
janot's user avatar
  • 1,662
2 votes
3 answers
1k views

How do I move thousands of files from a list?

So, I have a list of files in a text file. I believe it's about 100,000 files. The files in said list are spread across many directories, have different sizes, filenames, extensions, ages, etc. I am ...
Ne Mo's user avatar
  • 161
3 votes
1 answer
145 views

Concatenate single common PDF to directory of PDF files

I use PDFtk, and the PDF Chain gui. Despite reading the man page and investing time in a variety of web searches, I can't find the answer to this one - I have a directory of PDF files, and I want to ...
Dɑvïd's user avatar
  • 1,936
9 votes
4 answers
14k views

How can I batch convert mkv files to mp4?

At moment I use the single video command of: avconv -i File_name1.mkv -codec copy File_name1.mp4 To change format but I need a method to do this for over 400 videos what would the batch command ...
The Werewolf of London town's user avatar
2 votes
1 answer
6k views

Is there something like batch file in Ubuntu? [duplicate]

I have Ubuntu 14.04 installed. I was using Windows until my Windows 7 corrupted. I was learning about batch file (.bat or .cmd). Is there anything alike with it in Ubuntu? If there is what is it?
Learning-guy's user avatar
2 votes
0 answers
159 views

how to integrate multiple machines as one system?

As the title. What I wish to get from this is: 1. the four nodes works like only one computer, i.e., one root, one system, one bash, one updates for all machines. 2. once a user is logged in, it is ...
Chenming Zhang's user avatar
4 votes
2 answers
565 views

How can I move the results of a Recoll query to a folder?

I'd like to know if it's possible to send matching files from Recoll (searches words or strings in the content of several files .pdf .doc, etc) into a folder. Thanks!
Lucarolina's user avatar
4 votes
1 answer
534 views

Move/Rename a lot of files with specific file size

I recovered a lot of pictures (1000+) from a bad SD Card. All except 75 which seems to be 'broken'. I ran a program to get all the pictures reading at a lower level and I found out I got all the ...
SERPRO's user avatar
  • 489
5 votes
2 answers
226 views

How can I copy and rename the same file with a list of names?

I wish to copy an image (grey.png) and rename the copies with using this long list of names Is there any way? (running 13.10)
user266284's user avatar
2 votes
1 answer
2k views

How do you create a script to batch add repositories and then batch install packages?

I've used Synaptic Package Manager to save markings for all installed packages to a file. Here's a snippet: libmono-system-drawing-design4.0-cil install spotify-client install mono-2.0-service ...
Phil Hobrla's user avatar
2 votes
1 answer
4k views

Recursively copy (and rename) files to their own same directory with another name

This Q and A will cover a very specific yet common case: given many files with the same or similar name each in its own directory, create a copy of each of them in their original directory but with ...
Dario Fumagalli's user avatar