I need to write a script that reads through an input .txt file and replaces the end value with the end value of the next line for lines that have distance <=4000. The first label line is not actually in the input. In the below example, 3217 is the distance from the end of the first line to the... (12 Replies)
Hi,
Is there any way to merge two lines based on specific occurance of a character in a file.
I am having a flat file which contains multiple records.
Each row in the file should contain specified number of delimiter.
For a particular row , if the delimiter count is not matched with... (2 Replies)
Hi,
I want to merge the lines starting with a comma symbol with the previous line of the file.
Input :
cat file.txt
name1,name2
,name3,name4
emp1,emp2,emp3
,emp4
,emp5
user1,user2
,user3
Output
name1,name2,name3,name4
emp1,emp2,emp3,emp4,emp5 (9 Replies)
hi,
I have a file as below:
Name: some_name
Date: some_date
Function Name: <some_function_name(jjjjjjjjj,
fjddddd, gggg, ggg)>
Changes:<Change A
more of change A>
Name: some_name
Date: some_date
Function Name: some_function_nameB(jjjjjjjjj,
fjddddd, gggg, ggg)
Changes:Change B... (15 Replies)
Hi ,
I'm looking for a way to merge two lines only for a given pattern / condition.
Input :
abcd/dad + -49.201 2.09 -49.5 34 ewrew rewtre *
fdsgfds/dsgf/sdfdsfasdd +
-4.30 0.62 -49.5 45 sdfdsf cvbbv *
sdfds/retret/asdsaddsa +
... (1 Reply)
Hi everyone,
I have two files (A and B) and want to combine them to one by always taking 10 rows from file A and subsequently 6 lines from file B. This process shall be repeated 40 times (file A = 400 lines; file B = 240 lines).
Does anybody have an idea how to do that using perl, awk or sed?... (6 Replies)
Thanks it worked for me. I have one more question on top of that. We had few records which were splitted in 2 lines instead of one. Now i identified those lines. The file is too big to open via vi and edit it. How can i do it without opening the file.
Suppose, I want line number 1001 & 1002 to... (2 Replies)
I have been working of this script for a very long time and I have searched the internet for direction but I am stuck here.
I have about 3000 files with two columns each. The length of each file is 50000. Each of these files is named this way b.4, b.5, b.6, b.7, b.8, b.9, b.10, b.11, b.12... (10 Replies)
Hello,
I have a file with few lines starting with a digit (1-5 only ) followed by a dot (.). Remaining all the lines to be merged with its previous numbered lines. Merging must be done with a space.
E.g.,
Source file:
3. abc def
xyz
5. pqr mno
def
4. jkl uvw
7. ghi
1. abc xyz
6. mno... (4 Replies)
Hello all,
I have a large csv file where there are four types of rows I need to merge into one row per person, where there is a column for each possible code / type of row, even if that code/row isn't there for that person.
In the csv, a person may be listed from one to four times... (9 Replies)
Discussion started by: RalphNY
9 Replies
LEARN ABOUT DEBIAN
ledgersmb::dbobject::taxform
LedgerSMB::DBObject::TaxForm(3pm) User Contributed Perl Documentation LedgerSMB::DBObject::TaxForm(3pm)NAME
LedgerSMB::DBObject::TaxFormm - Includes methods for saving and retrieving tax forms.
SYNOPSIS
This module includes methods for saving and retrieving tax forms, and running reports. The tax forms are for reporting purchases or sales
to tax bodies, and as of 1.3.0, the only tax forms officially included are those of the 1099-MISC and 1099-INT forms of the USA.
Currently there is no abstraction layer to allow replacing the various reports on the fly, but this will have to be implemented in the
future.
METHODS
save Saves the tax form. Inputs are:
form_name (required) The name of the form, eg, 1099-MISC
country_id (required) The id of the country
id (optional) The id of the tax form to overwrite
In the future it is likely that we will add a taxform_sproc_id too as part of an abstraction layer.
get($id)
Retrieves information on the tax form specified and merges it with the current object. Properties set are:
id ID of tax form
form_name Name of tax form (eg, 1099-MISC)
country_id ID of country attached to tax form
get_full_list
No inputs required. Provides a list of hashrefs (and attaches them to the form property of the object hashref).
Each hashref has the same properties as are set by get($id) above, but also includes country_name which is the full name of the country
(eg, 'United States').
Default ordering is by country name and then by tax form name.
get_forms
No inputs needed
Returns a list of hashrefs representing tax forms. Each hashref contains the same properties as from get() above. Default ordering is
by country id then tax form id.
get_metadata
Gets metadata for the screen.
Sets the following hashref properties
countries A list of all countries, for drop down box purposes.
default_country The default country of the organization, to set the dropdown box.
COPYRIGHT
Copyright (C) 2009 LedgerSMB Core Team. This file is licensed under the GNU General Public License version 2, or at your option any later
version. Please see the included License.txt for details.
perl v5.14.2 2012-03-25 LedgerSMB::DBObject::TaxForm(3pm)