05-22-2002
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
has any body put freebsd on a drive smaller than 80megs? (4 Replies)
Discussion started by: silverraindog
4 Replies
2. Shell Programming and Scripting
I have a shell script that carries out an extraction process as follows:
For a given input file dummy which looks like the following:
a.txt
a 1
a 2
xnzbcnzbxcbzxncbmnzxbcmzx
546
456
45
5
6
56
a 3
b.txt
b1
b2 (1 Reply)
Discussion started by: nbvcxzdz
1 Replies
3. Shell Programming and Scripting
Hi All,
I have come across a command
echo "123 abc" | sed 's/*/& &/'
output is
123 123 abc
then i tried in different ways to get 123 abc abc as output.
Can u please explain me the importance of & in the above command.
Thank you
- Chanakya (7 Replies)
Discussion started by: Chanakya.m
7 Replies
4. Programming
Hi my friends
I am beginner unix programmer I have written small c++ program in text editor and I have change it mode to 555 to make it executable file to use it in unix O.P.
#include<iostream.h>
main()
{
cout<<"Hello World";
}
but some syntax erroe came for <<
can any one help... (5 Replies)
Discussion started by: bintaleb
5 Replies
5. UNIX and Linux Applications
Hi all,
I get data-files which has a particular identified on the 1st record( header ), based on which I've to load a constant for the 1st column of every row. How do I set in the control file using unix shell script.
Appreciate if someone can give me some directions on this.
Thanks in... (3 Replies)
Discussion started by: lkeswar
3 Replies
6. Shell Programming and Scripting
Hi,
i have a client requirement to post the files into generic folder named as "source".file identification is to retrieve Publication code (Instance name) from the file name.So thereafter we move the files to different instances of specific folders for the same unix server.(means if the file... (2 Replies)
Discussion started by: kirankumar
2 Replies
7. Shell Programming and Scripting
Hi all,
I have two files in my folder
1.index.jsp
2.maintenance.jsp
Once hit the URL in IE,It will call the index.jsp file than application working fine.
I want to some maintenance in my application, during the application maintenance than it will... (1 Reply)
Discussion started by: lkeswar
1 Replies
8. UNIX for Dummies Questions & Answers
Hi I have the below file
Name=abc
Yr=2011
Mon=05
My script should be in such a way that whenever I run it then
Month should increment by 1 and if the month is 12 then when
I run the script then year should incremented by 1 and month
Should become 01(I.e jan)
Thanks for the help in... (6 Replies)
Discussion started by: kishu
6 Replies
9. Shell Programming and Scripting
Hi,
sorry for inconvenience..wrong query posted.
Thanks for your help.
Thanks (1 Reply)
Discussion started by: kirankumar
1 Replies
10. UNIX for Advanced & Expert Users
Hi All,
I am working on a file transfer tool between unix servers.
for this i am looking for a small database which is free and compatible with all unix OS and can be bundled in a package with other scripts.
Any suggestions (8 Replies)
Discussion started by: Jcpratap
8 Replies
LEARN ABOUT MOJAVE
anydbm_file
AnyDBM_File(3pm) Perl Programmers Reference Guide AnyDBM_File(3pm)
NAME
AnyDBM_File - provide framework for multiple DBMs
NDBM_File, DB_File, GDBM_File, SDBM_File, ODBM_File - various DBM implementations
SYNOPSIS
use AnyDBM_File;
DESCRIPTION
This module is a "pure virtual base class"--it has nothing of its own. It's just there to inherit from one of the various DBM packages.
It prefers ndbm for compatibility reasons with Perl 4, then Berkeley DB (See DB_File), GDBM, SDBM (which is always there--it comes with
Perl), and finally ODBM. This way old programs that used to use NDBM via dbmopen() can still do so, but new ones can reorder @ISA:
BEGIN { @AnyDBM_File::ISA = qw(DB_File GDBM_File NDBM_File) }
use AnyDBM_File;
Having multiple DBM implementations makes it trivial to copy database formats:
use Fcntl; use NDBM_File; use DB_File;
tie %newhash, 'DB_File', $new_filename, O_CREAT|O_RDWR;
tie %oldhash, 'NDBM_File', $old_filename, 1, 0;
%newhash = %oldhash;
DBM Comparisons
Here's a partial table of features the different packages offer:
odbm ndbm sdbm gdbm bsd-db
---- ---- ---- ---- ------
Linkage comes w/ perl yes yes yes yes yes
Src comes w/ perl no no yes no no
Comes w/ many unix os yes yes[0] no no no
Builds ok on !unix ? ? yes yes ?
Code Size ? ? small big big
Database Size ? ? small big? ok[1]
Speed ? ? slow ok fast
FTPable no no yes yes yes
Easy to build N/A N/A yes yes ok[2]
Size limits 1k 4k 1k[3] none none
Byte-order independent no no no no yes
Licensing restrictions ? ? no yes no
[0] on mixed universe machines, may be in the bsd compat library, which is often shunned.
[1] Can be trimmed if you compile for one access method.
[2] See DB_File. Requires symbolic links.
[3] By default, but can be redefined.
SEE ALSO
dbm(3), ndbm(3), DB_File(3), perldbmfilter
perl v5.18.2 2013-11-04 AnyDBM_File(3pm)