Sponsored Content
Full Discussion: File Handling in C
Top Forums Programming File Handling in C Post 95266 by linuxpenguin on Monday 9th of January 2006 07:33:20 PM
Old 01-09-2006
hmm writing a c program to do this would be time consuming, what is the database you are using. most databases have tools to unload data in flat file system and that eases a lot of work, in most databases these tools are really very efficient.
for eg if you are using the database informix, the tool is dbunload.
there will be similar tools for oracle, etc. So tell us what is the database client tools you are using?
 

10 More Discussions You Might Find Interesting

1. Programming

file handling

Hi all, I got a little issue here. Imagine that I have more than one process accessing one file. Is it possible to know which process(es) are accessing that file when I open the file?? Thanks for the help. Best regards, Ernesto (2 Replies)
Discussion started by: ninjanesto
2 Replies

2. UNIX for Advanced & Expert Users

File Handling

Hi, I have a log file which runs into 3 to 5 GB. We store this typically for 6 months. When a new month starts we move the previous month into a 9 month back up log (file.9m) and delete the last month of the 9 month back up. Iam using awk to find the data and cat to join the files like... (3 Replies)
Discussion started by: baanprog
3 Replies

3. UNIX for Advanced & Expert Users

please help me in file handling

sir i have to get first line from a file for example >cat file1 abc zxc asd adsf from that file1 i need only first line expected result >abc please help me ! (1 Reply)
Discussion started by: ponmuthu
1 Replies

4. UNIX for Advanced & Expert Users

File handling

my input for a script is another csv file but in that file say 7 lines are there ... how can i get line by line to that input for example : >cat link.csv www.yahoo.com,yahoo www.google.com,google www.unix.com,unix another file in that file i need to ping the above links ... (2 Replies)
Discussion started by: ponmuthu
2 Replies

5. Shell Programming and Scripting

UNIX File handling -Issue in reading a file

I have been doing automation of daily check activity for a server, i have been using sqls to retrive the data and while loop for reading the data from the file for several activities. BUT i got a show stopper the below one.. where the data is getting store in $temp_file, but not being read by while... (1 Reply)
Discussion started by: KuldeepSinghTCS
1 Replies

6. Programming

Perl help for file handling

$# some text $$ some text $@ some text $$. some text Mg1 some text Mg2 some text . . . Mg10 some text The above 10 lines are to be extracted except the lines starting from $#,$$.,... (4 Replies)
Discussion started by: baig.abdul
4 Replies

7. Shell Programming and Scripting

ksh file handling

Specifically on RHEL 5.7. When does the underlying ksh process open and close files? Every time they're accessed, or as little as possible? Say you have some script like: CreateFiles() { grep "<VALUE1>" ${infile} >> ${outfile} grep "<VALUE2>" ${infile} >> ${outfile} ...... (4 Replies)
Discussion started by: CarloM
4 Replies

8. UNIX for Dummies Questions & Answers

File Handling

Hi Team, I am trying to cut a large file into multiple files. It has Header 50,050 records Trailer ------------------------------------------- I need to cut the files into multiple files of 1000 records and should have the same header and trailer as the original files. ... (4 Replies)
Discussion started by: Gurkamal83
4 Replies

9. UNIX for Dummies Questions & Answers

File handling

I have a file 1 298167 298168 1093209 1093210 1422663 I want to write a code where in I want to read contents of above file like first read is 1 second read is 298167 Substract second read from first and if this is greater than or less than 99,999. Similarly I want to traverse thru... (3 Replies)
Discussion started by: Guru148
3 Replies

10. Shell Programming and Scripting

File handling

Hi All, I need to extract the data from the text file. The data of the text file is shown below #L 0.000017 4.329939 0.000017 4.716267 r7.9 P 1 1;Net=IN32 The extracted data should be IN32. Could anyone help to script in c shell.? (4 Replies)
Discussion started by: gopishrine
4 Replies
db_dump(8)						      System Manager's Manual							db_dump(8)

NAME
db_dump, db_dump185 - Reads and writes the security databases (Enhanced Security) SYNOPSIS
/usr/tcb/bin/db_dump [-dN] [-f output] db_file /usr/tcb/bin/db_dump [-p] [-f output] [-h home] db_file /usr/tcb/bin/db_dump185 [-p] [-f output] db_file FLAGS
Dump the specified database in a format helpful for debugging the Berkeley DB library routines. The output format of the -d option is not standard and may change without notice between releases of the Berkeley DB library. Write to the specified file instead of to the standard output Specify a home directory for the database. The correct directory for enhanced security is /var/tcb/files. Do not acquire shared region locks while searching the database. This option is intended only for debugging and should not be used under any other circumstances. If characters in either the key or data items are printing characters (as defined by isprint, use printing characters in file to represent them. This option permits users to use standard text editors and tools to modify the contents of databases. DESCRIPTION
A customized version of the Berkeley Database (Berkeley DB) is embedded in the operating system to provide high-performance database sup- port for critical security files. The DB includes full transactional support and database recovery, using write-ahead logging and check- pointing to record changes. The db_dump utility reads the security database file db_file and writes it to the standard output using a portable flat-text format under- stood by the db_load utility. The db_dump and db_dump185 utilities are included in Tru64 UNIX for use by installation and update utilities, and are not recommended for use by system administration. The edauth utility provides a supported means of copying records from the security databases. Earlier versions of Tru64 UNIX used Version 1.85 of the Berkeley DB for enhanced security databases. So the db_dump185 utility, which is similar to the db_dump utility except that it reads databases in the format used by Berkeley DB Versions 1.85 and 1.86, is included with Tru64 UNIX. Dumping and reloading hash databases that use user-defined hash functions will result in new databases that use the default hash function. While using the default hash function may not be optimal for the new database, it will continue to work correctly. Dumping and reloading btree databases that use a user-defined prefix or comparison functions results in new databases that use the default prefix and comparison functions. In this case, it is quite likely that the database will be damaged beyond repair permitting neither record storage or retrieval. The only available workaround for either case is to modify the sources for the db_load utility to load the database using the correct hash, prefix and comparison functions. RETURN VALUES
The db_dump utility exits 0 on success, and >0 if an error occurs. The db_dump185 utility exits 0 on success, and >0 if an error occurs. ENVIRONMENT VARIABLES
If the -h option is not specified and the environment variable DB_HOME is set, it is used as the path of the database home. The home directory for security is /var/tcb/files. FILES
/var/tcb/files/auth.db /var/tcb/files/dblogs/* RELATED INFORMATION
Commands: edauth(8), db_load(8) delim off db_dump(8)
All times are GMT -4. The time now is 02:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy