09-18-2009
Finding missing files that are named sequentially with Perl?
Thank you radoulov ... your code was exactly what I needed.
This will make life easier while I learn Perl.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi Gurus,
i have to transfer files one by one from ftp server to target server
all files which is to be transferred lies in one ftp folder
i have to move those files sequentially from ftp to target and must verify files for successful transmission .
then i have to delete corresponding... (1 Reply)
Discussion started by: harim
1 Replies
2. Shell Programming and Scripting
I have an application consisting of a number of perl files. I want to find those perl files that have no documentation yet, so I tried the following from the root level of the directory where the application resides:
perldoc -r *
The output is something like the following:
No documentation found... (2 Replies)
Discussion started by: figaro
2 Replies
3. Shell Programming and Scripting
I have a list containing strings. All strings should have either "smp" or "drw" else it is considered an error. I have written this code below. Any better ideas to tackle this?
set fdrw = 0
set fsmp = 0
foreach f ($Lst)
set fdrwtag = `echo $f | awk '/drw/'`
set fsmptag = `echo $f | awk... (1 Reply)
Discussion started by: kristinu
1 Replies
4. Shell Programming and Scripting
I have got an Perl array like:
@array = (1,2,3,4,5,6,1,2,3,4,1,2,1,2,3,4,5,6,7,8,9...............)
This numeric sequence will be always sequentially increasing, unless it encounters, The beginning of the new sequentially increasing numeric sequence.
SO in this array we get sequentially... (5 Replies)
Discussion started by: teknokid1
5 Replies
5. Red Hat
hello everyone,
I have install centos 5 recently.The file /etc/named.conf not found. I have installed BIND using yum. so now what to do ?? should i create named.conf file manually ???
please help me.
thanks,
sharlin. :) (1 Reply)
Discussion started by: sharlin
1 Replies
6. Shell Programming and Scripting
I would really appreciate any assistance that I can get here.
I am fairly new to perl. I am trying to rewrite my shell scripts to perl.
Currently I have a shell script (using sed, awk, grep, etc) that gets a list of all of the zone files in a directory and then looks in named.conf for what... (0 Replies)
Discussion started by: brianjb
0 Replies
7. Shell Programming and Scripting
Hello, I am a very novice user of awk, I have a set of files named file001, file002, file003, file004, etc., each contains four fields (columns of data) separated each by a uneven number of spaces. I want to substitute those spaces by a TAB, so I am using this line of awk script:
awk -v OFS="\t"... (4 Replies)
Discussion started by: jaldo0805
4 Replies
8. Shell Programming and Scripting
Dear Help,
I have an input file which looks like below
002 1000 2000 3000
003 2000 3000 4000
005 1000 2000 6000
I would like to have an output which inserts the missing number in sequential sorting as shown below...
001 0 0 0
002 1000 2000 3000
003 2000 3000 4000
004 0 0 0
005 1000... (5 Replies)
Discussion started by: Indra2011
5 Replies
9. Shell Programming and Scripting
Hello team,
We wish to develop a script as follows :
1. Rename multiple files in the following way:
example
Original file names : test.txt and dummy.txt
New file names : test.$(date +"%F").AAAAA<serialno_1>.BBBBBB.p and dummy.$(date +"%F").AAAAA<serialno_2>.BBBBBB.p
2. The... (3 Replies)
Discussion started by: H squared
3 Replies
10. UNIX for Beginners Questions & Answers
Greetings!
Been a while since I futzed around with Perl, and came upon a minor headscratcher for the community ;)
Here's the basic code which I'm trying to make tick over:#!/usr/bin/perl
use strict;
use warnings;
use diagnostics;
print " starting ";
while (-e "~/.somedir/testFile")... (9 Replies)
Discussion started by: LinQ
9 Replies
LEARN ABOUT DEBIAN
catalyst::manual
Catalyst::Manual(3pm) User Contributed Perl Documentation Catalyst::Manual(3pm)
NAME
Catalyst::Manual - The Catalyst developer's manual
SYNOPSIS
perldoc Catalyst::Manual::Intro
perldoc Catalyst::Manual::Tutorial
SEE ALSO
Install Task::Catalyst::Tutorial to install all the dependencies you need to follow along with the Tutorial. You can also refer to
Catalyst::Manual::Tutorial::Intro for more information on installation options.
Some "Getting Started" Links:
o Catalyst::Manual::About
o Catalyst::Manual::Intro
o Catalyst::Manual::Tutorial
o Catalyst::Manual::Actions
o Catalyst::Manual::Cookbook
o Catalyst::Manual::DevelopmentProcess
o Catalyst::Manual::ExtendingCatalyst
o Catalyst::Manual::Internals
o Catalyst::Manual::Plugins
Books
For additional information on Catalyst, there are currently two books available:
o The Definitive Guide to Catalyst: Writing Extendable, Scalable and Maintainable PerlXBased Web Applications
By: Kieren Diment, Matt Trout Available July 12, 2009 ISBN 10: 1-4302-2365-0 ISBN 13: 978-1-4302-2365-8
http://www.apress.com/book/view/9781430223658
o Accelerating Perl Web Application Development
By: Jonathan Rockway Published December, 2007 ISBN 10: 1847190952 ISBN 13: 978-1-847190-95-6
http://www.packtpub.com/catalyst-perl-web-application/book
AUTHORS
Catalyst Contributors, see Catalyst.pm
COPYRIGHT
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-05-03 Catalyst::Manual(3pm)