05-27-2016
It's not clear what $2 and $3 are ..
It looks like you convert $3, so I assume that's file.pdf
tesseract's output would be in file.pdf.txt since you didn't use ${3%.*} as you did elsewhere. But then you try to open ${3/%.*}.txt instead...
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
Can anyone help me in converting a PDF file into a text file?
Thanks,
sskb (2 Replies)
Discussion started by: sskb
2 Replies
2. UNIX for Dummies Questions & Answers
how to open a text file using some tool such as gedit under gtk
I list some text file names in a GtkCList . I want to open the file on when users click on the row.
How to implement this ?
Thanks (0 Replies)
Discussion started by: cy163
0 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I knw its a silly question, but am a newbie to 'vi' editor. I'm forced to use this, hence kindly help me with this question.
How can i paste a chunk 'copied from' a different editor(gedit) in 'vi editor'?
As i see, p & P options does work only within 'vi'. (10 Replies)
Discussion started by: harishmitty
10 Replies
4. Solaris
Hi,
I am having a wierd problem in one of the Solaris server.
root@ussd # uname -a
SunOS ussd 5.8 Generic_108528-24 sun4u sparc SUNW,Sun-Fire-280R
The problem is that terminal is not refreshing when we run commands like
prstat, tail -f "some log file", sar -u 1 10
Also, sleep... (3 Replies)
Discussion started by: vikas027
3 Replies
5. Red Hat
Can someone please tell me why this is not working? I have created numerous pdf's from text files by following these instructions and this time it is not working.
Convert jpeg files to PDF under Linux | bitPrison.net
convert /home/liveuser/Documents/hw7 /home/liveuser/Documents/hw7.pdf... (5 Replies)
Discussion started by: cokedude
5 Replies
6. UNIX for Advanced & Expert Users
Hi Guys,
My OS is Suse Linux.. Is there a Command to convert PDF file to Text??
Cheers!!!!! (2 Replies)
Discussion started by: mac4rfree
2 Replies
7. Shell Programming and Scripting
Is there a way using the pdf to text utility to convert all the pdf in a given directory?
So instead of one at a time:
pdftotext pdftotext hp-manual.pdf hp-manual.txt
a directory of 50 pdf files would be converted:
pdftotext /home/dnascopev/Desktop/PDF.pdf /home/dnascopev/Desktop/PDF.txt
... (6 Replies)
Discussion started by: cmccabe
6 Replies
8. Shell Programming and Scripting
Is there a way to covert te attached text file to a pdf?
I have tried:
enscript-p output.ps article.txt
PRE.cjk { font-family: "WenQuanYi Micro Hei",monospace; }PRE.ctl { font-family: "Lohit Hindi",monospace; }P { margin-bottom: 0.08in; } awk '{ A=$2; next} END { for (i in A) print... (7 Replies)
Discussion started by: cmccabe
7 Replies
9. HP-UX
Hi,
Can anyone tell me the best converter I can use to convert text to pdf for HP/UX 11.31?
Thanks,
Linda (0 Replies)
Discussion started by: lnemitz
0 Replies
LEARN ABOUT REDHAT
unix2dos
unix2dos(1) General Commands Manual unix2dos(1)
NAME
unix2dos - UNIX to DOS text file format converter
SYNOPSYS
unix2dos [options] [-c convmode] [-o file ...] [-n infile outfile ...]
Options:
[-hkqV] [--help] [--keepdate] [--quiet] [--version]
DESCRIPTION
This manual page documents unix2dos, the program that converts text files in UNIX format to DOS format.
OPTIONS
The following options are available:
-h --help
Print online help.
-k --keepdate
Keep the date stamp of output file same as input file.
-q --quiet
Quiet mode. Suppress all warning and messages.
-V --version
Prints version information.
-c --convmode convmode
Sets conversion mode. Simulates unix2dos under SunOS.
-o --oldfile file ...
Old file mode. Convert the file and write output to it. The program default to run in this mode. Wildcard names may be used.
-n --newfile infile outfile ...
New file mode. Convert the infile and write output to outfile. File names must be given in pairs and wildcard names should NOT be
used or you WILL lost your files.
EXAMPLES
Get input from stdin and write output to stdout.
unix2dos
Convert and replace a.txt. Convert and replace b.txt.
unix2dos a.txt b.txt
unix2dos -o a.txt b.txt
Convert and replace a.txt in ASCII conversion mode. Convert and replace b.txt in ISO conversion mode.
unix2dos a.txt -c iso b.txt
unix2dos -c ascii a.txt -c iso b.txt
Convert and replace a.txt while keeping original date stamp.
unix2dos -k a.txt
unix2dos -k -o a.txt
Convert a.txt and write to e.txt.
unix2dos -n a.txt e.txt
Convert a.txt and write to e.txt, keep date stamp of e.txt same as a.txt.
unix2dos -k -n a.txt e.txt
Convert and replace a.txt. Convert b.txt and write to e.txt.
unix2dos a.txt -n b.txt e.txt
unix2dos -o a.txt -n b.txt e.txt
Convert c.txt and write to e.txt. Convert and replace a.txt. Convert and replace b.txt. Convert d.txt and write to f.txt.
unix2dos -n c.txt e.txt -o a.txt b.txt -n d.txt f.txt
DIAGNOSTICS
BUGS
The program does not work properly under MSDOS in stdio processing mode. If you know why is that so, please tell me.
AUTHOR
Benjamin Lin - ( blin@socs.uts.edu.au )
MISCELLANY
Tested environment:
Linux 1.2.0 with GNU C 2.5.8
SunOS 4.1.3 with GNU C 2.6.3
MS-DOS 6.20 with Borland C++ 4.02
Suggestions and bug reports are welcome.
SEE ALSO
dos2unix(1)
1995.03.31 unix2dos v2.2 unix2dos(1)