Sponsored Content
Full Discussion: Here Doc (I think!)
Top Forums UNIX for Dummies Questions & Answers Here Doc (I think!) Post 5657 by cfoxwell on Monday 20th of August 2001 09:31:21 AM
Old 08-20-2001
Question Here Doc (I think!)

Can someone explain to me how a here doc works.

I thought it was something like this

<<EOF
command
command
command
EOF

What I am trying to do is put a ftp commands into my shell script, and I've been told that I need to use a here doc for it.

Can anybody shed some light on this please.
 

9 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

seeking a doc on lvm etc...

Hi. I wanted to increase my knowledge base with unix. can you help me find a like that talks about luns, physical volumes, volume groups, logical volumes then mountpoints? i would appreciate it thanks Jigar (1 Reply)
Discussion started by: jigarlakhani
1 Replies

2. AIX

Domino.doc in aix 4.3

Hi, I having trouble while installing domino.doc 3.5 on aix 4.3. The error details are as follows. Pls let me where i am doing wrong. Domino server6.0.2 is already installed. # cd /ddoc/dd31aix/install # ./install Can't load '/usr/opt/perl5/lib/5.00503/aix/DDInst.so' for module DDInst:... (0 Replies)
Discussion started by: vinod2all
0 Replies

3. UNIX for Dummies Questions & Answers

deleteing .doc file

hi i ama dunmmies in Unix. I created a .doc file and copied it to unix via FTP as a ,doc file itself i want to delete that file , i tried with rm command it does not work file name is DDL's.doc plz help :confused: (2 Replies)
Discussion started by: agarwalniru
2 Replies

4. Shell Programming and Scripting

Editing MSWORD Doc

Hello, I need to know how to edit or set different fields in a MS-Word doc using perl. or altleast generate one. Thanks,:b: (1 Reply)
Discussion started by: rimser9
1 Replies

5. Shell Programming and Scripting

If doc file exist remove

I need help running a script. I have the script looking into a folder and converting .doc files to .odt. The script works fine except that I want it to only run when .doc files are present. If I can do this then I can put .xls files and .ppt files in the folder and convert them when they are... (2 Replies)
Discussion started by: handband2
2 Replies

6. UNIX for Advanced & Expert Users

Crawling a MS-Doc using scripting

Hi Everyone How you doing all.Im planning to write a script that will crawl a MS-Document and should take the values from it.Is it possible at all.Im not a scripting guru just want to know your thoughts.. Im planning to do some thing like this: Microsoft Document has: Servername:... (1 Reply)
Discussion started by: coolkid
1 Replies

7. UNIX for Dummies Questions & Answers

Making backup to .doc file .... sh

im tring to make backup to the files end with "doc" extension but the code give me error ... what is the problem!!!! #! /bin/sh if then for name in `ls *.DOC` do kk= $(printf "%s_temp" $name) cp $name $kk done else echo "error" (9 Replies)
Discussion started by: maga6610
9 Replies

8. UNIX and Linux Applications

Word doc to pdf conversion?

I am trying to find a way to convert a Word doc saved in the XML format to a PDF file (that looks like the original Word doc). Yes, there are all kinds of ways to do this interactively. What I need is something that can be run as a background process so that when XML files are placed in a... (0 Replies)
Discussion started by: garzon
0 Replies

9. UNIX for Dummies Questions & Answers

Here doc question

This is a very simple question. So I have: # cat << 'EOF' > /usr/share/servers/test man EOF From the command line I want to put "man" into a /usr/share/servers/test. I have file "test" in directory /usr/share/servers/. However when I run that it come back with # cat << 'EOF' >... (2 Replies)
Discussion started by: scj2012
2 Replies
txt2pdbdoc(1)						      General Commands Manual						     txt2pdbdoc(1)

NAME
txt2pdbdoc - Text to Doc file converter for Palm Pilots SYNOPSIS
txt2pdbdoc [-b] [-c] [-v] document-name file.txt file.pdb txt2pdbdoc -d [-D] [-v] file.pdb [ file.txt ] txt2pdbdoc -V DESCRIPTION
txt2pdbdoc converts a plain text file to a Doc(4) file in PDB (Pilot Database) format used by all models of the Palm Pilot. (It can also convert a Doc file to plain text.) Resultant PDB files can be downloaded directly to a Pilot during a HotSync. The document-name is used in the Document List view of a Doc reader application on the Pilot. OPTIONS
-b Ordinarily, characters with an ASCII code less than 9 are removed and both carriage-returns and form-feeds are converted to newlines. This option suppresses that behavior. -c Ordinarily, text is compressed. This option suppresses compression. -d Decode the given Doc file to text either to a file or to standard output if no file is specified. -D Do not check the file type/creator of the file to decode. This option should be specified only if you know for sure that the file is in fact some sort of Doc file. Attempting to decode non-Doc files will result in undefined behavior and quite possibly crash. -v Verbose mode. For encoding, print progress and compression statistics per 4K of text to standard error as well as overall statistics when completed; for decoding, print progress in a ``countdown'' style. -V Print the version number of txt2pdbdoc to standard output and exit. EXAMPLE
To convert a text file to Doc file: txt2pdbdoc 'Through the Looking Glass' alice.txt alice.pdb EXIT STATUS
Exits with one of the values given below: 0 Success. 1 Error in command-line options or use. 2 Unable to open source file. 3 Unable to open destination file. 4 Unable to read file. 5 Unable to write file. 6 File is not a Doc file. 7 Doc file uses unknown compression type. CAVEATS
1. Document names are limited to 31 characters in PDB format. Longer names are truncated but have the 29-31st characters replaced by ``...'' to indicate truncation. 2. The command isn't called ``txt2doc'' to avoid confusion about possibly having anything to do with Microsoft Word documents that use the .doc extension. SEE ALSO
html2pdbtxt(1), pdbtxt2html(1), doc(4), pdb(4) AUTHOR
Paul J. Lucas <pauljlucas@mac.com> txt2pdbdoc January 21, 2005 txt2pdbdoc(1)
All times are GMT -4. The time now is 02:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy