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

learn more… | top users | synonyms

1
vote
0answers
9 views

Batch export torrent files from KTorrent

To export single torrent file: Right mouse click -> Advanced -> Export Torrent To export n torrent files: ???
3
votes
3answers
110 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 ...
3
votes
1answer
26 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 ...
0
votes
0answers
24 views

Trying to install minecraft (Spigot Version) in Lubuntu Desktop

I set up a minecraft server super easily on my windows server. But Lubuntu is much harder! I have installed java, but I can't get anything to go from there! Nothing boots, I can't install a wrapper, I ...
2
votes
2answers
93 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?
1
vote
0answers
35 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 ...
3
votes
2answers
27 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!
4
votes
1answer
89 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 ...
2
votes
1answer
117 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 ...
2
votes
1answer
503 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 ...
1
vote
0answers
45 views

Batch convert .rar terminal

I need to batch convert a bunch of .rar files to .zip files in a folder. I do not need to extract them they are comics help in .rar form and I want to convert them to .zip so they can be used in ...
0
votes
1answer
145 views

ffmpeg batch convert files

I have a folder that contains audio files, files are in sequence named from 1 to 150 but none of the files have file extension. What I want is to convert them to aac or.mp3 and If I can join them as ...
0
votes
2answers
385 views

It is possible to run a Exe file in RedHat [closed]

I am new to linux. I run the batch file which will execute exe file in automated way. I need to do the same in linux. Kindly give me some idea how to use it. Thanks in advance
0
votes
1answer
93 views

AVConv loop issue with output file names

How can I turn: /media/MediaOne/Movies/Kids/Aladdin.avi /media/MediaOne/Movies/Kids/Incredibles.avi into /media/MediaOne/converted/Aladdin.mp4 /media/MediaOne/converted/Incredibles.mp4 when ...
3
votes
0answers
95 views

How to add printers to Ubuntu en masse

I work at a company with many network printers. We're switching many of our computers to Ubuntu 13.04 and I need to add the printers en masse. I figured the best way to do that was through a script. ...
0
votes
2answers
68 views

Command/App to convert video files [duplicate]

Anyone know how to batch convert multiple video files into smaller sizes?
1
vote
1answer
115 views

piping using ssh without having to relogin for every pipe

I have an ssh connection and I have to send some local files and output to the ssh server. I know I can do this using the following command tar zcf - stuff | ssh user@server 'tar zxf -' I would ...
0
votes
1answer
53 views

How to batch rename

I want to batch rename files I have a folder and in that folder there are files that I want to change name to 1,2,3,4,5,6 etc.. Thank you for your time
0
votes
1answer
77 views

How can I resize 300 image at the same time? [duplicate]

I have a folder, which include ~300 images. I want to resize it to 800px wide in another folder. How can I do that? I have tried some ImageMagick command.
1
vote
0answers
30 views

.sh Help Please. Trying to convert this to .bat [duplicate]

I have a .batch file with switches and parameters how would i run that in a bash file? Any help would be appreciated @echo off title runserver "C:\Program Files\Java\jdk1.7.0_25\bin\java.exe" ...
3
votes
2answers
932 views

Remove last three characters from all files in a directory

I have a directory with about 10 files and I want to remove the last three characters from the names of all of these files. Anyone know a terminal command that can do this? And separately, how would ...
39
votes
6answers
23k 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 ...
0
votes
3answers
137 views

mass copy files of specific extensions to folder

I recently recovered a drive that was corrupted. it has a ton of extra files I do not need but I do need to copy files by extension over to the new location, eg: .jpg .png .mov .mp4 .wav .pdf .doc ...
4
votes
1answer
4k views

How to crop borders/white spaces from image? [duplicate]

I have a lot of images which have white borders around it. I would like to crop those borders in one batch, preferably from command line. I believe that it can be done with ImageMagick, but I couldn't ...
2
votes
2answers
629 views

Rename files numerically (date/time order)

I have 200 files in a folder which I downloaded. I downloaded them in a certain order -- often only a few seconds apart. I would like to append a number to the beginning of each of the files. So the ...
0
votes
1answer
97 views

Command line dvd creation with chapters and menu

I have several personal video and I would like to put them on a dvd. I would like to classify them by year; so the menu would list the year, and each video should be a chapter. I could do that with a ...
0
votes
1answer
1k views

How to open a .bat file? [duplicate]

The .bat file has this context "start client.exe ur;name=test;ip=79.114.123.26;port=8888" Can anyone tell me the instuctions how to run it, thanks in advance
0
votes
1answer
499 views

Is there a command-line program that can output ascii art as an image?

Is there a command-line program that can convert an image to ascii art and then save that output as an image e.g. jpg or png? To illustrate what I'm in need of, I want to convert the image below into ...
4
votes
1answer
588 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
1answer
1k views

Making batch-file for Gnuplot

How can I make a batch file with a series of commandos for Gnuplot, and then execute it in Gnuplot? For example: defining a function, setting the x- and y-axis settings, setting an output so when I ...
0
votes
3answers
831 views

batch tesseract conversion

I am trying to OCR a book using tesseract however I do not want to type each individual page as it is a book near 1000 pages. How would I accomplish this I tried tesseract *.tif * which gives me this ...
1
vote
1answer
418 views

How to i convert this bat file to install a game with it?

Bat file is following : @echo off uharc x data.uha call restore.bat startw unpack.exe /nh startw inject.exe "streams.wav" startw regsetup.exe del data.uha > nul del uharc.exe > nul del ...
5
votes
2answers
4k views

Run diff command to compare all files in directory

I have two folders having in theory an identical folder structure and the same files. I wish to check for differences between the two copies in the two folders. I can run diff folder1/file1 ...
0
votes
2answers
217 views

Linux Batch File Similar to Windows Batch File (for backing up a database)

I have here the batch file in windows, I want to apply the same to linux. May I ask your help to run it in linux. Below is the batch file for windows: @echo off TITLE Upload Masterlist set /p ...
-2
votes
1answer
189 views

bat file to batch? [closed]

hello i would like to know if its possible to turn this batch file into a working basfile for ubuntu, im completely new to all this. It works on a windows machine but it does not work on ubuntu. I ...
2
votes
2answers
145 views

How to use single-thread script to do batch processing?

I have a single-thread python script that gets used like this: python -c "arg" I also have a *.txt file with many arg, each in one single line in the respective *.txt. A text file, say 1.txt ...
1
vote
1answer
219 views

Count lines in files from set

I need to count the number of lines in files from a set. I tried to execute find -name pattern -exec vc -l '{}' \; But this command returns find: `vc': No such file or directory
0
votes
1answer
446 views

shell script to install and run [closed]

I am trying to make an automatic installer which downloads file from ftp and installs it on system . Host = "zzz " USER= "ss" PASSWD = " xxXX" FILE = " *.tar" ftp $HOST << EOF user $USER ...
3
votes
1answer
741 views

How do I batch delete a specific file inside multiple rar archives?

I have about 1000 rar files, that randomly contains an EXE file named:"JPG-Crack.exe". I need to delete it from all archives without harming the other archive content. thanks
4
votes
1answer
502 views

How can I batch decrypt a series of PDF files?

I have a bunch of PDF documents I know the password for and would like to decrypt them. How can I achieve this?
1
vote
0answers
62 views

How to kill a java process which is configured in /etc/init.d using normal user via batch file

I have a script which is located in /etc/init.d to run a jar program. I need a batch file to kill this jar program after login, is there anyone know how to do it?
1
vote
1answer
2k views

Force wget to use actual Google Docs file

I am programming in batch it shouldn't matter because i am using wget on Windows too. I found similar question on this site Force wget to use actual filename first solution works for everyone but ...
0
votes
3answers
1k 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 ...
6
votes
4answers
4k views

How to convert all pdf files to text (within a folder) with one command?

I know that I can convert pdf files to text files one by one like this : $ pdftotext filename.pdf But is there a single command that would make that conversion without specifying separate file ...
3
votes
3answers
304 views

How to rename a batch of files with an incrementing number in the file name?

I want to rename batch of files named Example1.java, Example2.java to Q1.java, Q2.java at once. Is this possible?
11
votes
4answers
27k 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 ...
4
votes
2answers
1k views

Remove only 1st page from a LOT of pdf files

That's all I have to do: remove only 1st page from a LOT of pdf files... Please tell me that magic exists.
4
votes
3answers
1k views

Batch rename directories?

I have several directories with the format of the year, month, and day followed by a description of the event. For example: "2012 05 26 - EventA", "2012 05 26 - EventB". What I would like to do is ...
1
vote
1answer
2k views

Starting multiple applications using a shell script

I need to open thunderbird, pidgin and firefox when I execute the a .sh file in terminal. Currently I simply added these app names one by one below and when executing the file it open the first ...
0
votes
2answers
379 views

MySQL and batch sql load

I have sql files "separated" like this: > tree sql sql ├── adresse_trigger_update_before.sql ├── attribut_trigger_update_before.sql ├── categorie_trigger_update_before.sql ├── ...