This is related to one of my previous post but now with a slight difference: I need the "Updated:" to be in one line as well as the "Information:" on one line as well. These are in multiple lines right now as seen below. These can have 2 or more lines that needs to be in one line.
System name:... (8 Replies)
I can't decide if I should use AWK or PERL after pouring over these forums for hours today I decided I'd post something and see if I couldn't get some advice.
I've got a text file full of hundreds of events in this format:
Record Number : 1
Records in Seq : ... (3 Replies)
i have the file <infile> with ^M charactrer. i just wnt to know through script whether the file have ^M character or not.
Please let me know the script steps to check the same.
Thanks in Advance
Ganesh. (3 Replies)
Hello,
I need a program that read a file line by line and prints out lines 1, 2 & 3 after an empty line... An example of entries in the file would be:
SRVXPAPI001 ERRO JUN24 07:28:34 1775
REASON= 0000, PROCID= #E506 #1065: TPCIPPR, INDEX= 003F
... (8 Replies)
I am trying to combine lines with these conditions:
1. First line starts with text of "libname VALUE db2 datasrc" where VALUE can be any text.
2. If condition1 is met then continue to combine lines through a line that ends with a semicolon.
3. Ignore case when matching patterns and remove any... (5 Replies)
Hi,
I have a requirement where I need to combine two lines in a file based on first character of each line in a file.
Please find the sample content of the file below:
Code:
_______________________
5, jaya, male, 4-5-90, single
smart
6, prakash, male, 5-4-84, married
fair
7, raghavi,... (1 Reply)
Hi,
I have a requirement where I need to combine two lines in a file based on first character of each line in a file.
Please find the sample content of the file below:
Code:
_______________________
5, jaya, male, 4-5-90, single
smart
6, prakash, male, 5-4-84, married
fair
7, raghavi,... (1 Reply)
I have been searching and trying to come up with an awk that will perform the following on a
converted text file (original is a pdf).
1. Since the first two lines are (begin with) text they are removed
2. if $1 is a number then all text is merged (combined) into one line until the next... (3 Replies)
In the awk piped to sed below I am trying to format file by removing the odd xxxx_digits and whitespace after, then move the even xxxx_digit to the line above it and add a space between them. There may be multiple lines in file but they are in the same format. The Filename_ID line is the last line... (4 Replies)
Discussion started by: cmccabe
4 Replies
LEARN ABOUT ULTRIX
localeconv
LOCALECONV(3) Linux Programmer's Manual LOCALECONV(3)NAME
localeconv - get numeric formatting information
SYNOPSIS
#include <locale.h>
struct lconv *localeconv(void);
DESCRIPTION
The localeconv() function returns a pointer to a struct lconv for the current locale. This structure is shown in locale(7), and contains
all values associated with the locale categories LC_NUMERIC and LC_MONETARY. Programs may also use the functions printf(3) and strfmon(3),
which behave according to the actual locale in use.
RETURN VALUE
The localeconv() function returns a pointer to a filled in struct lconv. This structure may be (in glibc, is) statically allocated, and
may be overwritten by subsequent calls. According to POSIX, the caller should not modify the contents of this structure. The localeconv()
function always succeeds.
ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7).
+-------------+---------------+----------------------------------+
|Interface | Attribute | Value |
+-------------+---------------+----------------------------------+
|localeconv() | Thread safety | MT-Unsafe race:localeconv locale |
+-------------+---------------+----------------------------------+
CONFORMING TO
C89, C99.
BUGS
The printf(3) family of functions may or may not honor the current locale.
SEE ALSO locale(1), localedef(1), isalpha(3), nl_langinfo(3), setlocale(3), strcoll(3), strftime(3), locale(7)COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the
latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
GNU 2015-03-02 LOCALECONV(3)