10-09-2012
Apologies, if I 'm not clear enough. I have thousands of file with different names. I need to find the files with out a decimal place followed by a date in the file name which has been showed in the example.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
Please help me to find or remove files based on position based search pattern.
file1.txt:
aaabbbccc
dddeeefff
iiijjjkkk
file2.txt:
lllmmmnnn
ooopppqqq
rrrsssttt
file3.txt:
uuuvvvwww
xxxeeeyyy
zzzcccooo
From the above files, I like to delete the files that have "eee"... (1 Reply)
Discussion started by: kumarn
1 Replies
2. UNIX for Dummies Questions & Answers
I have a text file with a list of items/patterns:
ConsensusfromCGX_alldays_trimmedcollapsedfilteredreadscontiglist(229095contigs)contig12238
ConsensusfromCGX_alldays_trimmedcollapsedfilteredreadscontiglist(229095contigs)contig34624... (1 Reply)
Discussion started by: Oyster
1 Replies
3. UNIX for Advanced & Expert Users
I want to search for a particular file name patterns and move them to a specific folder, is it possible to do it with awk or sed? (1 Reply)
Discussion started by: rudoraj
1 Replies
4. Shell Programming and Scripting
Hi All,
I need to find and list the last 5 days files in that exact name with "MIM" and copy to another directory.
please help me in this there is around 30000 files
Thanks
Murali (7 Replies)
Discussion started by: 969murali@gmail
7 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have a Huge 7 GB file which has around 1 million records, i want to split this file into 4 files to contain around 250k messages each.
Please help me as Split command cannot work here as it might miss tags..
Format of the file is as below
<!--###### ###### START-->... (6 Replies)
Discussion started by: KishM
6 Replies
6. Shell Programming and Scripting
HI,
I have 3 files that contain the following information (sql output from Oracle database stored in a txt file):
File1.txt :
alter table "SYS"."INT_COST_PRICE" enable row movement;
alter table "SYS"."INT_SOH" enable row movement;
alter table "SYSMAN"."XX_ACI_SKURTP" enable row movement;... (6 Replies)
Discussion started by: rparavastu
6 Replies
7. Shell Programming and Scripting
Hi all
I am trying to loop through a directory of files using a given search pattern. some of the files will be duplicated due to the pattern, but of the duplicate files i wanted to move the older files to another location.
Is there any straightforward way of doing this ?
One of ways I... (1 Reply)
Discussion started by: sthapa
1 Replies
8. Shell Programming and Scripting
Hi All,
I need to find all files in a directory which are containing specific pattern. Thing is that file name should not consider if pattern is only in commented area.
all contents which are under /* */ are commented
all lines which are starting with -- or if -- is a part of some sentence... (13 Replies)
Discussion started by: Lakshman_Gupta
13 Replies
9. Shell Programming and Scripting
I want to extract dates from the files and i have different types of files with pattern. I have list file with the patterns and want to date extract based on it in a sh script
Files in the directory :
file1_20160101.txt
file2_20160101_abc.txt
filexyz20160101.txt
list file with... (2 Replies)
Discussion started by: lijjumathew
2 Replies
10. UNIX for Advanced & Expert Users
Hi,
I have the following reports that get generated every 1 hour and this is my requirement:
1. 5 reports get generated every hour with the names "Report.Dddmmyy.Thhmiss.CTLR"
"Report.Dddmmyy.Thhmiss.ACCD"
"Report.Dddmmyy.Thhmiss.BCCD"
"Report.Dddmmyy.Thhmiss.CCCD"... (1 Reply)
Discussion started by: Jesshelle David
1 Replies
LEARN ABOUT REDHAT
nl_langinfo
NL_LANGINFO(3) Linux Programmer's Manual NL_LANGINFO(3)
NAME
nl_langinfo - query language and locale information
SYNOPSIS
#include <langinfo.h>
char *nl_langinfo(nl_item *item);
DESCRIPTION
The nl_langinfo function provides access to locale information in a more flexible way than localeconv(3) does. Individual and additional
elements of the locale categories can be queried.
Examples for the locale elements that can be specified in item using the constants defined in <langinfo.h> are:
CODESET (LC_CTYPE)
Return a string with the name of the character encoding used in the selected locale, such as "UTF-8", "ISO-8859-1", or
"ANSI_X3.4-1968" (better known as US-ASCII). This is the same string that you get with "locale charmap". For a list of character
encoding names, try "locale -m", cf. locale(1).
D_T_FMT (LC_TIME)
Return a string that can be used as a format string for strftime(3) to represent time and date in a locale-specific way.
D_FMT (LC_TIME)
Return a string that can be used as a format string for strftime(3) to represent a date in a locale-specific way.
T_FMT (LC_TIME)
Return a string that can be used as a format string for strftime(3) to represent a time in a locale-specific way.
DAY_{1-7} (LC_TIME)
Return name of the n-th day of the week. [Warning: this follows the US convention DAY_1 = Sunday, not the international convention
(ISO 8601) that Monday is the first day of the week.]
ABDAY_{1-7} (LC_TIME)
Return abbreviated name of the n-th day of the week.
MON_{1-12} (LC_TIME)
Return name of the n-th month.
ABMON_{1-12} (LC_TIME)
Return abbreviated name of the n-th month.
RADIXCHAR (LC_NUMERIC)
Return radix character (decimal dot, decimal comma, etc.).
THOUSEP (LC_NUMERIC)
Return separator character for thousands (groups of three digits).
YESEXPR (LC_MESSAGES)
Return a regular expression that can be used with the regex(3) function to recognize a positive response to a yes/no question.
NOEXPR (LC_MESSAGES)
Return a regular expression that can be used with the regex(3) function to recognize a negative response to a yes/no question.
CRNCYSTR (LC_MONETARY)
Return the currency symbol, preceded by "-" if the symbol should appear before the value, "+" if the symbol should appear after the
value, or "." if the symbol should replace the radix character.
The above list covers just some examples of items that can be requested. For a more detailed list, please consult The GNU C Library Refer-
ence Manual.
RETURN VALUE
If no locale has been selected for the appropriate category, nl_langinfo returns a pointer to the corresponding string in the "C" locale.
If item is not valid, a pointer to an empty string is returned.
This pointer may point to static data that may be overwritten on the next call to nl_langinfo or setlocale.
CONFORMING TO
The Single UNIX(R) Specification, Version 2
SEE ALSO
localeconv(3), setlocale(3), locale(1), locale(7), charsets(7), The GNU C Library Reference Manual
GNU
2001-05-11 NL_LANGINFO(3)