07-09-2013
Post desired output for those two sample files.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to use a script to replace the header of each file, whose filename are stored within the array $test, using the sed command within a Perl script as follows:
$count = 0;
while ( $count < $#test )
{
`sed -e 's/BIOGRF 321/BIOGRF 332/g' ${test} > 0`;
`cat 0 >... (2 Replies)
Discussion started by: userix
2 Replies
2. Shell Programming and Scripting
Hi ,
I am trying to check wether the variable is present in the array. please see the below code .when ever i do this its taking only the first value of the array . please advise.
###Code Snnipet ###
#!/bin/ksh
set -xv
if ]; then
echo " you have Specified the ORG ID - $1 "
... (1 Reply)
Discussion started by: padhu.47
1 Replies
3. Shell Programming and Scripting
Hi Forum,
I am struggling with the for loop in shell script.
Let me explain what is needed in the script.
I have a file which will conatin some strings like
file1
place1
place2
place3
checkpoint
some other text
some more text
Now what my requirement is
the words ... (2 Replies)
Discussion started by: siri_14
2 Replies
4. Shell Programming and Scripting
hi all......
i want to use an array ,declared in bash, in embedded perl script.
is there any way to export whole array so that i can use it '$ENV{}' or something..
thanx in advance!!
regards,
prayush (1 Reply)
Discussion started by: tprayush
1 Replies
5. Shell Programming and Scripting
Hi,
cut -d: -f1,3 /etc/group >rpt.out
I have a doubt in perl. right i am getting list of group user id into rpt.out file. instead i need to store it as an array in perl script. could you please tell me how can i get list of user into an array in perl script..
thanks in advance. (1 Reply)
Discussion started by: solo123
1 Replies
6. Shell Programming and Scripting
I am having following folder structure.
/root/audios/pop
/root/audios/jazz
/root/audios/rock
Inside those pop, jazz, rock folders there are following files,
p1.ul, p2.ul, p3.ul, j1.ul, j2.ul, j3.ul, r1.ul, r2.ul, r3.ul
And I have a file named as "audio.txt" in the path /root/audios,... (11 Replies)
Discussion started by: gopikrish81
11 Replies
7. Shell Programming and Scripting
Hi all,
Not sure if this should be in the programming forum, but I believe it will get more response under the Shell Programming and Scripting FORUM.
Am trying to write a customized df script in Perl and need some help with regards to using arrays and file handlers.
At the moment am... (3 Replies)
Discussion started by: newbie_01
3 Replies
8. Shell Programming and Scripting
Hi,
I am working on a sever A.
I want to write a perl script to execute a shell script persent on the server B.
please help me in this.
thanks in advance. (3 Replies)
Discussion started by: anandgodse
3 Replies
9. UNIX for Advanced & Expert Users
hi Team,
i need a help in perl ,
i need to get values(10 rows +) from perl GUI and insert those values into oracle table.
am trying to achive this in Perl array, can you please help me on this.
thanks
senthil (1 Reply)
Discussion started by: senkerth
1 Replies
10. Shell Programming and Scripting
I'm trying to exlude a list of values with perl to process while reading in a file. Is there a way to use the next if with a list?
Example:
@array = qw(val1 val2 val3 val6);
while (<>) {
next if $_ =~ @array; # values I don't want to process here
print; # process the rest here
}... (8 Replies)
Discussion started by: timj123
8 Replies
LEARN ABOUT NETBSD
field_just
FORMS(3) BSD Library Functions Manual FORMS(3)
NAME
field_just, set_field_just -- form library
LIBRARY
Curses Form Library (libform, -lform)
SYNOPSIS
#include <form.h>
int
field_just(FIELD *field);
int
set_field_just(FIELD *field, int justification);
DESCRIPTION
Field justification is only applied to static fields, a dynamic field will not be justified. The default justification for a field is
NO_JUSTIFICATION. The field_just() will return the current justification value of the given field and the justification may be set by call-
ing the set_field_just() function.
PARAMETERS
The following are the valid justifications for a field:
NO_JUSTIFICATION No justification is to be applied to the field. In practice, this is the same as JUSTIFY_LEFT.
JUSTIFY_RIGHT The field will be right justified. That is, the end of each line will be butted up against the right hand side of the
field.
JUSTIFY_LEFT The field will be left justified. That is, the start of each line will be butted up against the left hand side of the
field.
JUSTIFY_CENTER The field will be centre justified, padding will be applied to either end of the line to make the line centred in the
field.
RETURN VALUES
The functions will return one of the following error values:
E_OK The function was successful.
E_CURRENT The field specified is the currently active one on the form.
E_BAD_ARGUMENT A bad argument was passed to the function.
SEE ALSO
curses(3), forms(3)
NOTES
The header <form.h> automatically includes both <curses.h> and <eti.h>.
BSD
January 1, 2001 BSD