Thanks. Replacing nawk by awk worked perfectly.
Now my other question is:
In the example you have stated, we get all the possible set of combinations of 3 letter string from 'abcd'.
But if I replace 'abcd' with 'abc_d' then I get set of string which have '_' underscore as well. However, I want that whatever be the parent string (including '_"), the generated abbreviation should not have an underscore.
How do I eliminate the occurrence of underscore.
Also, I understood the functions that you have created but what does the following line do:
Can you please provide me a link where I can get information about awk and how to use it in UNIX scripts?
hi ,
i am trying to compre two strings
if ] or if ]
when the length of var1 is small (around 300-400 char ) it works fine
but when it is large (around 900-1000 chars) it fails
is there any limitations for this type of comparison ??? (3 Replies)
hi ,
i am trying to compre two strings
if ] or if ]
when the length of var1 is small (around 300-400 char ) it works fine
but when it is large (around 900-1000 chars) it fails
is there any limitations for this type of comparison ??? (1 Reply)
I have a ksh script written by someone... now i am trying to modify it to my requirement....
Its executed like this
Read.ksh load ${CUR_MAINT_DATE}
if
then
filnam="Load_CLM"
else
filnam="${1}"
fi
if
then
CUR_MAINT_DATE="${2}"
fi
if
then
ls... (1 Reply)
Hello,
I am attempting to format the output of my unix ksh script. Currently looks like ...
FTP TO HR : Down
FTP FROM HR 4011a : Up
FTP FROM HR 4019a : Down
FTP FROM HR : Down
Would like the status to be aligned as follows:
... (4 Replies)
I am trying to code a ksh script that will check to see if all 26 incoming ftp files have been received before proceeding to the next function, which is to rename each file.
Here is the pseudo-code of what I am trying to do:
<<STEP_1>>
IF all ALS files have been transmitted then... (2 Replies)
Hi,
I have two variables x and y.
i need to find a particular string in a file, a workflow name and then insert the values of x and y into the next lines of the workflow name.
basically it is like as below
wf_xxxxxx
$$a=
$$b=
$$c= figo
$$d=bentley
i need to grep the 'wf_xxxx' and then... (6 Replies)
Hi,
I need to convert string "(joe.smith" into "joe_smith"
i.e. I need to remove the leading opening brace '(' and replace the dot '.' with an under score '_'
can anyone suggest a one liner ksh script or unix command for this please (3 Replies)
I am attempting to grep an exact string from a series of files within a directory and append that output to the filename when it is present in the file. I've been after this all day with no luck. Thanks for your help in advance :wall:. (4 Replies)
I have file which contains a huge amount of data. I need to search the pattern Message id. When that pattern is matched I need to get abcdeff0-1g6g-91g3-1z2z-2mm605m90000 to another file.
Kindly provide your input.
File is like below
Jan 11 04:05:10 linux100 |NOTICE... (2 Replies)
Using ksh, I am using SQLPlus to execute a query with a filter using a string variable.
REPO_DB=DEV1
FOLDER_NM='U_nmalencia'
FOLDER_CHECK=$(sqlplus -s /nolog <<EOF
CONNECT user/pswd_select@${REPO_DB}
set echo off heading off feedback off
select subj_name
from subject
where... (5 Replies)
Discussion started by: nkm0brm
5 Replies
LEARN ABOUT NETBSD
underend
CURSES_UNDERSCORE(3) BSD Library Functions Manual CURSES_UNDERSCORE(3)NAME
curses_underscore, underscore, underend, wunderscore, wunderend -- curses underscore attribute manipulation routines
LIBRARY
Curses Library (libcurses, -lcurses)
SYNOPSIS
#include <curses.h>
int
underscore(void);
int
underend(void);
int
wunderscore(void);
int
wunderend(void);
DESCRIPTION
These functions manipulate the underscore attribute on stdscr or on the specified window.
The underscore() function turns on the underscore attribute on stdscr. The underend() function turns off the underscore attribute on stdscr.
The wunderscore() and wunderend() functions are equivalent to underscore() and underend(), respectively, excepting that the attribute is
manipulated on the window specified by win.
The underscore() and underend() functions are equivalent to wattron(A_UNDERLINE) and wattroff(A_UNDERLINE), respectively.
RETURN VALUES
These functions always return 1.
SEE ALSO curses_attributes(3), curses_standout(3)STANDARDS
The NetBSD Curses library complies with the X/Open Curses specification, part of the Single Unix Specification.
HISTORY
These functions first appeared in NetBSD 1.5.
BSD October 13, 2002 BSD