The batch tag has no wiki summary.
4
votes
1answer
46 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 ...
0
votes
5answers
84 views
JPG batch compression & rename (find -exec, xargs, piping?)
this is my first post so I hope you'll be kind enough to forgive me if I make some formatting mistakes or else. This is one question I've had for quite some time and while looking for answers I have ...
1
vote
1answer
37 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
2answers
83 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
votes
1answer
119 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 ...
3
votes
2answers
166 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
116 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 ...
-3
votes
1answer
75 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
90 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
43 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
108 views
shell script to install and run
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
149 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
6
votes
3answers
2k views
Making a file with terminal commands?
In Windows I can write a file containing commands for cmd (usually .cmd or .bat files). When I click on those files it will open cmd.exe and run them commands the file contains.
How would I do this ...
1
vote
0answers
24 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?
0
votes
1answer
298 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
2answers
109 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 ...
5
votes
4answers
629 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
128 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?
7
votes
2answers
6k 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 ...
2
votes
2answers
260 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
364 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
727 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
210 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
├── ...
0
votes
1answer
596 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
vote
2answers
4k views
How to batch convert .doc or .docx to .pdf
What is needed to batch convert a set of .doc or .docx files to .pdf in terminal, not using a GUI. Should this be done using a single file versus a group.
I would also like to maintain as much ...
6
votes
2answers
11k 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?
2
votes
2answers
132 views
Run a command against an entire batch of files
I want to run a command line tool that takes a file, manipulates it and exports a new file. I can use this command just fine for a single file, but would like to make it run through an entire folder ...
1
vote
1answer
2k 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 ...
4
votes
3answers
448 views
How do I print a batch of word files in a directory?
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 ...
0
votes
1answer
151 views
atd load and interval configuration
I've been using at -q b now and batch commands recently for a project of mine. The problem is that no matter how I modify the conf file it will not take my changes into account.
The exec line in ...
2
votes
1answer
492 views
How to batch remove bad character from file-names?
I have files that had Slovak characters in them I copied them to my Ubuntu now they have these weird symbols in them, anyone knows how would I remove these character?
5
votes
2answers
487 views
Batch editor for text or html files?
is there a tool that can help me to batch edit text files in a certain folder?
I need to delete or insert snippets repeatedly in lots of html files and restructure them.
Thanks in advance!
21
votes
7answers
14k views
Batch rename files
One of the ways I quickly rename files in Windows is
F2 > Rename > Tab (to next file) > Rename ...
But in Ubuntu/Nautilus, I cant tab to next file. But being on Linux, I think there must ...

