1
vote
1answer
24 views

Batch convert txt file encoding

I have about 700 files that were the results of a closed caption software process. I can open the files on my PC or Mac in a GUI, but when I open it on the server with nano, I get this: ...
0
votes
0answers
32 views

Batch replace non-ASCII characters in filenames

I'm looking for a shell script that will recursively replace non-ASCI characters with underscore or just remove them. The issue is that a drive with files, created on Linux, has to be used on ...
1
vote
1answer
35 views

How can I recursively identify non-searchable PDFs and copy them to a folder?

Further to an earlier post which provided a script solution: From my question it may be possible to tell that I am a computer user and have no programming knowledge. I have hundreds of searchable ...
1
vote
1answer
100 views

HandbrakeCLI bash batch script not working.

I am trying to batch encode a bunch of files. Looking over the internet I have found just a couple scripts and none of them worked for me. I started to piece together something and it is close to ...
1
vote
1answer
38 views

How to pass CLIs in a remote linux server from windows batch script?

I am able to connect to a remote linux server by using start C:\Users\pankmish\Downloads\putty.exe -ssh stag -l username -pw password But Now i am trying to give linux CLIs from same batch ...
0
votes
1answer
2k views

How to make PuTTY's font automatically change color (while connected to a Linux server) as I did with Windows cmd.exe using a background batch script?

I was able to create a Windows Command Prompt that automatically changes its text color on a white background every ~1.5 seconds, thanks to the help of @dbenham and @Woody. I also use PuTTY every day, ...
1
vote
2answers
250 views

Batch convert to UTF-8 a directory having both UTF-8 and CP-1251 files

I have a directory containing files, some of them are UTF-8, some are CP-1251. I want to convert the ones that are CP-1251 to be UTF-8, but without corrupting the UTF-8 files. I tried using iconv -f ...
1
vote
1answer
266 views

Resize image to a maximum size on command line

I have a very big collection of very big images, and I want to create a thumbnail gallery in which images are resized to a maximum-minimum-width (you will understand) of 180px. For example: If the ...
0
votes
2answers
174 views

Batch file to create many files with special characters

Essential info: I have a file "DB_OUTPUT.TXT" with 304 lines that I need to turn into 304 files (one per line). Each line contains many special characters and may be up to tens of thousands of ...
1
vote
4answers
930 views

Linux: Run command on a batch of files, with matching output files

A simple task: given a directory of files and a command that takes one file as input and produces one file as output, I want to process all the files in a directory at once and output them with ...
0
votes
1answer
143 views

Converting Windows batch to Linux script (Batch create symbolic links by first character)

As a noob to Linux and scripting I'm unsure as to how to convert this into a linux script or even where to start. Essentially I want to create a script that creates alphabetized folders A-Z, symlink ...
2
votes
1answer
344 views

ssh and execute interactive command

I currently have a process where i login to a machine, need to ssh to another machine and then run a command for an interactive job (on a queue-ing system). Is there a way to do this all in one shot? ...
0
votes
2answers
276 views

Rename and reverse the numbering of a list of files

In Linux, preferably using bash, what would be the best way to achieve the goal below? Say I have a series of numbered files 001.png, 002.png, 003.png What is the best way to move/rename them to ...
2
votes
2answers
292 views

How to batch process every image in a pdf using commandline tools?

Does there exist a commandline tool for Linux which allows me to extract all /Subtype /Image raster image objects from a PDF, allows me to process them using another 3rd party tool and then is able to ...
0
votes
1answer
149 views

Batch processing in Linux?

What kind of script I need to run a batch on Linux? I have to launch this line php magmi.cli.php -profile=FINALE -mode=create -CSV:filename="path/to/file01.csv" 40 times for 40 different CSV files ...
2
votes
2answers
644 views

Linux command line tool to batch rename MP3 files based on ID3 tag info, or give random name if no ID3 info present

I have a bunch of recovered mp3 files that have system generated filenames. I want to use any embedded ID3 tag info in the files to rename each one to something human readable. I've tried 'mp3rename' ...
4
votes
2answers
3k views

How to bulk-rename files with invalid encoding or bulk-replace invalid encoded characters?

I have a debian server and I'm hosting music for an internet radio station. I have trouble with file names and paths because a lot of files got an invalid encoding, for example: ./music/Bändname - ...
1
vote
4answers
3k views

Find and Replace String in filenames

I have thousands of files with no specific extensions. What I need to do is to search for a sting in filename and replace with other string and further search for second string and replace with any ...
4
votes
1answer
728 views

Auto-rotate rotated images with mogrify

Some of my images have been taken rotated but kept this data. The problem is that, when using mogrify to convert them from JPG to png, that data seems to dissapear. For showing this problem, I think ...
0
votes
1answer
585 views

pdftk: Compressing a bunch of PDFs en masse/in batch while keeping the filenames?

I have a rather simple problem. I have a lot of PDFs that I want to compress, all grouped by college class. I don't have the time or energy to manually run the compress command when I know I can ...
2
votes
2answers
2k views

Looking for utility to batch change created/modified date of multiple files in ascending datetime (windows XP/7/Mac/Linux)

I'm looking for a utility that batch/bulk modifies file datestamps (date-modified and/or date-created) to the second accuracy but does so in ascending incremental order, e.g. File1 2012-04-18 ...
3
votes
1answer
914 views

Batch video presenting (playing, pausing, going to specific time, …) in Linux

Is it possible to write an action file (e.g. a script) that plays some video files? I need it to be programmable to automatically perform these actions: start from a specific time play up to a ...
1
vote
1answer
407 views

Is there a way to rsync in batches?

I have a huge chunk of data (11G) in a subversion repository that I'm using rsync to migrate to Alfresco, which lucene indexes new files as they hit the file system. I'm using a dav mount as a proxy ...
22
votes
7answers
38k views

How to auto detect text file encoding?

There are many plain text files which were encoded in variant charsets. I want to convert them all to UTF-8, but before running iconv, I need to know its original encoding. Most browsers have an ...
4
votes
1answer
325 views

how to copy I/O not just redirect (Windows and Linux)

I have a simple call command call calabash -D sim.xpl >test.txt 2>&1 and this redirects into test.txt, how do I do both redirect into a file and allow it to show up in the prompt? (I ...
2
votes
1answer
474 views

CLI: batch file rename — with CONTENT ?? (e.g. specific text mentioned in file)

I would like to batch rename files (*.txt) by inserting a number of the format 'RXR1234567' (RXR+7digits) [if such number (and ideally only one) is found in the text] at the front of the filename, ...
0
votes
1answer
705 views

Batch converting video from avc1 to xvid

I need a way to batch convert 720p video files from avc1 to xvid in Ubuntu 10.04. I'm not terribly concerned about file size, but I do wish to retain the picture quality as much as possible. I believe ...
2
votes
2answers
154 views

Is there a way to save “work sessions” in linux

I regularly work on different projects, using different software. For project 1 I need to open for ex : Filezilla, Gedit and Nautilus (set to a specific folder) For project 2 I need to open foz ex : ...
2
votes
2answers
4k views

How to list all 'at' jobs without root privileges?

For listing jobs added by at and batch I use atq, but it lists only my jobs. I can run atq with root privileges and then it lists jobs from all users. How can I list all jobs without root privileges? ...
49
votes
6answers
59k views

Batch converting PNG to JPG in linux

Does anyone know a good way to batch-convert a bunch of PNGs into JPGs in linux? (I'm using Ubuntu). A png2jpg binary that I could just drop into a shell script would be ideal.
2
votes
1answer
2k views

Batch scan a lot of pictures

I have a lot of pictures to scan. Is it possible, using linux and xsane, to write a script so that the computer will keep scanning, giving incremental filenames to the resulting files ? I'd really ...