Can this be done and if yes how?
I have 10 directories that end with the name 'cuff'
eg dir1-cuff , dir2-cuff
All these directories have a file named xyz.gtf
How do I run the same code for each directory and print an output inside the directory
something like
for dir in *cuff... (3 Replies)
Hi everybody,
I had 10 files in in one folder(/home/sai/) namely sai.
1.gz,2.gz,3.gz ..,10.gz.
I want to delete the files which are there home based on the following conditions
fliecount in sai folder==10 && grep -cv ".gz"==0
How to check this using awk?
Otherwise please... (2 Replies)
Hello Gyues!
I would like to use awk to perform data extraction from several files. The data files look like this:
DWT26R 1 PEP1 CA 1 OH2 SKIPPED: 0 STEP: 1
0.29000E+01 0.55005E-02 0.60012E-03
0.30000E+01 0.11149E+00 0.13603E-01
0.31000E+01 0.39719E+00 0.63013E-01
0.32000E+01... (9 Replies)
Hey everybody, I have a script for making a string substitution in a file. I am trying to modify it in order to make the same modifcation to multiples files. here is what I have so far.
#!/bin/csh
set p1="$1"
shift
set p2="$1"
shift
foreach x ($*)
if ( { grep -w -c "$p1" $x } ) then
mv... (7 Replies)
Hello,
I would like to delete all the footnotes in all my htm files. Hence, I have to delete the whole font tag pairs, i.e. deleting everything between the begin/end font tags.
I create a testfile, of which data parts of all four lines are the same except for the number of font tag pairs,... (3 Replies)
Hi,
There is this requirement to create multiple work sheets in an MS Excel file through UNIX.
We normally can create one work sheet in unix by either tab or comma delimiting and appending .xls or .csv to the file name, but can we create multiple work sheets.
Regards,
Puspendu (1 Reply)
Audio::APE(3pm) User Contributed Perl Documentation Audio::APE(3pm)NAME
Audio::APE - An object-oriented interface to Monkey's Audio file information and APE tag fields.
SYNOPSIS
use Audio::APE;
my $mac = Audio::APE->new("song.ape");
foreach (keys %$mac) {
print "$_: $mac->{$_}
";
}
my $macTags = $mac->tags();
foreach (keys %$macTags) {
print "$_: $macTags->{$_}
";
}
DESCRIPTION
This module returns a hash containing basic information about a Monkey's Audio file, as well as tag information contained in the Monkey's
Audio file's APE tags.
CONSTRUCTORS
o new( $filename )
Opens a Monkey's Audio file, ensuring that it exists and is actually an Monkey's Audio stream, then loads the information and comment
fields.
INSTANCE METHODS
o info( [$key] )
Returns a hashref containing information about the Monkey's Audio file from the file's information header.
The optional parameter, key, allows you to retrieve a single value from the info hash. Returns "undef" if the key is not found.
o tags( [$key] )
Returns a hashref containing tag keys and values of the Monkey's Audio file from the file's APE tags.
The optional parameter, key, allows you to retrieve a single value from the tag hash. Returns "undef" if the key is not found.
NOTE
This module is now a wrapper around Audio::Scan.
SEE ALSO
<http://www.monkeysaudio.com/>, Audio::Scan
AUTHOR
Dan Sully, <daniel@cpan.org>
Kevin Deane-Freeman, <kevindf at shaw dot ca>, based on other work by Erik Reckase, <cerebusjam at hotmail dot com>, and Dan Sully,
<daniel@cpan.org>
COPYRIGHT
Copyright (c) 2004, Kevin Deane-Freeman. Copyright (c) 2005-2007, Dan Sully & Slim Devices. Copyright (c) 2007-2010, Dan Sully.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.2 or,
at your option, any later version of Perl 5 you may have available.
perl v5.10.1 2010-12-25 Audio::APE(3pm)