MSG="THERE WERE XX RECORDS IN ERROR TABLE,AAAA, WHEN LOADING THE BBBB TABLE WITH EXTRACT FROM CCCC INTO TABLES FOR , DATABASE DDDD."
echo "$MSG" > /tmp/mplanmsg.$$.out
I wan to replace XX with the content in $recordXX
cat /tmp/mplanmsg.$$.out|sed 's/XX/\$recordXX/g'| sed... (3 Replies)
Hello,
Despite reading the Pattern Matching chapter in the O'Reilly Sed & Awk book several times and
looking at numerous examples, I cannot seem to get any kind of conditional script to work in my awk scripts!
I am able to do the basic awk and grep script to capture the data but when I do with... (0 Replies)
Hi,
I have a file which contains a word like ravi and ravi30.
i want to replace only the word ravi with xxx for that i am using the below sed command
sed -e 's/ravi/xxx/g' .
but the above command out put is xxx and xxx30 but i dont need to change ravi30
please guide me how to proceed.... (4 Replies)
All,
I have the following file:
--------------------------------------
#
# /etc/pam.d/common-password - password-related modules common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of modules that define the services... (2 Replies)
I have written a script to parse data from some files on a Solaris 10 system and send the output to a CSV formatted file. The code snipped i am using to pull the data is as follows....
src_line=$(sed -n "/^search_pattern$/{=;}" $file)
for i in $src_line
do
start_line1=$(( i + 9 ))
nawk -v... (4 Replies)
Dear Unix Forums,
I am hoping you can help me with a pattern matching problem.
What am I trying to do?
I want to replace multiple lines of a text file (that match a multi-line pattern) with a single line of text. These patterns can span several lines and do not always have the same number of... (10 Replies)
'Hi
I'm using the following code to extract the lines(and redirect them to a txt file) after the pattern match. But the output is inclusive of the line with pattern match.
Which option is to be used to exclude the line containing the pattern?
sed -n '/Conn.*User/,$p' > consumers.txt (11 Replies)
Hi All
I am having one awk and sed requirement for the below problem.
I tried multiple options in my sed or awk and right output is not coming out.
Problem Description
###############################################################
I am having a big file say file having repeated... (4 Replies)
Discussion started by: kshitij
4 Replies
LEARN ABOUT DEBIAN
audio::wma
WMA(3pm) User Contributed Perl Documentation WMA(3pm)NAME
Audio::WMA - Perl extension for reading WMA/ASF Metadata
SYNOPSIS
use Audio::WMA;
my $wma = Audio::WMA->new($file);
my $info = $wma->info();
foreach (keys %$info) {
print "$_: $info->{$_}
";
}
my $tags = $wma->tags();
foreach (keys %$tags) {
print "$_: $tags->{$_}
";
}
DESCRIPTION
This module implements access to metadata contained in WMA files.
METHODS
o new( $file )
Create a new Audio::WMA instance from the data in $file
o info( )
Get the audio data information in the form of a hash ref.
o tags( )
Get the metadata / tag information in the form of a hash ref.
o stream( )
Get the current ASF stream.
o parseObject( $asf )
Parse a standalone ASF object.
o setDebug( 0 | 1 )
Toggle debugging.
o setConvertTagsToUTF8( 0 | 1 )
Toggle Encoding metadata tags as UTF-8
Toggle debugging.
SEE ALSO
Audio::FLAC::Header, <http://getid3.sf.net/>
http://github.com/dsully/perl-audio/tree/master/Audio-WMA
AUTHOR
Dan Sully, <daniel | at | cpan.org>
COPYRIGHT AND LICENSE
Copyright 2003-2008 by Dan Sully & Logitech.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.0 2008-11-29 WMA(3pm)