Thanks nezabudka for your response. Your code yielded a very close results - only thing is that the update column value is not 12 bytes long (like the original).
Also, if I read your code correctly, you are looking for a "DR" string - it doesn't always have to be DR - could be something else. Also, what would happen if DR value appears in a different column position.
Hi, I have two input files.
File1:
ID Name Place
1-234~name1~Newyork
1-34~name2~Boston
1-2345~name3~Hungary
File1 is a variable length file where each column is seperated by delimitter "~".
File2:
ID Country
1-34<<11 SPACES>>USA<<7 spaces>>
1-234<<10 SPACES>>UK<<8... (5 Replies)
Col1 Col2 Col3 Col4
12 Completed 08 0830
12 In Progress 09 0829
11 For F U 07 0828
Considering the file above, how could i replace the third column the most efficient way? The actual file size is almost 1G. I am... (10 Replies)
Hi, Iam new to unix. I have one input file .
Input file :
ID1~Name1~Place1
ID2~Name2~Place2
ID3~Name3~Place3
I need output such that only first column should change to fixed width column of 15 characters of length.
Output File:
ID1<<12 spaces>>Name1~Place1
ID2<<12... (5 Replies)
Dear friends,
Below is my program and current output. I wish to have 3 or 4 column output in order to accomodate in single page. i do have subsequent command to process after user enter the number.
Program
COUNT=1
for MYDIR in `ls /`
do
VOBS=${MYDIR}
echo "${COUNT}. ${MYDIR}"
... (4 Replies)
Hi,
How to output the duplicate record to another file. We say the record is duplicate based on a column whose position is from 2 and its length is 11 characters.
The file is a fixed width file.
ex of Record:
DTYU12333567opert tjhi kkklTRG9012
The data in bold is the key on which... (1 Reply)
Hi,
I have a fixed width text file without any header row. One of the columns contains a date in YYYYMMDD format.
If the original file contains 3 dates, I want my shell script to split the file into 3 small files with data for each date.
I am a newbie and need help doing this. (14 Replies)
I have a fixed with file with header & trailer length having the same length of the detail record file.
The details record length of this file is 24, for Header and Trailer the records will be padded with spaces to match the record length of the file
Currently I am adding 3 spaces in header... (14 Replies)
hi,
i have a fixed width file with multiple columns and need to print data using awk command.
i use: awk -F "|" '($5 == BH) {print $1,$2,$3}' <non_AIM target>.txt for a delimiter file.
but now i have a fixed width file like below:
7518 8269511BH 20141224951050N8262
11148 8269511BH... (5 Replies)
Hi All,
I am trying to select the rows in a fixed width file based on values in the columns.
I want to select only the rows if column position 3-4 has the value AB
I am using cut command to get the column values. Is it possible to check if cut -c3-4 = AB is true then select only that... (2 Replies)
Discussion started by: ashok.k
2 Replies
LEARN ABOUT DEBIAN
software::license
Software::License(3pm) User Contributed Perl Documentation Software::License(3pm)NAME
Software::License - packages that provide templated software licenses
VERSION
version 0.103004
SYNOPSIS
my $license = Software::License::Discordian->new({
holder => 'Ricardo Signes',
});
print $output_fh $license->fulltext;
METHODS
new
my $license = $subclass->new(\%arg);
This method returns a new license object for the given license class. Valid arguments are:
holder - the holder of the copyright; required
year - the year of copyright; defaults to current year
new_from_short_name
my $license = Software::License -> new_from_short_name(
{ short_name => 'GPL-1', %arg }
);
This constructor will return the correct subclass depending on "short_name" value.
year
holder
These methods are attribute readers.
name
This method returns the name of the license, suitable for shoving in the middle of a sentence, generally with a leading capitalized "The."
url
This method returns the URL at which a canonical text of the license can be found, if one is available. If possible, this will point at
plain text, but it may point to an HTML resource.
notice
This method returns a snippet of text, usually a few lines, indicating the copyright holder and year of copyright, as well as an indication
of the license under which the software is distributed.
license
This method returns the full text of the license.
fulltext
This method returns the complete text of the license, preceded by the copyright notice.
version
This method returns the version of the license. If the license is not versioned, this method will return false.
meta_name
This method returns the string that should be used for this license in the CPAN META.yml file, according to the CPAN Meta spec v1, or undef
if there is no known string to use.
This method may also be invoked as "meta_yml_name" for legacy reasons.
meta2_name
This method returns the string that should be used for this license in the CPAN META.json or META.yml file, according to the CPAN Meta spec
v2, or undef if there is no known string to use. If this method does not exist, and "meta_name" returns open_source, restricted,
unrestricted, or unknown, that value will be used.
summary
This method returns a summary of the license. This summary must contains refer to a file containing the whole license. On Debian system,
the file containing the whole license will be in "/usr/share/common-licenses/" directory.
LOOKING UP LICENSE CLASSES
If you have an entry in a META.yml or META.json file, or similar metadata, and want to look up the Software::License class to use, there
are useful tools in Software::LicenseUtils.
TODO
o register licenses with aliases to allow $registry->get('gpl', 2);
SEE ALSO
The specific license:
o Software::License::AGPL_3
o Software::License::Apache_1_1
o Software::License::Apache_2_0
o Software::License::Artistic_1_0
o Software::License::Artistic_2_0
o Software::License::BSD
o Software::License::CC0
o Software::License::FreeBSD
o Software::License::GFDL_1_2
o Software::License::GPL_1
o Software::License::GPL_2
o Software::License::GPL_3
o Software::License::LGPL_2_1
o Software::License::LGPL_3_0
o Software::License::MIT
o Software::License::Mozilla_1_0
o Software::License::Mozilla_1_1
o Software::License::None
o Software::License::OpenSSL
o Software::License::Perl_5
o Software::License::QPL_1_0
o Software::License::SSLeay
o Software::License::Sun
o Software::License::Zlib
AUTHOR
Ricardo Signes <rjbs@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-03-23 Software::License(3pm)