Can someone please help.
I need to add a sequence number to the start of each line of a file.
It needs to be 6 characters long. ie 000001 next line starts 000002 etc. (4 Replies)
I have a file name -HRCFTSIN05PLA1602100430444444
my requirement is to split the file in 10000 count each file and to add sequence number.rch at the end of each file.
output should be in this format
HRCFTSIN05PLA160210043044444401.rch
HRCFTSIN05PLA160210043044444402.rch... (4 Replies)
Hi All,
I need to create a script which checks for a particular file for eg.kumar1.txt.
If kumar1.txt is already exist the script should increment the file name as kumar2.txt and so on.
Please Advise.
Thanks & Regards,
Kumar66 (2 Replies)
Hi ,
I have a file which has a line starts with $segment_name and has the below data
source data
$Segment_Name = 123.ABC.123.01.txt
$Segment_Name = 123.ABC.ABC.txt
$Segment_Name = 123.ABC.12A3.txtMy target data should be
$Segment_Name = 123.ABC.123.01.txt
$Segment_Name =... (2 Replies)
I have a text file that has data like:
Data "12345#22"
Fred
ID 12345
Age 45
Wilma
Dino
Data "123#22"
Tarzan
ID 123
Age 33
Jane
I need to figure out a way of adding 1,000,000 to the specific lines (always same format) in the file, so it becomes:
Data "1012345#22"
Fred
ID... (16 Replies)
Given a file like this:
abc
def
ghi
I need to get to
somestandardtext abc1 morestandardtext
somestandardtext def2 morestandardtext
somestandardtext ghi3 morestandardtext
Notice that in addition to the standard text there is the line number added in as well. What I conceived is... (4 Replies)
Hi all,
I have 20 files (file001.txt upto file020.txt) and I want to read them from 3rd line upto end of file (line 1002). But in the final file they should appear to start from line 1.
I need following kind of output in a single file:
Filename Line number 2ndcolumn 4thcolumn
I... (14 Replies)
Hi All ,
I have a file which contains data(comma separated) in below format :
500,Sourav ,kolkata ,8745775020,700091
505,ram,delhi ,9875645874,600032
510 ,madhu ,mumbai ,5698756430 ,500042
515 ,ramesh ,blore ,8769045601 ,400092
I want to add unique sequence number at the start of each... (7 Replies)
Hi all - I'm completely stumped by a script I'm working on...
The short version is I have a file called 'lookup' and in it are hundreds of names (first and last). I have a script that basically allows the user to enter a name, and what I need to have happen is something like this:
Record... (8 Replies)
Discussion started by: sabster
8 Replies
LEARN ABOUT CENTOS
pcre-config
PCRE-CONFIG(1) General Commands Manual PCRE-CONFIG(1)NAME
pcre-config - program to return PCRE configuration
SYNOPSIS
pcre-config [--prefix] [--exec-prefix] [--version] [--libs]
[--libs16] [--libs32] [--libs-cpp] [--libs-posix]
[--cflags] [--cflags-posix]
DESCRIPTION
pcre-config returns the configuration of the installed PCRE libraries and the options required to compile a program to use them. Some of
the options apply only to the 8-bit, or 16-bit, or 32-bit libraries, respectively, and are not available if only one of those libraries has
been built. If an unavailable option is encountered, the "usage" information is output.
OPTIONS --prefix Writes the directory prefix used in the PCRE installation for architecture independent files (/usr on many systems, /usr/local on
some systems) to the standard output.
--exec-prefix
Writes the directory prefix used in the PCRE installation for architecture dependent files (normally the same as --prefix) to the
standard output.
--version Writes the version number of the installed PCRE libraries to the standard output.
--libs Writes to the standard output the command line options required to link with the 8-bit PCRE library (-lpcre on many systems).
--libs16 Writes to the standard output the command line options required to link with the 16-bit PCRE library (-lpcre16 on many systems).
--libs32 Writes to the standard output the command line options required to link with the 32-bit PCRE library (-lpcre32 on many systems).
--libs-cpp
Writes to the standard output the command line options required to link with PCRE's C++ wrapper library (-lpcrecpp -lpcre on many
systems).
--libs-posix
Writes to the standard output the command line options required to link with PCRE's POSIX API wrapper library (-lpcreposix -lpcre
on many systems).
--cflags Writes to the standard output the command line options required to compile files that use PCRE (this may include some -I options,
but is blank on many systems).
--cflags-posix
Writes to the standard output the command line options required to compile files that use PCRE's POSIX API wrapper library (this
may include some -I options, but is blank on many systems).
SEE ALSO pcre(3)AUTHOR
This manual page was originally written by Mark Baker for the Debian GNU/Linux system. It has been subsequently revised as a generic PCRE
man page.
REVISION
Last updated: 24 June 2012
PCRE 8.30 01 January 2012 PCRE-CONFIG(1)