Conversion between file formats.

learn more… | top users | synonyms (1)

1
vote
0answers
12 views

convert attachments of type winmail.dat (TNEF) to “real” attachments in stored email messages, recursively in MailDir

Some email messages contain the attachments in a format called TNEF (Transport_Neutral_Encapsulation_Format). This attachment is usually called winmail.dat. Extraction tools exist for linux, but ...
-1
votes
0answers
43 views

How to convert .pdb to .txt? (PDB Palm OS) [on hold]

I have used textutil -convert txt /path/to/file/*.pdb (in the terminal) but when I opened it the text was gibberish. The files I have are encoded with windows-1252. I want to convert these files to ...
6
votes
1answer
131 views

ANSI code translator

Is there any tool that translates text with ANSI code to text-like output? tput cap names or the like? Reason for the inquiry is that I would like to use script or the like and view the resulting ...
15
votes
5answers
1k views

How can I convert Persian numerals in UTF-8 to European numerals in ASCII?

In Persian numerals, ۰۱۲۳۴۵۶۷۸۹ is equivalent to 0123456789 in European digits. How can I convert Persian number (in UTF-8) to ASCII? For example, I want ۲۱ to become 21.
0
votes
1answer
25 views

Convert non-raid disk with data into RAID 1 disk (hardware controller)

I moved away from software RAID due to all the hassle it brings. After OS reinstall, I am left with only one drive. I ordered a hardware RAID controller today, and when the controller arrives, I'd ...
1
vote
1answer
20 views

Creating a GIF animation from PNG files while constraining GIF size

Is there a way, perhaps with ffmpeg or convert, to constrain the size of a GIF created by stitching PNG files? This answer (Creating a GIF animation from PNG files) does not address this, and ...
1
vote
0answers
35 views

SFK to convert text to sound with minimodem?

I've installed minimodem on a server running Ubuntu. I've read through the documentation but still having trouble. I want to input a text file and use frequency shift keying to output an audio file.
1
vote
2answers
74 views

Loop MP4 From Converted Animated Gif

How do I convert animated gifs to mp4s that loop? This command successfully converts the gifs to mp4s, but the loop doesn't appear to work: for i in *.gif; do ffmpeg -f gif -i "$i" -loop 0 "0output$...
1
vote
0answers
29 views

Is it possible to convert audio to midi with the shell?

Some might say this doesn't work, but it does, this website does what I want. Can you do this with any common tool like ffmpeg? Or maybe there is a python script somewhere? I couldn't find anything on ...
1
vote
1answer
26 views

Convert a non-boot single HDD to RAID 1 without deleting it

I bought a second HDD identical size as the one I already have. My goal is to add it to the existing one as a mirror (RAID 1). But I don't have enough space on a system SSD to move data there. So I ...
-1
votes
3answers
40 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 ...
3
votes
1answer
98 views

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__': main(...
0
votes
1answer
29 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 ...
0
votes
0answers
42 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
30 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 ...
1
vote
1answer
38 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 -...
0
votes
0answers
60 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 ...
0
votes
2answers
121 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?
2
votes
1answer
53 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 ...
4
votes
2answers
438 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
15 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
2answers
119 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
41 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
84 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
1k 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 ...
1
vote
0answers
148 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
242 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
20 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
58 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, shutdown,...
1
vote
0answers
87 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 9....
1
vote
1answer
124 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
142 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
696 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
170 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
54 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
108 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
36 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
44 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 great,...
0
votes
1answer
369 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
259 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 Files\Cygwin\...
2
votes
1answer
2k 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 ~/.ssh/id_rsa....
1
vote
0answers
97 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 csv....
0
votes
2answers
627 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
115 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
135 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 ...
2
votes
0answers
94 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
9k 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
106 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
127 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
3k 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 ...