I have a command which will run fine in a unix command prompt. Can you tell how to interprete this command inside perl script......
The command is :
perl -pe 's/(\|333\}.*)\}$/$1|1.6}/' FIA.txt
This will search for the number 333 and appends 1.6 at the end of that line....... (1 Reply)
Hi All,
i have a cron entry like
0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /amex/sssmonitor/dss_chk.ksh
and the script is like
#!/bin/ksh
file=`uname -n`
> /sunmast/projects/oasis/COREDEV/Dss$file.log
> /tmp/output_sss
today=`date`
varb=`ps -ef | grep... (5 Replies)
There's a JavaScript file that I call from command line (there's a framework) like so:
./RunDiag.js param1:'string one here' param2:'string two here'
I have a shell script where I invoke the above command. I can run it in a script as simple as this
#!/bin/bash
stuff="./RunDiag.js... (4 Replies)
I am working with a sh script on a solaris 9 zone (sol 10 host) that grabs information to build the configuration command line. the variables Build64, SSLopt, CONFIGopt, and CC are populated in the script. the script includes
CC=`which gcc`
CONFIGopt=' --prefix=/ --exec-prefix=/usr... (8 Replies)
Hi,
I am a bit confused ,why would a sed command work fine outside of ksh script but not inside.
e.g
I want to replace all the characters which end with a value and have space at end of it.
so my command for it is :
sed -i "s/$SEPARATOR /$SEPARATOR/g" file_name
This is working fine in... (8 Replies)
Hi Guys,
I like to output every command executed in the script to a file.
I have tried set -x which does the same.
But it is not giving the logs of the child script which is being called from my script.
Is there any parameters in the Set command or someother way where i can see the log... (2 Replies)
Hi,
I would like to run following code in bash inside a zsh script. (In this case is output unfortunately very different if you run it in zsh).
I tried to put "bash" in front of the code but I obtained following error message "bash: do: No such file or directory
" eve though I merged the whole... (7 Replies)
I have bash shell script which is internally calling python script.I would like to know how long python is taking to execute.I am not allowed to do changes in python script.Please note i need to know execution time of python script which is getting executed inside shell .I need to store execution... (2 Replies)
Hello,
Just wondered if there is any possibility to run a command at sharp time inside a script in linux. My question is not about crontab
Example:
#!/bin/bash
cd /home/database
for i in *
do
command 1
if time is 19:00, day is Monday then run command2
if time is 20:00, day is... (10 Replies)
I wish to replace "\\n" with a single white space.
The below does the job on command-line:
$ echo '/fin/app/scripts\\n/fin/app/01/sql' | sed -e 's#\\\\n# #g';
/fin/app/scripts /fin/app/01/sql
However, when i have the same code to a shell script it is not able to get me the same output:... (8 Replies)
Discussion started by: mohtashims
8 Replies
LEARN ABOUT PHP
yaz_search
YAZ_SEARCH(3) 1 YAZ_SEARCH(3)yaz_search - Prepares for a searchSYNOPSIS
bool yaz_search (resource $id, string $type, string $query)
DESCRIPTION yaz_search(3) prepares for a search on the given connection.
Like yaz_connect(3) this function is non-blocking and only prepares for a search to be executed later when yaz_wait(3) is called.
PARAMETERS
o $id
- The connection resource returned by yaz_connect(3).
o $type
- This parameter represents the query type - only "rpn" is supported now in which case the third argument specifies a Type-1 query
in prefix query notation.
o $query
- The RPN query is a textual representation of the Type-1 query as defined by the Z39.50 standard. However, in the text represen-
tation as used by YAZ a prefix notation is used, that is the operator precedes the operands. The query string is a sequence of
tokens where white space is ignored unless surrounded by double quotes. Tokens beginning with an at-character ( @) are considered
operators, otherwise they are treated as search terms.
RPN Operators
+-----------------------------+---------------------------------------------------+
| Construct | |
| | |
| | Description |
| | |
+-----------------------------+---------------------------------------------------+
| | |
| @and query1 query2 | |
| | |
| | intersection of query1 and query2 |
| | |
| | |
| @or query1 query2 | |
| | |
| | union of query1 and query2 |
| | |
| | |
| @not query1 query2 | |
| | |
| | query1 and not query2 |
| | |
| | |
| @set name | |
| | |
| | result set reference |
| | |
| | |
| @attrset set query | |
| | |
| | specifies attribute-set for query. This con- |
| | struction is only allowed once - in the beginning |
| | of the whole query |
| | |
| | |
|@attr [set] type=value query | |
| | |
| | applies attribute to query. The type and value |
| | are integers specifying the attribute-type and |
| | attribute-value respectively. The set, if given, |
| | specifies the attribute-set. |
| | |
+-----------------------------+---------------------------------------------------+
You can find information about attributes at the Z39.50 Maintenance Agency site.
Note
If you would like to use a more friendly notation, use the CCL parser - functions yaz_ccl_conf(3) and yaz_ccl_parse(3).
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
Query Examples
You can search for simple terms, like this:
computer
The query
"knuth donald"
This query applies two attributes for the same phrase.
The query
@and @or a b @not @or c d e
(a or b) and ((c or d) not e).
Another, more complex, one:
@attrset gils @and @attr 1=4 art @attr 1=2000 company
art occur in the title (GILS,BIB-1) and in which company occur as Distributor (GILS).
PHP Documentation Group YAZ_SEARCH(3)