Sponsored Content
Full Discussion: question about cat in script
Top Forums Shell Programming and Scripting question about cat in script Post 302222139 by phemanth24 on Wednesday 6th of August 2008 05:31:25 AM
Old 08-06-2008
dude...i don't think you picked my what i wrote previously
i asked to use back-tick (`)

you are using single quotes...
there is a difference
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

strange cat question.

Does anyone know what the microprograms behind cat (and other commands) are like? In what language are those programs designed? Is their source available somewhere? No particular reason, just wondering. I know it's a bit strange... (3 Replies)
Discussion started by: sanchopansa
3 Replies

2. Shell Programming and Scripting

cat in the command line doesn't match cat in the script

Hello, So I sorted my file as I was supposed to: sort -n -r -k 2 -k 1 file1 | uniq > file2 and when I wrote > cat file2 in the command line, I got what I was expecting, but in the script itself ... sort -n -r -k 2 -k 1 averages | uniq > temp cat file2 It wrote a whole... (21 Replies)
Discussion started by: shira
21 Replies

3. Shell Programming and Scripting

Question regarding cat command

Hello Friends, I have a question, i am trying to write a shell script in the bash shell. #!/bin/sh NAWK=/bin/nawk AWK=/bin/awk FIX_XML_PATH=/home/administrator/testfix/fix/ Y=`ls $FIX_XML_PATH | grep xml` echo $Y cat $Y in this case when i do the echo $Y command it gives me the... (11 Replies)
Discussion started by: asirohi
11 Replies

4. OS X (Apple)

Question about cat and echo

Hello, I am trying to send text to a USB to serial adaptor and then to an external speech synthesizer. I tried using the cat and echo commands with no luck. I have gotten some audio output from my synthesizer using Kermit a terminal emulator, so I am pretty sure my synthesizer and my USB to serial... (1 Reply)
Discussion started by: jamesapp
1 Replies

5. Shell Programming and Scripting

Easy cat question

I am having problems getting a list of filenames that I want from a directory. example: I have 3 files - filename.xxx.20110505.123030 filename.yyy.20110505.123030 filename.zzz.20110505.123030 There may be multiple xxx,... (3 Replies)
Discussion started by: Drenhead
3 Replies

6. Shell Programming and Scripting

cat question

Can any one guide me how can i accomplish this by script i continuously receive files via our ftp server into a certain folder is there a way i can take those files cat it to a new file by hour and create a new file when new hour starts? (4 Replies)
Discussion started by: shehzad_m
4 Replies

7. UNIX for Dummies Questions & Answers

Question regarding Cat

Can we concatenate say, I have a few files prefixing with 2009... So now i want all the 2009 files into one single file.. Can this be achieved???? (4 Replies)
Discussion started by: saggiboy10
4 Replies

8. Shell Programming and Scripting

cat question

hello! why this works? cd /home/user cat * | ecasound -i stdin -o jack and this doesn't? cd /home/user/somedirectory cat * | ecasound -i stdin -o jack somedirectory are full with exe files which are the best source for this sort of noise thing (10 Replies)
Discussion started by: karlhungus
10 Replies

9. Shell Programming and Scripting

Simple cat and echo question

Apologies, probably a really simple problem: I've got a text file (nh.txt) with this in it: user1 email1 email2 user2 email1 email2 etc With the following basic script: for tline in $(cat nh.txt) do echo "**********" echo $tline done ... (3 Replies)
Discussion started by: nelmo
3 Replies

10. Homework & Coursework Questions

Cat/File Descriptor Question

For the command below, I need to understand what exactly the command does and provide an examples for which the output will be saved to file save2... From my understanding, if the file provides an error in the first half of the pipe, it'll save to save1 and will never give an error to save to... (2 Replies)
Discussion started by: ayz649
2 Replies
PLBOX(3plplot)							    PLplot API							    PLBOX(3plplot)

NAME
plbox - Draw a box with axes, etc SYNOPSIS
plbox(xopt, xtick, nxsub, yopt, ytick, nysub) DESCRIPTION
Draws a box around the currently defined viewport, and labels it with world coordinate values appropriate to the window. Thus plbox(3plplot) should only be called after defining both viewport and window. The character strings xopt and yopt specify how the box should be drawn as described below. If ticks and/or subticks are to be drawn for a particular axis, the tick intervals and number of subintervals may be specified explicitly, or they may be defaulted by setting the appropriate arguments to zero. Redacted form: General: plbox(xopt, xtick, nxsub, yopt, ytick, nysub) Perl/PDL: plbox(xtick, nxsub, ytick, nysub, xopt, yopt) This function is used in examples 1,2,4,6,6-12,14-18,21,23-26,29. ARGUMENTS
xopt (const char *, input) Pointer to character string specifying options for horizontal axis. The string can include any combination of the following letters (upper or lower case) in any order: a: Draws axis, X-axis is horizontal line (y=0), and Y-axis is vertical line (x=0). b: Draws bottom (X) or left (Y) edge of frame. c: Draws top (X) or right (Y) edge of frame. d: Plot labels as date / time. Values are assumed to be seconds since the epoch (as used by gmtime). f: Always use fixed point numeric labels. g: Draws a grid at the major tick interval. h: Draws a grid at the minor tick interval. i: Inverts tick marks, so they are drawn outwards, rather than inwards. l: Labels axis logarithmically. This only affects the labels, not the data, and so it is necessary to compute the loga- rithms of data points before passing them to any of the drawing routines. m: Writes numeric labels at major tick intervals in the unconventional location (above box for X, right of box for Y). n: Writes numeric labels at major tick intervals in the conventional location (below box for X, left of box for Y). o: Use custom labeling function to generate axis label text. The custom labeling function can be defined with the plslabelfuncplslabelfunc; command. s: Enables subticks between major ticks, only valid if t is also specified. t: Draws major ticks. u: Exactly like "b" except don't draw edge line. w: Exactly like "c" except don't draw edge line. xtick (PLFLT, input) World coordinate interval between major ticks on the x axis. If it is set to zero, PLplot automatically generates a suitable tick interval. nxsub (PLINT, input) Number of subintervals between major x axis ticks for minor ticks. If it is set to zero, PLplot automatically generates a suitable minor tick interval. yopt (const char *, input) Pointer to character string specifying options for vertical axis. The string can include any combination of the letters defined above for xopt, and in addition may contain: v: Write numeric labels for vertical axis parallel to the base of the graph, rather than parallel to the axis. ytick (PLFLT, input) World coordinate interval between major ticks on the y axis. If it is set to zero, PLplot automatically generates a suitable tick interval. nysub (PLINT, input) Number of subintervals between major y axis ticks for minor ticks. If it is set to zero, PLplot automatically generates a suitable minor tick interval. AUTHORS
Geoffrey Furnish and Maurice LeBrun wrote and maintain PLplot. This man page was automatically generated from the DocBook source of the PLplot documentation, maintained by Alan W. Irwin and Rafael Laboissiere. SEE ALSO
PLplot documentation at http://plplot.sourceforge.net/resources. August, 2012 PLBOX(3plplot)
All times are GMT -4. The time now is 06:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy