Dear Folks :),
I am new to UNIX scripting and I do not know how can I insert some text in the first column of a UNIX text file at command promtp.
I can do this in vi editor by using this command :g/^/s//BBB_
e,g I have a file named as Test.dat and it containins below text:
michal... (4 Replies)
I have one text file which is result of bdf command that have 6 fields separated by space and I want to add one new column in the beginning which is the name of the server because I have to insert whole thing into oracle table consisting of 7 fields
THis is not a complete list but it looks... (9 Replies)
Hi, I need to edit a file Protein Data Bank (pdb) and then open that file with the program VMD but when I edit the file with awk, it changes pdb format and the VMD program can not read it.
I need to subtract 34 to field 6 ($ 6).
this is a pdb file :
ATOM 918 N GLY B 103 -11.855 8.675... (8 Replies)
I want to add a new column to a tab delimited text file. It will be the first column and it will just be 1's. How do I go about doing that? Thanks! (1 Reply)
I am very new to scripting and I know this request is simple but I am having no luck with it.
I have a file a.dat with the following data in it.
aa
bb
cc
dd
I need to run a script that will take each line of a.dat and put dsjc/ubin/ in front of each record, so the output looks like
... (2 Replies)
Hi,
I have a text file with many column (1,000,000+). I want to add a column of 0's as the third column. I tried:
awk '{$3=0}1' input file > output file
But it simply replaces the third column with 0's instead of adding a new column. How do I go about doing this? Thanks! (2 Replies)
Discussion started by: evelibertine
2 Replies
LEARN ABOUT DEBIAN
dbfadd
SHAPELIB(1) User Commands SHAPELIB(1)NAME
dbfadd - add a row to an xBase DBF file
SYNOPSIS
dbfadd filename fieldvalues...
DESCRIPTION
Adds a row to the DBF file named by filename with column values given by the fieldvalues options that follow. A NULL value is denoted by
an empty argument.
EXIT STATUS
0 Successful program execution.
1 Missing filename or fieldvalues arguments.
2 Failed to open filename for reading and appending.
3 Too few values in fieldvalues...
DIAGNOSTICS
The following diagnostics may be issued on stdout:
DBFOpen(filename,"rb+") failed.
Got count1 fields, but require count2
AUTHORS
Frank Warmerdam (warmerdam@pobox.com) is the maintainer of the shapelib shapefile library. Joonas Pihlaja (jpihlaja@cc.helsinki.fi) wrote
this man page.
BUGS
Field values that are too large to fit in a field are silently truncated from the right. Numeric field values that can't be parsed by
atof(3) get undefined values.
SEE ALSO dbfcreate(1), dbfdump(1), dbf_dump(1), shpadd(1), shpcreate(1), shpdump(1), shprewind(1)shapelib OCTOBER 2004 SHAPELIB(1)