Questions tagged [conversion]
Conversion between file formats.
332
questions
0
votes
2
answers
38
views
I need to create a pipe to convert string from UTF-8 to UTF-7-IMAP
To automate the command line creation of hundreds of directories in IMAP maildirs, I would need to be able to convert UTF-8 strings to UTF-7-IMAP on the fly.
In php, I found a way to do it with a ...
0
votes
0
answers
38
views
How to convert accented characters in an email
I want to send an email with the body ($BODY) containing accented characters like é, à, ô...
echo "$TO" | mail -s $SUBJECT $BODY
But the result shows unreadable characters.
I tried to ...
2
votes
1
answer
53
views
Is there a way for a nonprivileged user to read/mount a UDF filesystem in linux without using sudo
I'm renting a node on a linux server.
uname -a
Linux 5.15.112-gentoo #2 SMP x86_64 AMD 64-Core Processor Authentic AMD GNU/Linux
By nature as a renter I can't become superuser or even use sudo.
I ...
2
votes
2
answers
146
views
Convert json to csv with headers in jq
Is it possible to convert this json:
[
{
"bytes": 276697,
"checked": false
},
{
"bytes": 276697,
"checked": false
...
0
votes
0
answers
61
views
Converting a TXT file to PDF from the command line using a custom font
I want to convert a UTF-8 txt file to PDF for printing with CUPS. The problem I'm facing is that all tools I've tried have either failed to format the PDF (resulting in a fully white document with no ...
-2
votes
2
answers
236
views
How to convert ZFS to bcachefs on Linux Mint 21 and LMDE5?
The first bcachefs supporting Kernel 6.1, are released on 2022-12-11. See follow sources:
https://evilpiepirate.org/git/bcachefs.git
https://web.archive.org/web/20230207003903/https://evilpiepirate....
0
votes
0
answers
52
views
Converting Windows line breaks in scripts without using dos2unix [duplicate]
I have shell scripts that could or could not contain Windows line breaks. I want to convert all existing Windows line breaks to Unix-style, and not destroy the file in the process. I used dos2unix on ...
-2
votes
2
answers
497
views
How to convert BTRFS to bcachefs on Linux Mint 21 and LMDE5?
The first bcachefs supporting Kernel 6.1, are released on 2022-12-11. See follow sources:
https://evilpiepirate.org/git/bcachefs.git
https://web.archive.org/web/20230207003903/https://evilpiepirate....
0
votes
1
answer
806
views
Converting data in text file to csv tables
My data in a text file have the below format today
HKL1234/2, R1B
HKL1274/2, R4E
HREF457-74, R1A
I need to present this data in excel file in two different columns like below:
Product ...
1
vote
1
answer
86
views
Convert tar to 7z directly?
I have a couple tarballs that are many gigabytes large and contain several thousand files and am wondering if it is possible to convert these to more versatile 7z archives, because the current ...
1
vote
0
answers
100
views
Compress Zip to 7zip
I would like a shell (or other terminal based) script to convert zip files to 7z format.
Some zip files contain folders with more zip files in them. This needs to work recursively since there are zip ...
1
vote
2
answers
75
views
How to re-convert the text file produced by pdftotext to pdf again?
Poppler has the excellent tool pdftotext for converting a pdf file to a text file:
pdftotext input.pdf output.txt
Is there a way to re-convert this text file to pdf?
By conversion, I mean to obtain a ...
0
votes
1
answer
92
views
Create MP4 or another playable video format from frame series of JPEG in a directory
So I have frame series of JPEG in a folder let's say folder cctv where inside of that folder is only series of JPEG with unix timestamp named in nanosecond.
I mean like this ( I used tail because too ...
7
votes
2
answers
1k
views
Converting multiple .xls format files to .xlsx format
I am new to Linux. I know that there are ways to convert between file formats in Linux through the terminal. But is there any way I achieve the following?
I have 3 folders, inside those folders, there ...
1
vote
1
answer
660
views
A2 on four A4 pages? | Convert A4 PDF to "A2 on four A4" PDF?
Given e.g. pdf (in any size) how to enlarge it to A2 size and print on four A4 pages?
(if possible it would be great if pdf having multiple pages we could split like this, so if there is pdf with ...
1
vote
1
answer
602
views
Convert string time to seconds
I'm receiving an uptime in this format:
167h58m10.586582048s
I want to transform it to seconds and discard the fraction part.
I know awk could do that if only the received string had the same ...
2
votes
1
answer
1k
views
How to convert output of a terminal app to an image?
Suppose the CLI application my_bin produces an output in terminal which consists of colored text, Unicode symbols and emojis.
How can I convert the output to a svg or an image on Ubuntu?
For example, ...
2
votes
1
answer
197
views
Merge a png on top of a gif with shell
I am trying to merge a png with a gif (put the png on top of the gif) and then have the result as a gif.
I played around with convert, but cannot quite get it to work the way I need it.
I have tried ...
4
votes
3
answers
2k
views
Point out my mistake while converting TIFF to PNG/JPG
This is a input tiff image, which I want to convert to JPG/PNG. googledrive-link-to-download-sample
As general rule of thumb, I always use following command to convert between 2 image formats (mainly ...
1
vote
2
answers
482
views
How to run PDF to TIFF conversion in parallel?
I have this command here for batch converting PDF documents (first 2 pages) to TIFF files using pdftoppm.
The goal is to put the TIFF images into its own folder with folder name matching the original ...
3
votes
1
answer
675
views
ASCII to ANSI convertion does not work
Trying to convert an ASCII file to ANSI on Linux:
$ file -bi relocate.xml
text/xml; charset=us-ascii
$ iconv -f us-ascii -t ms-ansi < relocate.xml | file -bi -
text/xml; charset=us-ascii
$ cat ...
0
votes
2
answers
224
views
check width of image before convert it
I use the following script to convert all jpg and png images:
# absolute path to image folder
FOLDER="/home/*/public_html/"
# max width
WIDTH=1280
# max height
HEIGHT=720
#resize png or ...
1
vote
2
answers
126
views
Substract date in custom format
I need to substract some date from current date to determine the age of some connections. The date is in this format: YYMMDDHHMISS. The output can be pretty much anything that I can use to determine ...
0
votes
2
answers
357
views
Is there any linux utility to create plain binary dump of file and vice versa?
I want to know is there any linux utility or procedure for generating plain binary dump and reversing it back to the original file (as xxd is capable of doing it with -r argument)? I have tried xxd, ...
0
votes
2
answers
3k
views
Is there a script or tool that converts HTML to PDF?
I want to convert an HTML page to PDF file.
I tried online converting tools but they are slow and I can't trust them.
Is there any script or tool works on the command line that convert web pages to ...
0
votes
2
answers
4k
views
How to convert xlsx file to csv using shell script? [closed]
I have tried with libreoffice, ssconvert, xlsx2csv to convert the file but I am getting "command not found". Could you please help on that?
xlsx2csv
ssconvert file.xlsx file.csv
libreoffice -...
0
votes
1
answer
228
views
libreoffice headless interprets source image as text
I am trying to use libreoffice to convert different source formats to pdf. This works with most formats but image formats are always interpreted as text:
libreoffice --headless --convert-to pdf:...
1
vote
1
answer
685
views
Remarkable tablet: Convert text file into notebook page
I am using the Remarkable 2 tablet with its note-taking functionality. I can scribble new notebook pages or annotate pdf-documents with the tools on it. I would, however, like to import existing text ...
1
vote
0
answers
130
views
How to play .dvs (DTI's DVSSDiscPlayer format) on Linux systems?
.dvs is the exotic extension of a file / a database of files / a database of streams (cross out wrong). This type of file is used in the CCTV to let the operator watch the recording from, let's say, ...
2
votes
1
answer
1k
views
Set PDF tags while converting images to PDF with ImageMagick
I'm converting images to a single PDF-file using convert utility:
$ convert "document-*.tiff" -compress jpeg -quality 60 "output.pdf"
Resulting document has the following tags set ...
-1
votes
2
answers
74
views
How to translate a non sugary syntactic shell (Bash) command into "lower" types of code such as assembly or even machine code?
Please consider:
cd ~
cd $HOME
I would say that the first command is a possible sugar syntax of the second command, and that the second is less abstract.
Just for the sake of demonstrating how ...
4
votes
1
answer
5k
views
How to extract every 10th frame from a video?
I have a video and I want to extract every 10th frame as I am getting way too many images.
ffmpeg -i out1.avi -r 1 -f image2 image-%3d.jpeg
How to extract images from video file?
2
votes
1
answer
1k
views
How to replace Unicode code numbers by UTF-8 characters in a number of files?
I have 500 files that contain escaped Unicode characters like so:
Albert Vel\u00e1zquez
V\u00e9ronique Ekin
etc. The data was queried from a server by a script through XMLHttpRequests and I assume ...
0
votes
2
answers
145
views
Is there a way to strip the high bit of each byte in a file?
I've been trying to figure out if this can be done in sed or tr, but I can't find it.
I have a bunch of files from an old Apple II which have the high bit set on each byte. On a Mac, this results in a ...
1
vote
1
answer
681
views
efficient way to compose all frames in a video to a single image
I've got a 720p video file that is about 20 minutes long. I want to compose each frame in the video using a single operator (e.g. lighten, darken, etc.) to produce a single image output.
My thought ...
0
votes
0
answers
257
views
Conky script not running after being converted
I am attempting to convert an older conky widget to the new syntax of 1.10+, but I can't for the life of me figure out why it won't run. I've ran through everything to make sure it was converted ...
6
votes
3
answers
3k
views
How to convert escape sequences to text while preserving display format?
I have a text file that contains (ANSI ?) escape sequences:
When I cat the file I get formatted output:
How do I save / pipe the output of the text file to a new file so that the control codes are ...
2
votes
3
answers
7k
views
Debian: is there a shortcut for switching from Ubuntu to Debian?
I have been running Ubuntu 20 and I want to switch to Debian 10. I know how to back up my important software, install Debian 10 from a proper ISO image, and then restore my backed-up software onto the ...
0
votes
1
answer
1k
views
Convert text file data to table [closed]
I have a text file with 2 columns which I would like to convert to a table.
The below image is just what it looks like in the file, not a table. Formatting is putting all my text in one line when ...
2
votes
2
answers
5k
views
Convert/replace time from epoch milliseconds to human readable date in logfiles
I have a log file with the following structure
Example:
1522693524403 entity1,sometext
1522693541466 entity2,sometext
1522693547273 entity1,sometext
...
Now I would like to replace the time from ...
1
vote
1
answer
1k
views
ImageMagick generated PDF renders as blank pages in Chrome
I have drawn a png file using Krita:
I then converted this file to a pdf file using convert:
convert test.png test.pdf
When I open this file in my PDF viewer (Evince), I see the image above, just as ...
1
vote
2
answers
419
views
Batch convert images with xargs & convert, how to name output file?
It's known that images can be converted to one single pdf with the following command (assuming images filenames are order correctly):
convert *.jpg output.pdf.
However, this approach may take too much ...
3
votes
0
answers
51
views
File conversion canary
Is there a way to tell if a flat ASCII log file, eg. the output of a command, was converted to an office document (typically: Word, Excel, Notepad) and back to a flat text file?
I know at least one of ...
0
votes
1
answer
1k
views
Convert folder to .bin-File
I just downloaded a bin file for my new application.
The problem is that I had to change some config files, and for that I used 7-zip to unpack the files. I changed the files the way I want to have ...
3
votes
5
answers
2k
views
How to properly decode utf7 file names obtained from an IMAP server
I have a few directories that I downloaded from an IMAP server.
Example:
$ find . -maxdepth 1
.
./&BCEEPwQwBDw-
./&BCMENAQwBDsENQQ9BD0ESwQ1-
./inbox
./&BCcENQRABD0EPgQyBDgEOgQ4-
./&...
0
votes
1
answer
299
views
PDF conversion: 4 pages/sheet to 1 page/sheet
I am struggling to revert / undo a 4 pages per sheet PDF to a 1 sheet per page document.
The reason why I am trying to undo it is because I can barely read the printed document. The original file has ...
0
votes
1
answer
525
views
How to run single command on multiple files to convert file format?
I am trying to convert file format from fa to fq using seqkit on Linux terminal. Command is simple as shown below.
seqkit fq2fa Std_metabat2_bin.9_sub.fa -o Std_metabat2_bin.9_sub.fq -j 20
But, I ...
1
vote
1
answer
6k
views
how to open/convert .ost file (Microsoft Outlook email folder) on linux
How can I convert (or open) .ost file (Microsoft Outlook email folder) on linux ?
Ideally, I would like to read it with Mutt. But mutt does not seem to understand this format. Therefore I would like ...
0
votes
0
answers
52
views
mutool clean pdf output doesn't show German utf-8 characters (umlauts) and some special chars
command: mutool clean -d somepdf.pdf
piece of output:
Die folgende Gegen\374berstellung von alter und neuer Logik hat
selbstredend nichts zu tun mit der sp\344tmittelalterlichen
Unterscheidung ...
0
votes
1
answer
2k
views
ffmpeg batch command to reduce file quality
I've got a directory with thousands of images (png, jpg, bmp, etc.) and thousands of videos (mp4, mpv, mpeg, etc.).
The png images may be ~10 MB and I can open them one at a time in GIMP, reduce ...