Conversion between file formats.

learn more… | top users | synonyms (1)

0
votes
3answers
25 views

convert windows file to unix on old server without dos2unix

I use an old server without dos2unix and I would like to convert windows files to unix files. I am unfortunately not the admin so I can't install dos2unix. The tr method seems to be the only one that ...
2
votes
1answer
186 views

How do I convert a TTA file and its CUE sheet into several FLAC files?

I have a sound file encoded in TTA format and a CUE sheet with its metadata. Which tools and commands do I need to convert it and split it into several FLAC files? I tried using ffmpeg to convert the ...
3
votes
0answers
45 views
+50

PDF output with correct spaces in code examples

I have been using rst2pdf and pandoc to convert the following reStructuredText into PDF: This is a python example:: def main(): print("Hello World!") if __name__ == '__main__': ...
0
votes
0answers
9 views

Converting c++ to bash, need to know if a specific variable has bash significance [migrated]

I am converting a c++ code to bash for several reasons, one being that I only know bash aside from what I've been learning while doing this conversion! There's a variable (let's call it "size") that ...
1
vote
3answers
2k views

Split XML file into multiple files

I have an xml file that have different nodes, I want to split files like this: <unix> <mm> </unix> <osx> <nn> </osx> When I run the script I want it to make ...
18
votes
7answers
41k views

How to convert TXT to PDF?

I want to convert .txt files to .pdf. I'm using this: ls | while read ONELINE; do convert -density 400 "$ONELINE" "$(echo "$ONELINE" | sed 's/.txt/.pdf/g')"; done But this produces one "error" -- ...
1
vote
1answer
2k views

Splitting WavPack files when the .cue file and .wv file have different names?

If a directory contains an album encoded as one large .wv file and a .cue file, splitting the entire album into individual .flac tracks is a simple task: $ cuebreakpoints foo.cue | shnsplit -o flac ...
1
vote
1answer
1k views

Ffmpeg problems on centOS 5.8 64 bit

I did install ffmpeg with winff, unsuccessfully when I try converting avi to x264, it says I don't have it. When I try to convert mp4 to Xvid I get unknown encoder 'libxvid'. It's like nothing really ...
0
votes
1answer
14 views

Sox: Convert the .wav file with required properties in single command

I have an test.wav file. I need to use this file to process an application, with following properties i) monochannel ii) 16khz sample rate iii) 16bit Now, I'm using following commands to attain ...
1
vote
1answer
23 views

pdftoppm (v 3.0) very slow to convert thumbnail in newer version

On one of our local servers, I use pdftoppm (v 0.18.4) to capture the first page of a pdf file as a 1200px wide jpg. It's very quick, and works very well. I'm doing it like so: pdftoppm -f 1 -l 1 ...
1
vote
2answers
1k views

How to convert WavPack to FLAC?

I need to convert a bunch of .wv files to .flac but I can't seem to find a program to do it. Does anybody know how I can do this? P.S.: I was wondering why Audacity does not support the importing .wv ...
0
votes
0answers
32 views

How to split a A4 Letter page pdf into 2 4x6 pdfs

I get pdfs in A4 Letter size in portrait orientation, they have 2 sections top and bottom each 4x6. Right side of pdf is blank. I need to spit them into 2 pdfs 4x6 or 2 pages of the same pdf.. Ive ...
0
votes
1answer
26 views

Difference running the same script from Windows than Linux

I've written a script that run unoconv, converts from csv to xls. I run it connecting using openssh client to the server where script is and it works fine. (Always the same Linux user...) But when ...
0
votes
2answers
54 views

Conversion of PDF to PS

I'm quite new to shell scripting. I need to create a script or reuse a script that converts PDF to PS (Post Script) files, is there anyway this can be done?
0
votes
0answers
32 views

arecord raw data to flac

I'm trying to record some raw samples with arecord and once finished convert them to flac format, but I'm only getting garbage. I need it to be first raw as I'm parsing the data to detect when there ...
2
votes
1answer
40 views

How to convert open-ssl created private key to openssh private key?

I have created an open-ssl private key which I would like to use to connect to my server through ssh. The openssl key was generated during certificate creation and I have to use this key on putty. The ...
0
votes
2answers
82 views

Convert sqlite output to json

I want to format sqlite output in json format from the command line. Currently I have .csv output that looks like this: label1,value1 label2,value2 label3,value3 ... Now I'd like to have it ...
4
votes
2answers
220 views

Specify encoding with libreoffice --convert-to csv

Excel files can be converted to CSV using: $ libreoffice --convert-to csv --headless --outdir dir file.xlsx Everything appears to work just fine. The encoding, though, is set to something wonky. ...
0
votes
0answers
13 views

Converting .shn via shorten or shntool

I have to batch convert a bunch of shn file to wav. I was wondering if this was possible using the shorten utility or did this need to be done using shntool todo so.
6
votes
3answers
5k views

How do I convert a '.pages' file to something unix-y?

I have a file with the extension '.pages´. I think that means iWork, but I'm not sure. Anyway, searching for "convert pages linux" produces a fair few false negatives! Does anyone happen to know a ...
1
vote
1answer
36 views

How to convert file from one format to another with file attributes?

I have an audio file named with attributes: BreakingNews.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 8000 Hz I wanted to convert it to in below format: BreakingNews.wav: ...
4
votes
5answers
848 views

How do I convert Linux man pages to HTML without using groff?

I would like to convert some Linux man pages to HTML without using groff. My prejudice against groff is due to some PNG rendering issues it is giving me that seems to be localized to Sabayon (as these ...
40
votes
6answers
22k views

Split pages in pdf

I have a scanned pdf file which has scanned two pages on one virtual page (page in pdf file). The resolution is with good quality. The problem is I have to zoom when reading and drag from left to the ...
0
votes
1answer
52 views

How to generate a Data URI from an image file?

There are online tools like duri.me that allow to create a Data URI from an image file. Are there any tools that run locally on Linux to do the same?
1
vote
1answer
53 views

migrating to systemd a startup-shutdown script that works with tmpfs and bindmounts

BACKGROUND INFORMATION : I have an init script that allows me to mount a folder to tmpfs, while bind-mounting the folder on drive to another location, so I can sync the contents (on startup, ...
1
vote
0answers
100 views

How do I convert the complete AMD64 Gentoo Handbook into a PDF from the command-line?

I have been writing shell scripts for converting the AMD64 Handbook of Gentoo Linux to PDF and this is my current shell script: function ghand { # Input 1 is the architecture # Input 2 is the ...
2
votes
3answers
164 views

How do I convert the output of ps(1) to JSON?

I want to convert the output of the command ps to JSON in order to process it as structured data (with jq in this particular case). How do I do that? The output looks like the following: PID TTY ...
1
vote
1answer
86 views

How do I convert image files to .edj format from the command-line?

I have recently installed the E17 fork, Moksha, on my Sabayon Linux machine the problem is that the graphical tools for changing the wallpaper to JPG or PNG files are causing me grief (and yes I have ...
30
votes
10answers
61k views

Converting multiple image files from JPEG to PDF format

I want to convert some files from jpeg to pdf. I am using following command. $ convert image1.jpg image1.pdf But I have 100 images. How should I convert all of them to corresponding pdfs? I ...
8
votes
4answers
2k views

Is there a good command line tool for converting to and from FLAC audio format?

Ideally, I want to convert from MP3 to FLAC and back. I also need to be able to script this.
0
votes
0answers
13 views

How do I convert PKGBUILDS to ebuilds for the Deepin Desktop Environment?

I have a mammoth task in front of me, converting the Arch PKGBUILDS for the Deepin Desktop Environment to Gentoo ebuilds and I was wondering if there are any tools (like command-line programs) that ...
29
votes
5answers
42k views

Creating a GIF animation from PNG files

Is there a tool to create a gif animation from a set of png files? I tried the convert command from the ImageMagick suite, but this doesn't always succeed. Also, I have several issues with this: I ...
1
vote
4answers
6k views

How to round or convert a float value to int with bc? getting: “(standard_in) 1: syntax error”

I will get value like 2743410360.320 and I want value like 2743410360 to a variable. I tried INTValueOfGB=$ echo "($gb+0.5)/1" | bc But I am getting (standard_in) 1: syntax error
26
votes
6answers
32k views

convert images to pdf: How to make PDF Pages same size

I did something like convert -page A4 -compress A4 *.png CH00.pdf But the 1st page is much larger than the subsequent pages. This happens even though the image dimensions are similar. These images ...
1
vote
0answers
76 views

Convert video with broken codec information

I downloaded using youtube-dl from https://www.dr.dk/tv/live/dr2#!/ The saved file is .flv, but it does not play with vlc/mplayer. avconv cannot convert it: $ avconv -i hl.flv hl.mp4 avconv version ...
0
votes
2answers
526 views

Convert .fnt to .ttf?

In FreeBSD's /usr/share/syscons/fonts one finds the syscons-fonts in .fnt-format. Is there a way to convert them to .ttf format?
-1
votes
4answers
480 views

Script to convert a directory of ksh scripts to bash scripts?

Since both ksh and bash are based upon sh many Korn Shell scripts (ksh) will simply run as Bourne-again Shell scripts (bash) once the shebang and file extension are changed, and you call $ bash ...
10
votes
6answers
9k views

shell command to get pixel size of an image

Is there a shell command that returns the pixel size of an image? I'm trying to produce an animated gif starting from different gifs with different sizes using convert (e.g. convert -delay 50 1.gif ...
2
votes
0answers
112 views

Need a script for automation the convert a lot number audio files to another format [closed]

I have a lot number audio files in MP3 the proprietary format, I want to convert them to 'opus' the free and high quality format, with keep metadata also. My selection command-line programs are SoX ...
2
votes
1answer
106 views

convert wav to flac with tags

long story short: I need a script to convert wav files to flac, while taking the file name (minus extension) to place in the song title tag of the flac file. I have about 1200 audio CDs that I ...
0
votes
0answers
48 views

error in script that calls convert command

I am pretty new to linux and have encountered an issue I feel confused about. I need to combine a list of images, located in different folder, into one single jpg. #!/bin/sh # parameter $1 is the ...
0
votes
1answer
79 views

How to convert WMA to VORBIS or OPUS?

My girlfriend accidently bought an audio book on the internet and she saved it on my hard disk in windows media audio format (.wma) and now she asks me how to listen to it. I'm a bit puzzled this ...
3
votes
1answer
733 views

Catdoc xls2csv converting only one sheet

I have Catdoc's xls2csv installed on Debian/Squeeze. It used to work beautifully when I copied files to a folder like /var/www/xyz, converting all sheets into .csv format, separated by ^L. But now, ...
21
votes
4answers
66k views

Convert a .xlsx (MS Excel) file to .csv on command line with semicolon separated fields

I realize that this is not an entirely unix/linux related question. But since this is something I'll do on linux, I hope someone has an answer. I have an online excel file (.xlsx) which gets updated ...
6
votes
3answers
1k views

org mode to dokuwiki converter

Is there an emacs org-mode to dokuwiki converter? Is there an dokuwiki to emacs org-mode converter?
1
vote
0answers
35 views

Print pdf like paps, but with actual fonts?

So I convert a piece of text to PDF like so: INPUT="this text goes to a pdf file" paps $INPUT 2>/dev/null | ps2pdf -sPAPERSIZE=a4 -dOptimize=true -dEmbedAllFonts=true - out.pdf Which works ...
1
vote
1answer
31 views

How do I convert a batch of avis into mp4s?

I have several avi files in the one directory that I would like to convert to mp4s using avconv. Now I know the basic procedure of how to do this, manually, for each avi, namely (where $@ are the ...
7
votes
2answers
11k views

Encode with ffmpeg using avi to mp4

What command lines to use to convert from avi to mp4, but without destroying the framesize and making the file small as the original size or a little bit bigger, and same thing with mp4 to avi? ...
6
votes
2answers
1k views

Why can I not split a .ape file?

I would like to split a .ape album into individual tracks in .flac format using a .cue sheet. For this I followed a tutorial I found. In short I pass this command to the terminal: cuebreakpoints ...
0
votes
0answers
285 views

Converting .NEF to .JPG

I am trying to convert .NEF files to .JPG and I am using the command: mogrify -format JPG *.NEF this produces mogrify: delegate failed `"ufraw-batch" --silent --create-id=also --out- type=png ...