New answers tagged

1

You can use the following pipeline txttopdf.sh: enscript -B -p- | ps2pdf -dCompressPages=false - - to generate a PDF which preserves the leading spacing of the source. The special ps2pdf option makes it use the content portion of the intermediate PostScript verbatim, leaving well indented text objects in the PDF. You can verify that by opening it with a ...


0

This command can be used to convert EOL characters without having dos2unix installed: sed -i 's/.$//' script


1

You can always write a script: #!/bin/sh for name in "$@" do cp "$name" "$name"~ && tr -d '\r' < "$name"~ > "$name" && rm "$name"~ done and name that dos2unix. No compiler is needed.


1

If you have GNU sed you can do this: sed -i 's/\x0D$//' script Where "x0D" is the ASCII code for \r.


0

You need to have shntool and cuetools installed. Also install the tta encoder and decoder from http://www.etree.org/shnutils/shntool/. It needs to be compiled it with g++ and yasm. Same goes for .ape files, which are also often used instead of .tta. split and name .flac files: find . -name "*.cue" -execdir sh -c 'shnsplit -f "$1" -o flac -t "%n_%p-%t" ...


1

You can print text to a PDF file using Vim, as long as it was compiled with the +postscript feature. For this you use the :hardcopy > {filename} command. For example you can open example.txt and execute :hardcopy > example.pdf which will produce a file example.pdf containing all the text in example.txt. The header of each page in the PDF will ...


2

sox disturbence.wav -r 16000 -c 1 -b 16 disturbence_16000_mono_16bit.wav gives within one command Sample rate of 16 kHz (-r 16000), one channel (mono) (-c 1), 16 bits bit depth (-b 16).



Top 50 recent answers are included