Hi,
this is my test file :
DELETE FROM TABLE
WHERE ID_INTERNAL = :TABLE.ID-INTERNAL, ID-INTERNAL-CRAZY
ID-INTERNAL-OPEN
ID-INTERNAL
/ID-INTERNAL/
I want all occurences of ID-INTERNAL replaced with a one, if ID-INTERNAL has and dash afer it , dont replace it example:... (6 Replies)
Hey everyone,
I've been trying to use the system(cmd) call in C to tar multiple files together.
When i do so i specify the absolute paths of the tar file as well as the files to be included in the tar file.
Eg: system("tar -cf /tmp/example.tar /mnt/john/1.xml");
system("tar -uf... (5 Replies)
So, I have this script. It reads a CSV file that has a mixture of object names with IP addresses (parsing out that part I have working), and object names which have a DNS name. I want to be able to run a "dig +short" based off of the name given to me in the line of the awk script, and then deal... (6 Replies)
Hi,
Can you assist me in how to redirect the output of oracle stored procedure from unix script?
Something similar to what i did for sybase
isql -U$MYDBLOG -D$MYDBNAME -S$MYDBSVR -P$MYDBPWD -o$MYFILE<< %%
proc_my_test 8
go
%%
Thanks in advance - jak (0 Replies)
Hi,
I have ascript which drops a mail with the jobs status.
here is the script:
#!/bin/ksh
mypath=/home/gaddamja
flashlogpath=/sbcimp/dyn/data/flash/log
cd $mypath
v1=`ls -lrt | grep -i checkFilesForAmber_EUR1. |tail -1 | awk '{print $8}'`
v2=`cat $v1`
cd $flashlogpath
... (1 Reply)
Hello experts,
I have a perl script which looks for the ARGV and then loads the data as per it.
Example.
#Checking the server to connect
if ($ARGV eq 'QA')
{
$ENV{"ORACLE_HOME"} = "/oracle/product/11.2.0";
$ENV{"PATH"} = "$ENV{'PATH'}:/oracle/product/11.2.0/bin";
... (1 Reply)
Hi All,
I am running the below shell script through cron and surprisingly it gives different output
$uname -a
Linux 2.6.18-194.3.1.7.3.el5xen #1 SMP Fri Jul 30 00:08:45 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
$ echo $SHELL
/bin/bash
shell script:
cat sar_cpu.sh
#!/bin/bash
... (10 Replies)
Hello All,
I need immediate help in creating shell script to call archivebkup.ksh script when archive file system capacity reaches threshold value or 60%
Need to identify the unique file system that reaches threshold value.
ex:
capacity
... (4 Replies)
to run most other scripts through a pipe, something similar to the following is usually enough:
cat script.sh | sh
cat perl.pl | perl -- "<arguments"
However, for javascript command line scripts, i cant seem to get this to work. Any ideas?
cat hull.js
#!/usr/bin/js
... (3 Replies)
I'm trying to create a shell script that takes a awk script that I wrote and a filename as an argument. I was able to get that done but I'm having trouble figuring out how to keep the header of the output at the top but sort the rest of the rows alphabetically. This is what I have now but it is... (1 Reply)
Discussion started by: Eric7giants
1 Replies
LEARN ABOUT DEBIAN
rdswap
RDSWAP(1) General Commands Manual RDSWAP(1)
["NAME"]
rdswap - a multi-language RD documents support tool
["SYNOPSIS"]
rdswap [ -h | -v ] filename ...
["DESCRIPTION"]
This tool is written to support you to write multi-language documents using the Ruby-Document-Format (RD).
The idea for such a tool was originated by Minero Aoki, how has thought about, how to make life easier for developers who have to write and
maintain scripts in more than one language.
You have to specify at least two filenames on the command line. One containing the Ruby script, the second containing a translated RD. If
the script does not end with `.rb', it has to be the first filename mentioned on the command line! In opposition, all files containing
translations must not ending with `.rb'! They should use a extension that describes the language. So that would give us the following pic-
ture:
o sample.rb : Script contains the original documentation.
o sample.jp : Documentation written in Japanese.
o sample.de : Translation to German.
The tool doesn't care about the language extensions. You can name them as you like! So the file containing the Japanese translation above,
could also be names e.g. `sample.japan' or even `japantranslation.japan'.
For every translation file, a new file will be created. The name is build from the script filename plus the language extension. So regard-
ing the example above, following files would be created:
o sample.rb.jp
o sample.rb.de
or, given the alternative translation filename as mentioned above...
o sample.rb.japan
["How does it work?"]
The contents of all files will be split into source and RD blocks. The source of the translation files, will be discarded! Every RD block
may be of a certain type. The type will be taken from the contents directly following the `=begin' on the same line. If there is only a
lonely `=begin' on a line by itself, the type of the block is `nil'. That means in
# File sample.rd
:
=begin
bla bla
=end
:
=begin whatever or not
blub blub
=end
:
the first block would be of type `nil' and the second one of type `whatever or not'.
Block types are important for the translation. If a source will be generated from a script and a translation file, only these blocks are
taken from the translation files, that comes in the right sequence and contains the same type as the block in the script! For example:
# File sample.rb
:
=begin gnark
Some comment
=end
:
=begin
block 2
=end
:
=begin
block 3
=end
:
# File sample.de
:
=begin
Block zwei
=end
:
=begin
Block drei
=end
:
Here, the first block of `sample.rb' will *not* be translated, as there is no translation block with that type in sample.de! So the first
block would be inserted as-it-is into the translated script. The blocks afterwards, however, are translated as the block type does match
(it is `nil' there).
Attention: In a translation file, a second block will only be used, if a first one was already used (matched). A third block will only be
used, if a second one was used already!
That means, if the first block of `sample.de' would be of type e.g. `Never match', then no block would ever be taken to replace anyone of
`sample.rb'.
["OPTIONS"]
["-h"]
shows this help text.
["-v"]
shows some more text during processing.
["filename"]
means a file, that contains RD and/or Ruby code.
["EXAMPLES"]
rdswap -v sample.rb sample.ja sample.de
rdswap -v sample.ja sample.rb sample.de
rdswap -v sample.ja sample.de sample.rb
rdswap -v sample.??
["AUTHORS"]
Clemens Hintze <c.hintze@gmx.net>.
June 2012 RDSWAP(1)