Conversion between file formats.

learn more… | top users | synonyms (1)

3
votes
2answers
33 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
7 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.
0
votes
1answer
34 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 ...
1
vote
1answer
26 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: ...
0
votes
1answer
22 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?
4
votes
5answers
575 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 ...
0
votes
0answers
35 views

Script to unzip, modify filename and remove underscore in filenames

I'm looking for a script which will do below functions on the files we use to receive from our internal team. Unzip the files if they are zipped. Change the file to .txt format if they are in .dat ...
1
vote
0answers
61 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
83 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 ...
0
votes
0answers
11 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 ...
1
vote
1answer
41 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
54 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 ...
1
vote
1answer
58 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 ...
2
votes
0answers
83 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 ...
-1
votes
4answers
228 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 ...
2
votes
1answer
68 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
43 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
42 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 ...
1
vote
1answer
22 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 ...
1
vote
0answers
23 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 ...
0
votes
0answers
185 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 ...
2
votes
2answers
235 views

Cygwin using wildcard to trim all images

Unortunately, I am forced to use windows. So, I installed Cygwin to use some Linux commands. The following command works fine. It replaces an image with its trimmed version. "C:\Program ...
2
votes
1answer
703 views

How to convert public key from PEM to DER format?

I'd like to convert an existing public key (generated using ssh-keygen) from PEM-format to DER-format I tried: openssl rsa -in ~/.ssh/id_rsa.pub -inform PEM -pubin -outform DER -out ...
1
vote
0answers
86 views

Convert / import flat file with multiple records, one variable per line

I am searching for an efficient way using (UNIX) command line tools to read a flat file into a(ny) database, perhaps after first converting to an intermediate structured format, for example XML or ...
0
votes
2answers
385 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?
0
votes
0answers
67 views

Convert VMWare virtual machine to .ISO

I have a virtual machine with the extension .vmwarevm. The OS is Ubuntu 15.04 Mini 64-bit. I have no GUI, just command line interface. I looked up a couple of tools like remastersys but had no luck. ...
1
vote
1answer
101 views

How to convert a generic xml format block to properties format String from an xml file using ksh script [closed]

With the conditions: I cannot use any XML parser tool as I don't have permission , read only My xmllint version does not support xpath, and I cannot update it , read only I dont have xmlstarlet and ...
0
votes
0answers
16 views

Exported settings from Lacie NAS OS 4 are unreadable. How to convert to human readable?

I exported some settings from my Lacie NAS with NAS OS 4 (Linux based). The resulting file looked like this 0.0-2.5.1 FWtTT1NOQwAAFRoWEh0WMRcWHQAHDh1NSU5DR0FDQFBBQUFMTVNlU05BU00DHA4XGhAaPhoLUVRB ...
2
votes
0answers
69 views

Converting a raw print data stream containing PCL commands to PDF

I have a program that sends raw print data through samba to typically PCL compatible printers. The program is written so basic PCL commands control how it prints. When sending it to the printer it ...
2
votes
2answers
3k views

Convert binary mode to text mode and the reverse option

By the following way I convert a simple binary file into a text file od –t x1 Check.tar | cut –c8- > Check.txt What is the opposite way to convert the Check.txt to Check.tar as the original file ...
1
vote
1answer
97 views

Convert Blog to PDF or Epub Book

I want a command or script to collect all the posts on a given blog and convert them into a PDF and/or Epub book without needing to be the owner of the blog. This website allows users to convert blogs ...
4
votes
1answer
85 views

How to convert ęąśćżńł TXT to PDF with enscript?

I have problem converting a file to PDF. I create the file with echo ęąśćżńł > text and convert: enscript -O text -o - | ps2pdf - out.pdf However, out.pdf has an encoding problem:
2
votes
1answer
2k views

Command line for converting .SWF to animated GIF

I'm running Kubuntu. I don't want to install any Windows applications in wine. I would like a (relatively simple) command to convert a flash animation (.SWF file) to an animated GIF. The input .SWF ...
3
votes
1answer
74 views

tiff2pdf coloured

I converted some scanned .tif files to .pdf using tiff2pdf (libtiff version 4.0.3 ) with JPEG compression. Viewing them in evince showed a coloured (pinkish) background. My initial thought was that ...
0
votes
1answer
149 views

Avconv creates 0 byte outputfile after applying frame rate reduction

I installed avconv because I am too stupid to install ffmpeg, now I realized I am even more stupid. I tried to reduce the framrate from 30 fps to 24 fps following a very straigtforward tutorial: # ...
1
vote
1answer
197 views

textutil convert PDF to txt producing garbled output

I am trying to convert PDF files to text files using textutil. I don't if there are special types of PDFs that can and cannot be converted. The files I am trying to convert are in a searchable ...
3
votes
1answer
400 views

How to convert all odt files in a folder into microsoft word files ?

I have a folder with a lot of odt files from LibreOffice, I could open each one by hand and save it as a microsoft word file, but that would take a long time, is it possible to reach this goal using ...
0
votes
2answers
976 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 ...
1
vote
3answers
473 views

How to convert bash shell script to Markdown?

Imagine one has been working on a bunch of deploy scripts. These shells scripts are heavily documented with comments and links and are meant to be read by humans. Wouldn't it be handy to convert ...
0
votes
0answers
161 views

Stream to stream conversion with icecast

Currently I am using icecast to relay any stream, but i want my output steam in mp3 format whatever is input stream. Like if input relaying stream is mp4 I want my icecast to give just mp3 format of ...
4
votes
1answer
450 views

Mapping metadata with avconv does not work

The way I understand man avconv (version 9.16-6:9.16-0ubuntu0.14.04.1), the following command should convert input.ogg to output.mp3 and carry over metadata: avconv -i input.ogg -map_metadata 0 ...
0
votes
1answer
187 views

Command not working anymore in Thunar custom actions

I used to create a Thunar custom action as presented here in order to extract audio without transcoding from selected (multiple) video files . The command to be added in Thunar custom actions list ...
1
vote
1answer
387 views

Is there a way to check the losslessness of a FLAC file in Linux?

Let me explain my question with greater detail: I know FLAC is a lossless audio format with respect to the original file; this is, any piece of audio encoded with FLAC will be preserved completely. ...
1
vote
1answer
238 views

Convert Multiple Videos to Multiple GIFs

What command will convert multiple video files to multiple GIFs? I use the following command to convert 1 video to GIF: ffmpeg -i input.flv -vf scale=320:-1 output.gif I assume I'll need a bash ...
1
vote
1answer
270 views

Why can I not split a .wv file?

I'm a Fedora 20 user and am trying to split a .wv file into separate .flac files. I used this command: cuebreakpoints file.cue | shnsplit -o flac file.wv but get the following output: 56: syntax ...
3
votes
2answers
358 views

Convert all non-JPG images to JPGs

What command can I use to convert all images in a folder which are not JPGs (PNG and BMP primarily) to JPG? I'd also like the conversion quality to be 100%. And I'd like the converted images to ...
6
votes
2answers
959 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
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 ...
1
vote
1answer
588 views

Convert XML to SQL INSERT statements using the command line

Is there a way to convert XML to SQL INSERT using the command line, here is examples: <something> <somthingelse>lol</somethingelse> </something> would be INSERT INTO ...
0
votes
1answer
44 views

How do I extract information with what I have right now?

I have a bunch of swfs, these swfs include links to other swfs inside them. I use this to convert them to xml: swf2xml Disc1.swf Disc1.swf.xml. Then I use this to remove every single line that does ...