Hello,
I am trying to use the awk getline command to populate an array from a flat file.
Has anyone done this before?
So we have file1:
a
b
c
d
I want to create an array like index that contains these four elements (8 Replies)
Im using awk and I want the output filename to contain the first field of the input file.
Ex.
1 dddd wwwww
1 eeeee wwww
1 wwww eerrrr
2 eeee eeeeee
I want the output files to be xxx1 and xxx2
Thank you (4 Replies)
Hi Guys,
I'm new to this forum as well as to UNIX shell scripting.
I'm looking for a shellscript to query an Oracle database table and populate the result set of the query in a text file.
Could you someone help me out with a sample code?
Thanks,
Bhagat (7 Replies)
Hi all,
I have a list of xml file. I need to split the files to a different files when see the <ko> tag.
The list of filename are
B20090908.1100-20090908.1200_CDMA=1,NO=2,SITE=3.xml
B20090908.1200-20090908.1300_CDMA=1,NO=2,SITE=3.xml
B20090908.1300-20090908.1400_CDMA=1,NO=2,SITE=3.xml
... (3 Replies)
Hi,
Can anyone kindly provide some information about how to populate the subject field of the email while using the sendmail utility ? Itried the following command line argument :
echo -e "Body of the email" | /usr/lib/sendmail -f from@from.com -t to@to.com -s " Subject of the email"
... (4 Replies)
Hi,
I've internally searched through forums for about 2+ hours. Unfortunately, with no luck. Although I've found some cases close to mine below, but didn't help so much.
Actually, I'm in short with time. So I had to post my case. Hoping that you can help.
I have 2 files,
FILE1
... (0 Replies)
Hi,
I've internally searched through forums for about 2+ hours. Unfortunately, with no luck. Although I've found some cases close to mine below, but didn't help so much.
Actually, I'm in short with time. So I had to post my case. Hoping that you can help.
I have 2 files,
FILE1
... (1 Reply)
hi,
i have some 37 files having a file name pattern 'stg*' which are tilde delimited files. the requirement is i need to fetch two columns
field1:filename
field2:first field of each file....
for example
if i have a file like stg_2345.txt having a content
1~2~3
4~5~6
another file... (3 Replies)
Hi Guys,
I've got a script that runs and collects statistics from one of our machines and outputs the data into a csv file. Now, that script runs fine and I managed to create another one (with a lot of help from this forum!!) to trim the csv file down to all the data that I need, rather than all... (9 Replies)
I have a .CSV file (file.csv) whose data are all enclosed in double quotes. Sample format of the file is as below:
column1,column2,column3,column4,column5,column6, column7, Column8, Column9, Column10
"12","B000QRIGJ4","4432","string with quotes, and with a comma, and colon: in... (3 Replies)
Discussion started by: dhruuv369
3 Replies
LEARN ABOUT DEBIAN
paranoid::log::file
Paranoid::Log::File(3pm) User Contributed Perl Documentation Paranoid::Log::File(3pm)NAME
Paranoid::Log::File - File Logging Functions
VERSION
$Id: File.pm,v 0.83 2010/04/15 23:23:28 acorliss Exp $
SYNOPSIS
use Paranoid::Log;
enableFacility('events', 'file', 'debug', '+', $filename);
DESCRIPTION
This module logs messages to the log files, and is safe for use with forked children logging to the same files. Each child will open their
own filehandles and use advisory locking for writes.
This module should not be used directly, Paranoid::Log should be your exclusive interface for logging.
SUBROUTINES /METHODS
NOTE: Given that this module is not intended to be used directly nothing is exported.
init
log
remove
dump
DEPENDENCIES
o Fcntl
o Paranoid::Debug
o Paranoid::Filesystem
o Paranoid::Input
SEE ALSO
o Paranoid::Log
BUGS AND LIMITATIONS
This isn't a high performance module when dealing with a high logging rate with high concurrency. This is due to the advisory locking
requirement and the seeks to the end of the file with every message. This facility is intended as a kind of lowest-common demoninator for
programs that need some kind of logging capability.
AUTHOR
Arthur Corliss (corliss@digitalmages.com)
LICENSE AND COPYRIGHT
This software is licensed under the same terms as Perl, itself. Please see http://dev.perl.org/licenses/ for more information.
(c) 2005, Arthur Corliss (corliss@digitalmages.com)
perl v5.14.2 2010-04-15 Paranoid::Log::File(3pm)