1. begin != BEGIN --- typo, Thank you!
2. '>' != '>>' --- it is right '>' != '>>', but using '>' is better than '>>' in this thread.
3. depending on the inital assumptions: is it the string 'Header' that segregate the records or is there some other record segregation logic --- agree, hope Jtrinh can talk more about the rule of the file.
How do I loop through the lines of a file?
Each line of the file will be the name of a server.
Like:
server1.stuff.com
server2.stuff.com
For each server I want to do a secure copy of the file to the other server.
This will be a cron job so I guess it needs to run in just SH. I... (3 Replies)
Below is part of a script i have written to loop through part of a port info file. How do i continue the script to get info for OS Device Name, manufacturer and then put information into an array?
HBA Port WWN: 10000000c9420b4b
OS Device Name: /dev/cfg/c10
Manufacturer: Emulex... (5 Replies)
NEWBIE ALERT!
Hi,
I'm 1 month into learning Perl and done reading "Minimal Perl" by Tim Maher (which I enjoyed enoumously). I'm not a programmer by profession but want to use Perl to automate various tasks at my job. I have a problem (obviously) and are looking for your much appreciated help.... (0 Replies)
Hi All,
Following is the program that i have written in cygwin. The redirection of the unfound $param1 to error.txt file doesnt work.Can any one help?
#!/usr/bin/sh
fname=$1
sed 's/ //g' "$fname" > fname1
while read i
do
echo $i > file1
#param1 is script name
... (1 Reply)
Hi Dears,
I use the below code to analyze lines in a file:
for line in `cat ucsv`
do
echo $line
//analyze statements
donehowever, if line contains space char, it will be broken. for example, if file content is:
#login,full name,email,project,role,action
gmwen,Bruce... (3 Replies)
Hello, I have a comma seperated data sheet with multiple fields of biological data. One column contains the ID name of the sample, where there could be more than one sample separated by a comma. I would like a script that reads this field, and for each sample ID, copies the entire line and writes... (18 Replies)
Hey everyone!
I have a tab delimited data set which I want to create an output contained the calculation of number of those lines with a certain value in 2nd and 3rd column.
my input file is like this:
ID1 1 10M AAATTTCCGG
ID2 5 4M ACGT
ID3 5 8M ACCTTGGA
ID4 5 ... (7 Replies)
Good Afternoon,
I start with a file named biglist.txt.
I have another file smallerlist. txt
I want to remove the lines from smallerlist.txt from biglist.txt and leave those lines that do not reside in smallerlist.txt.
Thanks !! (2 Replies)
I've tried numerous commands, but I am not sure how to use sed in a loop. This is what I have:
VARZ contains CARD_FILE_LIST and it also contains CARD_FILE_LIST2
so
echo "$VARZ"
CARD_FILE_LIST
CARD_FILE_LIST2
I have a file with 60 lines in /tmp/testfile it and I want those lines deleted... (3 Replies)
Discussion started by: newbie2010
3 Replies
LEARN ABOUT DEBIAN
debian::copyright::stanza::header
Debian::Copyright::Stanza::Header(3pm) User Contributed Perl Documentation Debian::Copyright::Stanza::Header(3pm)NAME
Debian::Copyright::Stanza::Header - header stanza of Debian copyright file
VERSION
This document describes Debian::Copyright::Stanza::Header version 0.1 .
SYNOPSIS
my $copy = Debian::Copyright::Stanza::Header->new(\%data);
print $copy; # auto-stringification
DESCRIPTION
Debian::Copyright::Stanza::Header can be used for representation and manipulation of the header stanza of Debian copyright files in an
object-oriented way. Converts itself to a textual representation in string context.
FIELDS
The supported fields for header stanzas are listed below.
Note that real copyright fields may contain dashes in their names. These are replaced with underscores.
Format_Specification
Name
X_Comment
Maintainer
Source
CONSTRUCTOR
new
new( { field => value, ... } )
Creates a new Debian::Copyright::Stanza::Header object and optionally initialises it with the supplied data.
SEE ALSO
Debian::Copyright::Stanza::Header inherits most of its functionality from Debian::Copyright::Stanza
COPYRIGHT & LICENSE
Copyright (C) 2011 Nicholas Bamber nicholas@periapt.co.uk
This module is substantially based upon Debian::Control::Stanza::Source. Copyright (C) 2009 Damyan Ivanov dmn@debian.org
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
perl v5.12.4 2011-08-27 Debian::Copyright::Stanza::Header(3pm)