Blasted data inputters :mad: they always have to screw my data up....My comma delimited file with three fields ( firstname,surname and address ) has been screwed up by people entering addresses like this (putting a comma in between the house number and the street name)
142,Stonewall Avenue
... (8 Replies)
I want to add the delimiter in particular positions in one txt file.
My file is :
123450000000000testing
898983920202020testfil
.
.
.
1-5 -- after 5th position add ,
6-10 -- after 10th position add ,
11-7 -- like wise..
Expecting output is:
12345,0000000000,testing... (5 Replies)
Hi,
We have a file with a unit seperator as the delimeter.
Here are the Sample lines from the file:
ASIA/PACIFICHong KongFX2007071080900
ASIA/PACIFICHong KongFX2007071080900/ 800129HK
This delimeter has the ascii value of \037.
I have to... (4 Replies)
I have a file containing about 5 million rows, in the file there are some records which has extra delimiter at random position. (we dont know the positions), now we have to Count the delimeter from each row and if the count of delimeter is not matching then I want to delete those rows from the... (5 Replies)
Hi,
I have a file below
I want to attach an end delimeter '{}' after the time stamp
input file
22113350444356|Status:Assigned,Notes:
APP PRD |Sep 28 2011 12:12:55:660PM
22113350398356|Status:Assigned,Notes:
APP PRD |Sep 28 2011 12:12:55:660AM
22113350621356|Status:Assigned,Notes:... (6 Replies)
hi
if comma delimeter missing in columns treat them as bad file and if it is not then gudfiles. only checking columns not data.
id,name,sal,deptno =======> gudfile
1,awa,200,10
2,aba,100,20
3,cdc,300,30
idname,sal,deptno ========> badfile since its missing (.)... (8 Replies)
Hi Friends,
I have a file as below
source.txt
12345JackYKing32N
1235 JulyYoig 31N
i am using cut command for cutting the fields
cut -c 1-5 source.txt
12345
1235
like above i have to use each time to cut all the fieds manually. I have a file(pre.txt) which tells... (3 Replies)
Hi All,
I have an awk command that uses the substr function - At the moment I know the length of the values so can use the example below i.e substr(i,0,1)
However in future these lengths may change so wondered if you can use a delimiter within a substr? Like in bash you could use cut -d ';',... (6 Replies)
Hi,
Need help on replacing every second instance of delimeter.
Scenario:
var="Name1,Value1,Name2,Value2,Name3,Value3,Name4,Value"
I want every second "," to replace with "|"
I tried like below
echo $var| sed 's/,/|/2'
But, it's not working.
Expected output:
... (4 Replies)
Hi Team
below test file contains tab delimeter file and i am excepting the number of files 3.
File : test.txt
a b c
awk -vFPAT='\t' -vOFS="\t" -v a="0" -v b="10" ' NR>a {if (NF != b ) print NR"@"NF }' test.txt
current output is
1@2
required output is
1@3
Cloud you please help... (7 Replies)
Discussion started by: bmk123
7 Replies
LEARN ABOUT DEBIAN
dirfile2ascii
dirfile2ascii(1) GETDATA dirfile2ascii(1)NAME
dirfile2ascii -- output dirfile database vectors as ASCII text
SYNOPSIS
dirfile2ascii [ OPTION ]... DIRFILE
[ [ -a | -A | -e | -E | -F | -g | -G | -o | -i | -u | -x | -X ] FIELD ]...
DESCRIPTION
Fetches data from a dirfile(5) database specified by DIRFILE and writes it as ASCII to standard output. Any number of vector FIELDs may be
specified. Each specified field is printed in a separate column.
Mandatory arguments to long options are mandatory for short options too.
-d, --delimeter=delim
separate columns by delim. (Default: a single space.)
-f, --first-frame=first_frame-last_frame
read from frame first_frame to frame last_frame (inclusive).
-f, --first-frame=first_frame:nframes
equivalent to --first-frame=first_frame --num-frames=nframes.
-f, --first-frame=first_frame
If first_frame >= 0, start reading at frame first_frame. If first_frame is -1 and --num-frames=nframes is specified, read the last
nframes frames. If --first-frame is not specified, reading starts at frame zero.
-n, --num-frames=nframes
read at most nframes frames. If not specified, or if nframes = 0, all frames to the end-of-field are read.
-p, --precision=format
use format to format output. format may contain any of the flag characters, a field width, and/or a precision as specified in
printf(3). It may not contain a length modifier.
-q, --quiet
don't write diagnostic messages on standard error. (This is the default behaviour).
-s, --skip=frame_skip
if frame_skip > 0, output only one sample for every frame_skip frames.
-v, --verbose
write diagnostic messages on standard error.
-z, --fill=STRING
Fill columns which go past the end of their corresponding field with the string STRING. The default behaviour is to fill columns
with floating-point conversions with NaN and columns with integer conversion with 0, which mirrors what occurs when an attempt is
made to print data from before the start of a field. (Note: the default behaviour cannot be reproduced with this option, since
STRING is applied to all columns, regardless of conversion type.)
In addition to the above, each FIELD argument may be preceded by a short option, one of: -a, -A, -e, -E, -F, -g, -G, -i, -o, -u, -x, -X,
indicating the conversion to be used. See printf(3) for the meaning of these conversion specifiers. The output flags, width, and preci-
sion may be specified by using --precision. If no conversion specifier is given, %f is used.
For conversion specifiers %a, %A, %e, %E, %f, %F, %g, %G, data is read from the dirfile as double precision floats. For conversion speci-
fier %i, data is read as 64-bit signed integers. For conversion specifiers %o, %u, %x, %X, data is read as 64-bit unsigned integers.
LIMITATIONS
No native support for printing complex data is provided. This may be worked around by using dirfile(5) representation suffixes. For exam-
ple, the command
$ dirfile2ascii DIRFILE FIELD.r FIELD.i
will print the real and imaginary parts of the complex valued field FIELD in the first and second columns, respectively.
SEE ALSO dirfile(5), printf(3)Version 0.7.1 30 November 2010 dirfile2ascii(1)