The command:
echo "this is some text" | shellscript abc def ghi
My problem:
How to capture "this is some text" so that I can process it,
I.e. capture to a file.
What I'm attemting to do is process the text echo'd into a file after writing the
parameters passed first. No problem... (6 Replies)
Hi!!
I have a problem reading from a fifo pipe in shell script.
The idea is simple, I have a C program with two pipe files:
An input pipe I use to send commands in shell script to the C program (echo "command" > input.pipe)
An output pipe that I read the result of the command also in... (4 Replies)
Hi:
I have a text file date(pipe delimited) which is loaded in to the DB using sql loader(&CTL files) after some initial validation by the shell script.
Now i have a situation where the shell script needs to check a column in the text file and if it is NULL then it needs send this record/row... (12 Replies)
Hi,
I want to use a Named pipe to get input from a growing file for further processing. When I prototype this scenario using a while loop, the data is not written to the named pipe.
This the script I use to get data into the Named pipe:
#!/bin/ksh
mkfifo pipe
while (( n <= 10 ))
do
echo... (2 Replies)
Hi,
I want to do SSH on many different machines and then run some commands on them. A binary application randomly generates IP addresses and my script will take care of doing SSH.
$ ./IPGen.exe | ./myScript.sh
my script looks like this:
while read line; do
result1=$(ssh $line... (2 Replies)
Hello,
I need to read the pipe data as:-
cat abc.txt | uuencode abc.txt | mailx -s hi xyz@xyz.com
I will override the mailx function so that when mailx is called, it calls my version of maix and in that function I want to read the file which is attached in progional mailx function- abc.txt... (7 Replies)
Hi Team,
Need a help on how to pipe a command out put to a shell script. My shell script looks like below.
cat shell_script
#!/usr/bin/ksh
input =$@
echo " we are inside the shell script"
echo " here are the input parameters"
..........................
..................
... (11 Replies)
Hi guys, I receive a list from pipe (with fixed number of lines) like this:
name1
name2
name3
And in my ./ folder I have three files:
01-oldname.test
02-someoldname.test
03-evenoldername.test
How to rename files one by one using while read?
Desired result:
01-name1.test
02-name2.test... (3 Replies)
Discussion started by: useretail
3 Replies
LEARN ABOUT CENTOS
yapp
YAPP(1) User Contributed Perl Documentation YAPP(1)NAME
yapp - A perl frontend to the Parse::Yapp module
SYNOPSYS
yapp [options] grammar[.yp]
yapp -V
yapp -h
DESCRIPTION
yapp is a frontend to the Parse::Yapp module, which lets you compile Parse::Yapp grammar input files into Perl LALR(1) OO parser modules.
OPTIONS
Options, as of today, are all optionals :-)
-v Creates a file grammar.output describing your parser. It will show you a summary of conflicts, rules, the DFA (Deterministic Finite
Automaton) states and overall usage of the parser.
-s Create a standalone module in which the driver is included. Note that if you have more than one parser module called from a program,
to have it standalone, you need this option only for one of your parser module.
-n Disable source file line numbering embedded in your parser module. I don't know why one should need it, but it's there.
-m module
Gives your parser module the package name (or name space or module name or class name or whatever-you-call-it) of module. It defaults
to grammar
-o outfile
The compiled output file will be named outfile for your parser module. It defaults to grammar.pm or, if you specified the option -m
A::Module::Name (see below), to Name.pm.
-t filename
The -t filename option allows you to specify a file which should be used as template for generating the parser output. The default is
to use the internal template defined in Parse::Yapp::Output.pm. For how to write your own template and which substitutions are
available, have a look to the module Parse::Yapp::Output.pm : it should be obvious.
-b shebang
If you work on systems that understand so called shebangs, and your generated parser is directly an executable script, you can specifie
one with the -b option, ie:
yapp -b '/usr/local/bin/perl -w' -o myscript.pl myscript.yp
This will output a file called myscript.pl whose very first line is:
#!/usr/local/bin/perl -w
The argument is mandatory, but if you specify an empty string, the value of $Config{perlpath} will be used instead.
grammar
The input grammar file. If no suffix is given, and the file does not exists, an attempt to open the file with a suffix of .yp is tried
before exiting.
-V Display current version of Parse::Yapp and gracefully exits.
-h Display the usage screen.
BUGS
None known now :-)
AUTHOR
Francois Desarmenien <francois@fdesar.net>
COPYRIGHT
(c) Copyright 1998-1999 Francois Desarmenien, all rights reserved. See Parse::Yapp(3) for legal use and distribution rights
SEE ALSO Parse::Yapp(3)Perl(1)yacc(1)bison(1)perl v5.16.3 2001-02-11 YAPP(1)