form_field(3X)form_field(3X)NAME
form_field - make and break connections between fields and forms
SYNOPSIS
#include <form.h>
int set_form_fields(FORM *form, FIELD **fields);
FIELD **form_fields(const FORM *form);
int field_count(const FORM *form);
int move_field(FIELD *field, int frow, int fcol);
DESCRIPTION
The function set_form_fields changes the field pointer array of the given form. The array must be terminated by a NULL.
The function form_fields returns the field array of the given form.
The function field_count returns the count of fields in form.
The function move_field moves the given field (which must be disconnected) to a specified location on the screen.
RETURN VALUES
The function form_fields returns a pointer (which may be NULL). It does not set errno.
The function field_count returns ERR if the form parameter is NULL.
The functions set_form_fields and move_field return one of the following codes on error:
E_OK The routine succeeded.
E_BAD_ARGUMENT
Routine detected an incorrect or out-of-range argument.
E_CONNECTED
The field is already connected to a form.
E_POSTED
The form is already posted.
E_SYSTEM_ERROR
System error occurred (see errno).
SEE ALSO curses(3X), form(3X).
NOTES
The header file <form.h> automatically includes the header file <curses.h>.
PORTABILITY
These routines emulate the System V forms library. They were not supported on Version 7 or BSD versions.
The SVr4 forms library documentation specifies the field_count error value as -1 (which is the value of ERR).
AUTHORS
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond.
form_field(3X)
Check Out this Related Man Page
form_field(3X)form_field(3X)NAME
form_field - make and break connections between fields and forms
SYNOPSIS
#include <form.h>
int set_form_fields(FORM *form, FIELD **fields);
FIELD **form_fields(const FORM *form);
int field_count(const FORM *form);
int move_field(FIELD *field, int frow, int fcol);
DESCRIPTION
The function set_form_fields changes the field pointer array of the given form. The array must be terminated by a NULL.
The function form_fields returns the field array of the given form.
The function field_count returns the count of fields in form.
The function move_field moves the given field (which must be disconnected) to a specified location on the screen.
RETURN VALUE
The function form_fields returns a pointer (which may be NULL). It does not set errno.
The function field_count returns ERR if the form parameter is NULL.
The functions set_form_fields and move_field return one of the following codes on error:
E_OK The routine succeeded.
E_BAD_ARGUMENT
Routine detected an incorrect or out-of-range argument.
E_CONNECTED
The field is already connected to a form.
E_POSTED
The form is already posted.
E_SYSTEM_ERROR
System error occurred (see errno).
SEE ALSO curses(3X), form(3X).
NOTES
The header file <form.h> automatically includes the header file <curses.h>.
PORTABILITY
These routines emulate the System V forms library. They were not supported on Version 7 or BSD versions.
The SVr4 forms library documentation specifies the field_count error value as -1 (which is the value of ERR).
AUTHORS
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond.
form_field(3X)
Hi All
I have a file.Below are few records of the file.
sample.txt
CPS,ES,843232910001,ESF81462,W N LINDSAY LTD,01674840629,09-FEB-2009,23-FEB-2009,CDR735,ALL CALLS,01674840629
CPS,ES,843232670001,ESF81462,W N LINDSAY LTD,01674840629,09-FEB-2009,23-FEB-2009,CDR734,ALL... (2 Replies)
Hi all,
I'm trying to count the fields in a file and I'm not getting back the desired result. I was wondering if anyone can help.
This is the code:
#!/bin/bash
a=$(awk '{print NF}' foobar)
if
then
echo "this works"
else
echo "no it's $a instead"
fi
The foobar file contains... (1 Reply)
How do I create a script that provides a count of distinct values of a particular field in a file utilizing commonly available UNIX commands (sh or awk)?
Field1|Field2|Field3|Field4
AAA|BBB|CCC|DDD
111|222|333|777
AAA|EEE|ZZZ|EEE
111|555|333|444
AAA|EEE|CCC|DDD
111|222|555|444
For... (2 Replies)
Hello All,
I have a file with contents like
apple|ball|charlie|David|
England|France|Germany|
Ireland|Japan|King|London|
Man|Nancy|Orange|
here the column delimiter is |
so if any of the lines/rows in the file has 3 only records (last field is empty), i want to place a | at the end of... (4 Replies)
I am new to cut and I want to use the field option with a space delimiter on an Apache log file.
For example, if I wanted to find the 200 HTTP code using cut in this manner on the file below
cat access_abc.log | cut -d' ' -f7 | grep "200"
157.55.39.183 - - "GET /content/696-news041305... (4 Replies)
Hi Folks,
I have a file with fields as follows which has last field in multiple lines. I would like to combine a line which has three fields with single field line for as shown in expected output. Please help.
INPUT
hname01 windows appnamec1eda_p1, ... (5 Replies)
I am trying to remove all the lines and spaces where the count in $4 or $5 is greater than 1 (more than 1 letter). The file and the output are tab-delimited. Thank you :).
file
X 5811530 . G C NLGN4X
17 10544696 . GA G MYH3
9 96439004 . C ... (1 Reply)