Sponsored Content
Full Discussion: Here doc question
Top Forums UNIX for Dummies Questions & Answers Here doc question Post 302956079 by scj2012 on Friday 25th of September 2015 04:00:10 PM
Old 09-25-2015
Here doc question

This is a very simple question.

So I have:

[root@machine1]# 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 [root@machine1]# cat << 'EOF' > /usr/share/servers/test man EOF
>
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

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... (6 Replies)
Discussion started by: cfoxwell
6 Replies

2. 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

3. 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

4. Shell Programming and Scripting

replacing text in an ascii doc

What would be the best way to replace all instances of... 09/26/2005 with 20050926 There are no spaces between the the date and the preceeding and following data. example lines looks like... snp01|NAME/OF/A/GROUP|09/26/2005081343|502 the 081343 is the time without colons. Thank... (6 Replies)
Discussion started by: cubs0729
6 Replies

5. 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

6. 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

7. 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

8. UNIX for Dummies Questions & Answers

looking for patterns/tex in a .doc file

I'm learning Unix on my mac, and know that the grep command only works in text files. But what if I want to search for text/patters in a doc file, say? (I write my letters in NeoOffice and save them in .doc format). Is there a unix command that can do that? (4 Replies)
Discussion started by: Straitsfan
4 Replies

9. Shell Programming and Scripting

Add Color To html Doc

I have a script which converts a .csv file to html nicely. Trying to add 3 colors, green, yellow and red to the output depending upon the values in the cells. Tried some printf command but just can't seem to get any where. Any ideas would be appreciated. nawk 'BEGIN{ FS="," print ... (7 Replies)
Discussion started by: jimmyf
7 Replies

10. UNIX for Advanced & Expert Users

[BASH] Errormessages and Traps with a 'here-doc'

Happy holidays everyone :) I'm trying to increase usabilty for my scripted project-, for that i wanted to apply an error message poping up upon every and any error (other than proper exit) indicating the enduser a uniform, and hopefully readable error messsage. To achieve this, i wrote a... (4 Replies)
Discussion started by: sea
4 Replies
lnptest(1)						      General Commands Manual							lnptest(1)

NAME
lnptest - LNP Client Test Application SYNOPSIS
lnptest DESCRIPTION
lnptest is an LNP Daemon test client used to test the connection between lnptest and the LNP daemon through the Ir Tower to a corresponding test program running in an RCX. See the FILES section for the location of the RCX test program source code (distributed with this pack- age). OPTIONS
lnptest does not support command-line options. USAGE
To run the test: - compile the lnptest.c RCX program - start the lnpd daemon - download the lnptest.lx program to the RCX - (at the RCX) run the program just downloaded to the RCX - run this lnptest program - inspect the output looking for lack of failure messages FILES
/usr/share/doc/lnpd/examples/rcx In this directory is the source to the RCX-side program which is called lnptest.c but written to be compiled against BrickOS. SEE ALSO
lnptest2(1), lnpdll(1), lnpd(8) You can find additional documentation in /usr/share/doc/lnpd (on Debian GNU/Linux systems) AUTHOR
lnptest was written by Martin Cornelius <Martin.Cornelius@t-online.de> This man page was written by Stephen Moraco <stephen@debian.org> January 23, 2005 lnptest(1)
All times are GMT -4. The time now is 01:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy