Hi,
Please help in parsing the following file and write separate files by parsing the file for the new file's content.
Main File:
------------
BEGIN
FileName: FirstFile.txt
Content of the File Start
AAAAAAAA
BBBBBBB
Content of the File End
END
BEGIN
FileName: SecondFile.txt... (11 Replies)
I'm trying to write a script that will look in an /exports folder for the oldest export file and move it to a /staging folder. "Oldest" in this case is actually determined by date information embedded in the file names themselves.
Also, the script should only move a file from /exports to... (6 Replies)
Hi Scripting Gurus,
I am trying to parse a csv file and generate a new output file.
The input file will be a variable length in turns of rows and columns.
output file will have 8 columns. we have three columns from the header for each set.
just to give little bit more clarification each row... (15 Replies)
Hello,
I have a file which contains groups of fields. These groups are separated by a blank line, to form a logical record.
Each line consists of a field-value pair.
If want to find all records where field 'd' has a value of '4' and if it does, I want the value of field 'a' (from the... (4 Replies)
Hi Experts,
Im a new bee for scripting,
I would ned to do the following via linux shell scripting, I have an application which throws a log file, on each action of a particular work with the application, as sson as the action is done, the log file would vanish or stops updating there, the... (2 Replies)
Here is a data file, which I believe is in YAML. I am trying to retrieve just the 'addon_domains" section, which doesnt seem to be as easy as I had originally thought. Any help on this would be greatly appreciated!! I have been trying to do this in awk and mostly bash scripting instead of perl... (3 Replies)
Hey guys,
I have this file generated by me... i want to create some HTML output from it.
The problem is that i am really confused about how do I go about reading the file.
The file is in the following format:
TID1 Name1 ATime=xx AResult=yyy AExpected=yyy BTime=xx BResult=yyy... (8 Replies)
Hi Gurus,
i have files like this and i want to rename it.
server1_0_Log0000597500
server1_0_Log0000597501
server1_0_Log0000597502
server1_0_Log0000597503
server1_0_Log0000597504
server1_0_Log0000597505
server1_0_Log0000597506
server1_0_Log0000597507
server1_0_Log0000597508... (7 Replies)
Discussion started by: fedora132010
7 Replies
LEARN ABOUT LINUX
locale
LOCALE(1) Debian GNU/Linux LOCALE(1)NAME
locale - Get locale-specific information.
SYNOPSIS
locale [ -a | -m]
locale [ -ck ] name...
DESCRIPTION
The locale program writes information about the current locale environment, or all locales, to standard output.
When invoked without arguments, locale summarizes the current locale environment for each locale category defined by the LC_* environment
variables.
-a, --all-locales
Write names of available locales.
-m, --charmaps
Write names of available charmaps.
Output Format:
-c, --category-name
Write names of selected categories.
-k, --keyword-name
Write names and values of selected keywords.
ENVIRONMENT VARIABLES
These environment variables affect each locale categories for all locale-aware programs:
LC_CTYPE
Character classification and case conversion.
LC_COLLATE
Collation order.
LC_TIME
Date and time formats.
LC_NUMERIC
Non-monetary numeric formats.
LC_MONETARY
Monetary formats.
LC_MESSAGES
Formats of informative and diagnostic messages and
interactive responses.
LC_PAPER
Paper size.
LC_NAME
Name formats.
LC_ADDRESS
Address formats and location information.
LC_TELEPHONE
Telephone number formats.
LC_MEASUREMENT
Measurement units (Metric or Other).
LC_IDENTIFICATION
Metadata about the locale information.
This environment variable can switch against multiple locale database:
LOCPATH
The directory where locale data is stored. By default, /usr/lib/locale is used.
FILES
/usr/share/i18n/SUPPORTED
List of supported values (and their associated encoding) for the locale name. This representation is recommended over
--all-locales one, due being the system wide supported values.
AUTHOR
locale was written by Ulrich Drepper for the GNU C Library.
This manpage was written by Joel Klecker <espy@debian.org> for the Debian GNU/Linux system, and expanded by Alastair McKinstry <mck-
instry@computer.org>
SEE ALSO locale(5), locale(7), setlocale(3)3rd Berkeley Distribution 2004-12-16 LOCALE(1)