05-20-2005
SunOs 5.9
when I add your latest change I have a syntax error.
this is what i have :
BEGIN{}
/ID-INTERNAL[^-]/ \
{
gsub("ID-INTERNAL[^-]", "1",$0)
}
END{}
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
Ho do I differentiate system call from library call?
for example if I am using chmod , how do I find out if it is a system call or library call?
Thanks
Muru (2 Replies)
Discussion started by: muru
2 Replies
2. Shell Programming and Scripting
Hi. This is my first post on the forums.
I am trying to write a script that will parse a folder of files "oneverylongfilenamexyz.pdf" and create a .dat file named "oneverylongfilenamexyz.dat" with the first line of each .dat file saying variable="xyz" where xyz is the last 14 characters of $i... (4 Replies)
Discussion started by: attonbitusira
4 Replies
3. Shell Programming and Scripting
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)
Discussion started by: mikesimone
6 Replies
4. Shell Programming and Scripting
Hi All,
I have a script(sample.sh) displaying the output of "dd" command. Now i am using this script in system() call as,
system("sh sample.sh") in an application file.
I want the output of system("sh sample.sh") in the application file itself.
How can i get it?
Many thnaks.... (9 Replies)
Discussion started by: amio
9 Replies
5. Shell Programming and Scripting
I'm brand new to awk and need your help.
I want to be able to shut down my workstations when they become to hot (because we've lost our cooling). I found a really neat way to monitor the temperature of the system and a short, simple awk scipt to use with it:
/usr/sbin/prtpicl -v -c... (2 Replies)
Discussion started by: natural
2 Replies
6. Shell Programming and Scripting
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)
Discussion started by: msrahman
1 Replies
7. Shell Programming and Scripting
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)
Discussion started by: sasikanthdba
4 Replies
8. Shell Programming and Scripting
The below awk script (loop.awk) is in the cygwin home directory. I do a cd to the directory where the Sources.txt is (where I would like the data output in), but the script does not run: echo loop | ./loop.awk
loop.awk
#!/bin/awk -f
BEGIN {}
cat Sources.txt | while read a
do... (10 Replies)
Discussion started by: cmccabe
10 Replies
9. Shell Programming and Scripting
Hi
I have a text file (Input.txt) with two column entries separated by tab as given below:
aaa str1
bbb str2
cccccc str3
dddd str4
eee str3
ssss str2
sdf str3
hhh str1
fff str2
ccc str3
.....
.....
..... (1 Reply)
Discussion started by: my_Perl
1 Replies
10. Shell Programming and Scripting
HI ,
I am trying to write a code where if a file system has / at the end then replace it with null but it should not affect root file system /
for example if
ip is /var/opt/home/ then o/p is /var/opt/home
but if ip is / then it should remain /.
for this i am using below code but no success... (8 Replies)
Discussion started by: Jcpratap
8 Replies
ADDLOSIG(3) MBK LOGICAL FUNCTIONS ADDLOSIG(3)
NAME
addlosig - create a logical signal
ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in
Paris, France.
Web : http://asim.lip6.fr/recherche/alliance/
E-mail : alliance-users@asim.lip6.fr
SYNOPSYS
#include "mlo.h"
losig_list *addlosig(ptfig, index, namechain, type)
lofig_list *ptfig;
long index;
chain_list *namechain;
char type;
PARAMETERS
ptfig Pointer to the figure in which the signal should be added
index Signal index
namechain List of names of the signal
type Signal type
DESCRIPTION
addlosig creates a new signal, and adds it to the list of signals pointed to by ptfig->LOSIG. The new signal is added in front of the list,
and becomes itself the list head.
The type parameter can take two values :
EXTERNAL The signal is attached to at least one connector of the figure.
INTERNAL The signal is only attached to instance or transistor connector.
The index and type arguments fill the INDEX and TYPE fields of the losig(3) structure. The index is the signal identifier, so it should be
unique at a given hierarchical level.
The namechain argument is a list of names, given in a chain_list. See chain(3) for details.
RETURN VALUE
addlosig returns a pointer to the newly created signal.
ERRORS
"*** mbk error *** addlosig impossible signal index already exist in figure ptfig->NAME"
The index is already used in an other signal, and since it's the signal identifier, it can't be.
EXAMPLE
#include "mlo.h"
losig_list *merge_and_create(pt, s0, s1) /* merge two signal in a third */
lofig_list *pt;
losig_list *s0, *s1;
{
chain_list *c;
losig_list *s;
long max_index;
/* merge names */
for (c = s0->NAMECHAIN; c; c = c->NEXT)
s1->NAMECHAIN = addchain(s1->NAMECHAIN, c);
/* find maximum index */
for (s = pt->LOSIG; s; s = s->NEXT)
if (max_index < s->INDEX)
max_index = s->INDEX;
s = addlosig(pt, ++max_index, s1->NAMECHAIN,
s0->TYPE == EXTERNAL || s1->TYPE == EXTERNAL ?
EXTERNAL : INTERNAL);
dellosig(pt, s0);
dellosig(pt, s1);
return s;
}
SEE ALSO
mbk(1), lofig(3), losig(3), getlosig(3), dellosig(3).
BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory.
We need your feedback to improve documentation and tools.
ASIM
/LIP6 October 1, 1997 ADDLOSIG(3)