Hi,
I have a small requirement where i need to sum up a column in a text file.
Input file
66ab 000000 534385 -00000106350.00
66cd 000000 534485 -00013364511.00
66ad 000000 534485 -00000426548.00
672a 000000 534485 000000650339.82... (5 Replies)
Hi Guys,
I have text file which is tab/space separated but I want it to re-format into a comma separated and trim the spaces in between. Can someone spare me a perl or sed script that can do the job?
INPUT FILE:
500010245623 500 21-APR-11 05.58.21 PM ... (14 Replies)
I have a log file that contains several reports with following format.
<Start of delimiter> Report1 header
Report1 header continue
Report1 header continue
Record1 header
Record1 header continue
Record1 header continue
field1 field2 field3 field4
------... (1 Reply)
Hello,
I have some data in a text file where fields are separated by blank lines. There are only 6 fields however some fields have several lines of data as I will explain. Also data in a particular field is not consistently the same size but does end on a blank line. The first field start with... (6 Replies)
Hi,
I have a large number of files which are written as csv (comma-separated values).
Does anyone know of simple sed/awk command do achieve this?
Thanks!
---------- Post updated at 10:59 AM ---------- Previous update was at 10:54 AM ----------
Guess I asked this too soon. Found the... (0 Replies)
Hi,
I need help to split a long text in a column which is separated by ; and i need to print them out in multiple columns. My input file is tab-delimited and has 11 columns as below:-
aRg02004 21452 asdfwf 21452 21452 4.6e-29 5e-29 -1 3 50 ffg|GGD|9009 14101.10 High class -node. ; ffg|GGD|969... (3 Replies)
I have a file containing multiple values, some of them are pipe separated which are to be read as separate values and some of them are single value all are these need to store in variables.
I need to read this file which is an input to my script
Config.txt
file name, first path, second... (7 Replies)
Hello ppl
I have a requirement to split (cut in unix) a file (A.txt) which is a pipe delimited file into A1.txt and A2.txt
Now I have to join (paste in unix) this A2.txt with external file A3.txt to form
output file A4.txt which should be CSV (comma separated file) so that third party can... (25 Replies)
I'd like to take the output of `pwsafe --exportdb > database.txt` and convert it to a KeePassX XML friendly format (feature request in pwsafe).
I found flat file converter but the syntax is beyond me with this example. Solutions are welcomed.
More details
Here is the pwsafe --> KeePassX XML... (2 Replies)
hi all,
trying this using shell/bash with sed/awk/grep
I have two files, one containing one column, the other containing multiple columns (comma delimited).
file1.txt
abc12345
def12345
ghi54321
...
file2.txt
abc1,text1,texta
abc,text2,textb
def123,text3,textc
gh,text4,textd... (6 Replies)
Discussion started by: shogun1970
6 Replies
LEARN ABOUT DEBIAN
dwfilter
dwfilter(1) reformat text for processing dwfilter(1)NAME
dwfilter - reformat text with dwdiff for further processing
SYNOPSIS
dwfilter [OPTIONS] <OLD FILE> <NEW FILE> <POST PROCESSOR> [POST PROCESSOR OPTIONS]
DESCRIPTION
dwfilter reformats the text in the old file according to the contents of the new file (or vice versa) and subsequently passes the refor-
mated old file and the new file through a secondary filter. It's main use is to allow visual diff programs such as meld and kdiff3 to be
used, eventhough a text file has been reformated after editing. A further use is to allow the creation of small patches even when the new
text has been reformated. dwfilter uses dwdiff for reformatting.
OPTIONS -r, --reverse
Reformat the new file based on the contents of the old file instead of the default where the old file is reformated based on the
contents of the new file.
dwfilter accepts the following dwdiff options:
-d <delimiters>, --delimiters=<delimiters>
-P, --punctuation>
-W <whitespace>, --whitespace=<whitespace>
-i, --ignore-case
-I, --ignore-formatting
-D <option>, --diff-option=<option>
-C<num>, --context=<num>
-m<num>, --match-context=<num>
--aggregate-changes
--wdiff-output
See the dwdiff manual page for the meaning.
A single dash (-) as a file can be used to denote standard input. Only one file can be read from standard input. To stop dwfilter from
interpreting file names that start with a dash as options, one can specify a double dash (--) after which dwfilter will interpret any fol-
lowing arguments as files to read.
BUGS
If you think you have found a bug, please check that you are using the latest version of dwdiff [http://os.ghalkes.nl/dwdiff.html]. When
reporting bugs, please include a minimal example that demonstrates the problem.
AUTHOR
G.P. Halkes <dwdiff@ghalkes.nl>
COPYRIGHT
Copyright (C) 2006-2010 G.P. Halkes
dwdiff is licensed under the GNU General Public License version 3.
For more details on the license, see the file COPYING in the documentation directory. On Un*x systems this is usually
/usr/share/doc/dwdiff-2.0.4.
SEE ALSO dwdiff(1), diff(1), meld(1), kdiff3(1)Version 2.0.4 12-06-2012 dwfilter(1)