05-28-2003
another question
Now I have two flat text files, I only need to choose some of the fields from both files and combine into one file, then load to a database table. Is there any way to do it?
Thanks for your help.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi everybody. I need help and I hope someone is willing to help me out here.
My wholesale company is currently moving to new software. The old software is running on a UNIX platform. We need to migrate data from the UNIX system, but our former software provider refuses to assist the data... (5 Replies)
Discussion started by: Wdonero
5 Replies
2. Shell Programming and Scripting
I need your help,
I want to add a text every 2nd line and also a blank line after 3 line
(In the output 2nd line is "changetype: modify" and every 4th line is blank line)
Input file format
dn: abc
orclsourceobjectdn: abcd
dn: bcd
orclsourceobjectdn: bcda
dn: cba
orclsourceobjectdn:... (7 Replies)
Discussion started by: athidhi
7 Replies
3. Shell Programming and Scripting
Hello,
I need to take a random word from a flat text file with words in it seperated by spaces.
The code I am using, always gives me the first word. Can anyone please shed some light on this. Here's my code.
Thanks
echo table roof ceiling jar computer monitor keyboard carpet >... (5 Replies)
Discussion started by: Freakhan
5 Replies
4. Shell Programming and Scripting
Ok,
so i've been having to write to flat files lately and then making my script read information from the flat file and then work off of that.
i dont want to keep doing that because i believe it creates a mess. i like to keep my work all to one script instead of having that one script... (7 Replies)
Discussion started by: SkySmart
7 Replies
5. Shell Programming and Scripting
Hi All,
I have a file.txt which seems like having three lines.
wc -l file.txt
3 file.txt
In fact, once it is open in text editor, this file has four lines where the last line is empty. how can i delete this last empty line of the file.txt? I tried the codes below so far but they... (6 Replies)
Discussion started by: senayasma
6 Replies
6. UNIX for Dummies Questions & Answers
When I use vi to see what's in the file I get this:
int add1(int x) {^M return x + 1;^M}
^Mint subtract1(int x) {^M return x - 1;^M}
^Mint double_it(int x) {^M return x * 2;^M}
^Mint halve_it(int x) {^Mreturn x / 2;^M}
^Mint main() {^M int myint;^M int result;^M ... (2 Replies)
Discussion started by: Nonito84
2 Replies
7. Shell Programming and Scripting
Hi All,
I am creating a text file using perl. The first record I am writing as "$line" and all the other as "\n$line". At the end the file is having N number of lines. I am using this file for MLOAD (Teradata), which is reading N+1 lines in the file and failing.I am not able to find new line... (2 Replies)
Discussion started by: unankix
2 Replies
8. Shell Programming and Scripting
Hi,
Is there a way to find out the line number from where the data starts?
like if the data contains column header, irrespective of the text in the column header we should get the line number from which contains the column header.
I am sorry if I haven't explained the problem clearly.
... (8 Replies)
Discussion started by: kedar_laveti
8 Replies
9. Shell Programming and Scripting
I need to identify the exact text of San Antonio Generator Running in the output my script which lands to a text file. Once SED finds the specific text, I need it to insert one line above the matched text.
Here is what I have so far that isn't working all that well for me. Any help would be... (7 Replies)
Discussion started by: jbrass
7 Replies
10. Shell Programming and Scripting
Dear All,
In a CSV file, say that a given column has been extracted. In that column, information is missing (i.e. blank lines appear). I would like to replace the blank lines by the last valid line (not blank) previously read.
For example, consider the extract below:
123
234
543
111... (7 Replies)
Discussion started by: bagvian
7 Replies
LEARN ABOUT DEBIAN
br_bioflat
BIORUBY(1) General Commands Manual BIORUBY(1)
NAME
br_bioflat.rb -- OBDA flat file indexer
SYNOPSIS
Search:
br_bioflat.rb [--search] [options...]
br_bioflat.rb [--search] [--location DIR] [--dbname DBNAME] [options...] [KEYWORDS]
Create index:
br_bioflat.rb [--create] [--location DIR] [--dbname DBNAME] [--format genbank|embl|fasta] [options...] [--files FILES...]
Update index:
br_bioflat.rb [--update] [--location DIR] [--dbname DBNAME] [options...] [--files FILES...]
Show namespaces:
br_bioflat.rb [--show-namespaces] [--location DIR] [--dbname DBNAME] [DIR/DBNAME]
br_bioflat.rb [--show-namespaces] [--format=CLASS]
br_bioflat.rb [--show-namespaces] [--files file]
DESCRIPTION
This manual page documents briefly the br_bioflat.rb.
br_bioflat.rb is an OBDA flat file indexer.
OPTIONS
--search Search a database for keywords.
--namespace --name
Only valid with the --search option. Set the search namespace. You can set this option multiple times to specify more than one
namespace.
--create Create an index.
--location
Specify the directory.
--dbname Specify the name of the database.
--primary --secondary
Set the primary and secondarynamespace of the index. Default primary/secondary namespaces depend on the format of the flatfiles.
Only valid with the --create option.
--add-secondary
Add secondary namespaces to the default specification. You can use this option many times. Only valid with the --create option.
--update Update an index
--sort Sort an index. You can set this to a path to an external sorting program, or BUILTIN to use the builtin sort module. This option
is only valid with --create (or --update) and --type flat options.
--renew Re-read all flatfiles and update whole index. This option is only valid with the --update option.
--show-namespaces
Display the namespaces for an index file.
AUTHOR
This manual page was written by David Nusinow dnusinow@debian.org for the Debian system (but may be used by others). Permission is granted
to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by
the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
BIORUBY(1)