All,
I have a requirement where I will need to split a line into multiple lines.
Ex:
Input:
2ABCDEFGH2POIYUY2ASDGGF2QWERTY
Output:
2ABCDEFGH
2POIYUY
2ASDGGF
2QWERTY
The data is of no fixed lenght. Only the lines have to start with 2.
How can this be done. (5 Replies)
Hi guys, looking for a bit of advise, and as I am a complete novice, please excuse the daft questions!!
I have a list of events and of which entry looks like this;
#
# Event 1
# NAME = Event 1
#
12345 : 123 : 1 : 1 : L,1,N : 1,0 : Event
#
# Event 2
# NAME = Event 2
#
12346... (8 Replies)
Guys I am having a problem with being able to find missing monitors in a configuration check script I am trying to create for accountability purposes for managing a large number of systems. What I am trying to do is run a script that will look at the raw config data in a file and pull all the pool... (7 Replies)
Hello all,
first off great forum.
Now for my little problem.
Using RHEL 5.4 and awk. Been doing code since a few month. So just starting.
My problem is handeling data on multiple lines.
{
if ($1 != LASTKEY && h ~ /.*\/s_fr_/) {
checkgecos( h, h )
h=""
... (2 Replies)
Hi,
I have one file, say file 1, that has data like below where 19900107 is the date,
19900107 12 144 129 0.7380047
19900108 12 168 129 0.3149017
19900109 12 192 129 3.2766666E-02
... (3 Replies)
I need help extracting specific lines in a text file. The file looks like this:
POSITION TOTAL-FORCE (eV/Angst)
-----------------------------------------------------------------------------------
1.86126 1.86973 1.86972 ... (14 Replies)
:confused:Hello -- i just joined the forums. I am a complete noob -- only about 1 week into learning how to program anything... and starting with linux.
I am working in Linux terminal.
I have a folder with a bunch of txt files. Each file has several lines of html code. I want to combine... (2 Replies)
Hi All,
I am stuck in one step..
I have one file named file.txt having content:
And SGMT.perd_id = (SELECT cal.fiscal_perd_id FROM $ODS_TARGT.TIM_DT_CAL_D CAL
FROM $ODS_TARGT.GL_COA_SEGMNT_XREF_A SGMT
SGMT.COA_XREF_TYP_IDN In (SEL COA_XREF_TYP_IDN From... (4 Replies)
Hi, if i have data like below:
Control|AC-00011-CN-2475208 AC-00011-CN-2475211 AC-00007-CN-2475238 AC-00007-CN-2475241
Im getting output in required format as below
Control|AC-00011-CN-2475208
Control|AC-00011-CN-2475211
Control|AC-00007-CN-2475238
Control|AC-00007-CN-2475241
using
awk... (9 Replies)
GM,
I have an issue at work, which requires a simple solution. But, after multiple attempts, I have not been able to hit on the code needed.
I am assuming that sed, awk or even perl could do what I need.
I have an application that adds extra blank page feeds, for multiple reports, when... (7 Replies)
Discussion started by: jxfish2
7 Replies
LEARN ABOUT REDHAT
wctype
WCTYPE(3) Linux Programmer's Manual WCTYPE(3)NAME
wctype - wide character classification
SYNOPSIS
#include <wctype.h>
wctype_t wctype(const char *name);
DESCRIPTION
The wctype_t type represents a property which a wide character may or may not have. In other words, it represents a class of wide charac-
ters. This type's nature is implementation dependent, but the special value (wctype_t)0 denotes an invalid property. Nonzero wctype_t val-
ues can be passed to the iswctype function to actually test whether a given wide character has the property.
The wctype function returns a property, given by its name. The set of valid names depends on the LC_CTYPE category of the current locale,
but the following names are valid in all locales.
"alnum" - realizes the isalnum classification function
"alpha" - realizes the isalpha classification function
"blank" - realizes the isblank classification function
"cntrl" - realizes the iscntrl classification function
"digit" - realizes the isdigit classification function
"graph" - realizes the isgraph classification function
"lower" - realizes the islower classification function
"print" - realizes the isprint classification function
"punct" - realizes the ispunct classification function
"space" - realizes the isspace classification function
"upper" - realizes the isupper classification function
"xdigit" - realizes the isxdigit classification function
RETURN VALUE
The wctype function returns a property descriptor if the name is valid. Otherwise it returns (wctype_t)0.
CONFORMING TO
ISO/ANSI C, UNIX98
SEE ALSO iswctype(3)NOTES
The behaviour of wctype depends on the LC_CTYPE category of the current locale.
GNU 1999-07-25 WCTYPE(3)