09-28-2006
thanks, to all who helped. i feel that i've gotten over a little hump, dug myself in to get over a couple more. thanks again. comp sci forums are great!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I'm a total beginner at awk and hope someone can advise what I have done wrong in the following script:
I have a file which (to simplify things) may be something like this
Fred Smith and Sue Brown
Joe Jones and Jane Watts
Sally Green and Jim O?
Connor
Freda O?
Reiley and Pat O?... (2 Replies)
Discussion started by: Bab00shka
2 Replies
2. Shell Programming and Scripting
hi everyone,
i have a script that I use regulary to look through my files and directories it works fine, but I would like to add a segment to the script to make the output more readable and userfriendly..
(i am not an expert on scripts so there is no comments or status exits as of yet..
)... (3 Replies)
Discussion started by: moxxx68
3 Replies
3. Shell Programming and Scripting
This is a search script that I have developed. It finds the records that I look for. However the only thing I want the program to do now is to display a message such as 'Not Found' to appear when a record is not found. So far when a search doesn't display a record, the screen is blank.
... (14 Replies)
Discussion started by: Warrior232
14 Replies
4. Shell Programming and Scripting
I need a hand with this simple script,
in Unix i have a variable called portal:
$ echo $portal
chu0
when i use awk this variable is not recognized. How can i make awk recognize and print the value of this variable, since the output is not shown i.e.
awk '
BEGIN {printf("%4s\t%14s\n",... (3 Replies)
Discussion started by: alexcol
3 Replies
5. Shell Programming and Scripting
Hi all,
I have set up a simple awk script to calculate the average of values that are printed out a number of times per second (the number of time the printing occurs varies). The data is of the format shown below:
1 4.43
1 3.65
1 2.45
2 7.65
2 8.23
2 5.65
3 4.65
3 6.21
.. ..
120... (4 Replies)
Discussion started by: omnomtac
4 Replies
6. UNIX for Dummies Questions & Answers
I have a string of letters. (They happen to be DNA, not that it's relevant to the question.) For analysis purposes, I need to replace the information at some of the sites. I need to do this based on their position, not the information in that position.
I also need to ignore differences at other... (10 Replies)
Discussion started by: JFS
10 Replies
7. Shell Programming and Scripting
Hi,
I just don't understand awk. I think I'm close here but can someone give me a hand to finish this little parsing routine ?
the input file is formatted like this:
District 2502110
Gsub 2384889
Gsub 1428180
District 2502220
Gsub 1466390
Gsub 1466389
Gsub 1466388
Gsub 1466386
Gsub... (4 Replies)
Discussion started by: fwellers
4 Replies
8. Shell Programming and Scripting
Guys,
I am new in awk , I face problem while i try to use for loop in awk,
I am using ksh, i am trying to set a for loop which runs as man times as the records in a file , the for loop like for(a=1;a<=5;a++) is working in my awk script but the one i need is not working :wall:
for example
... (8 Replies)
Discussion started by: djahmed
8 Replies
9. Shell Programming and Scripting
please help me to execute a simple shell script like
for i in `ls
echo $i
done
. i dont want to create a new sh file to execute it. Can i just type and execute it ? because I always this kind of simple for loops .
Please help .
Thanks (7 Replies)
Discussion started by: Sooraj_Linux
7 Replies
10. Shell Programming and Scripting
but I'm stumped...please help
I have a file like this.......
1000 1 34
1000 10 34
1000 11 35
1000 20 35
1000 21 36
1000 30 36
2000 1 34
2000 10 34
which I would like printed out as 40 lines
1000 1 34
1000 2 34
1000 3 34
1000 4 ... (2 Replies)
Discussion started by: garethsays
2 Replies
LEARN ABOUT SUNOS
wsreg_remove_display_name
wsreg_add_display_name(3WSREG) Product Install Registry Library Functions wsreg_add_display_name(3WSREG)
NAME
wsreg_add_display_name, wsreg_remove_display_name, wsreg_get_display_name, wsreg_get_display_languages - add, remove, or return a localized
display name
SYNOPSIS
cc [flag ...] file ...-lwsreg [library ...]
#include <wsreg.h>
int wsreg_add_display_name(Wsreg_component *comp, const char *language, const char *display_name);
int wsreg_remove_display_name(Wsreg_component *comp, const char *language);
char *wsreg_get_display_name(const Wsreg_component *comp, const char *language);
char **wsreg_get_display_languages(const Wsreg_component *comp);
DESCRIPTION
For each of these functions, the comp argument specifies the component on which these functions operate. The language argument is the ISO
639 language code identifying a particular display name associated with the specified component.
The wsreg_add_display_name() function adds the display name specified by display_name to the component specified by comp.
The wsreg_remove_display_name() function removes a display name from the component specified by comp.
The wsreg_get_display_name() function returns a display name from the component specified by comp.
The wsreg_get_display_languages() returns the ISO 639 language codes for which display names are available from the component specified by
comp.
RETURN VALUES
The wsreg_add_display_name() function returns a non-zero value if the display name was set correctly; otherwise 0 is returned.
The wsreg_remove_display_name() function returns a non-zero value if the display name was removed; otherwise 0 is returned.
The wsreg_get_display_name() function returns the display name from the specified component if the component has a display name for the
specified language code. Otherwise, NULL is returned. The caller must not free the resulting display name.
The wsreg_get_display_languages() function returns a null-terminated array of ISO 639 language codes for which display names have been set
into the specified component. If no display names have been set, NULL is returned. It is the caller's responsibility to release the
resulting array, but not the contents of the array.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO
wsreg_initialize(3WSREG), attributes(5)
SunOS 5.10 22 Sep 2000 wsreg_add_display_name(3WSREG)