09-27-2010
Any sparse files may also change size when copied(blocks not stored in the input become stored blocks full of zeroes in the output), though the content remains identical.
9 More Discussions You Might Find Interesting
1. Answers to Frequently Asked Questions
Determining if an OS is using 32 or 64 bits
This may be our number one question. Sadly I have not been able to find a definitive answer for Linux. If you have a Linux solution, please post it in our Linux forum. I will edit this post to include it.
32 / 64 bit (Solaris)
hp-ux ... (0 Replies)
Discussion started by: Perderabo
0 Replies
2. UNIX for Dummies Questions & Answers
I have never heard of this before but someone at work here says there is a command to find files that are under currently mounted filesystems. Does anyone know what this command is and is it available on HP-UX? (3 Replies)
Discussion started by: keelba
3 Replies
3. Shell Programming and Scripting
Hello everyone!
I have 2 types of files in the following format:
1) *.fa
>1234
...some text...
>2345
...some text...
>3456
...some text...
.
.
.
.
2) *.info
>1234 (7 Replies)
Discussion started by: ad23
7 Replies
4. Shell Programming and Scripting
Hi all,
Am writing a script that does a rm/mv if a file exist, however, in one scenario, one of the variables which is supposed to a variable for a directory is undefined/blank so instead of the variable resolving to /tmp/logfile.dmp, it resolves instead to / so the rm translates to a rm /... (2 Replies)
Discussion started by: newbie_01
2 Replies
5. Red Hat
Hi All,
I have a CentOS operating system installed. I work with really huge number of files which are not only huge in number but some of them really huge in size. Minimum number of files could be 1 million to 2 million in one directory itself. Some of the files are even several Gigabytes in... (2 Replies)
Discussion started by: shoaibjameel123
2 Replies
6. Shell Programming and Scripting
I need to pull down a good bit of files for another support team for an upgrade project. I have a server.list with all of the server names.
I need to do two parts:
FIRST:
I have this example, but it does not list the server name in front of each line.
#! /bin/bash
for server in $(<... (10 Replies)
Discussion started by: asnatlas
10 Replies
7. Red Hat
I wanted to know whether all files under /tmp can be safely removed. I guess that /tmp may also have temporary files for applications currently being worked on, so at the most those applications may just shut down.
I hope that my question is clear whether all files under /tmp can be safely... (5 Replies)
Discussion started by: RHCE
5 Replies
8. Shell Programming and Scripting
Hello.
I use this command :
rsync -av --include=".*" --dry-run "$A_FULL_PATH_S" "$A_FULL_PATH_D"The data comes from the output of a find command.
And no full source directories are in use, only some files.
Source example... (2 Replies)
Discussion started by: jcdole
2 Replies
9. Shell Programming and Scripting
Hey Guys,
I'm swamped writing code for the forums:
Could someone write a script or command line to safely delete files with special chars in filenames from a directory:
Example:
-rw-r--r-- 1 root root 148 Apr 30 23:00 ?xA??
-rw-r--r-- 1 root root 148... (8 Replies)
Discussion started by: Neo
8 Replies
LEARN ABOUT ULTRIX
dbminit
dbm(3x) dbm(3x)
Name
dbminit, fetch, store, delete, firstkey, nextkey - data base subroutines
Syntax
typedef struct {
char *dptr;
int dsize;
} datum;
dbminit(file)
char *file;
datum fetch(key)
datum key;
store(key, content)
datum key, content;
delete(key)
datum key;
datum firstkey()
datum nextkey(key)
datum key;
Description
These functions maintain key/content pairs in a data base. The functions will handle very large (a billion blocks) databases and will
access a keyed item in one or two file system accesses. The functions are obtained with the loader option -ldbm.
Keys and contents are described by the datum typedef. A datum specifies a string of dsize bytes pointed to by dptr. Arbitrary binary
data, as well as normal ASCII strings, are allowed. The data base is stored in two files. One file is a directory containing a bit map
and has `.dir' as its suffix. The second file contains all data and has `.pag' as its suffix.
Before a database can be accessed, it must be opened by At the time of this call, the files file.dir and file.pag must exist. (An empty
database is created by creating zero-length `.dir' and `.pag' files.)
Once open, the data stored under a key is accessed by and data is placed under a key by A key (and its associated contents) is deleted by A
linear pass through all keys in a database may be made, in an (apparently) random order, by use of and The will return the first key in the
database. With any key will return the next key in the database. This code will traverse the data base:
for (key = firstkey(); key.dptr != NULL; key = nextkey(key))
Restrictions
The four times its actual content. Older UNIX systems may create real file blocks for these holes when touched. These files cannot be
copied by normal means without filling in the holes.
The dptr pointers returned by these subroutines point into static storage that is changed by subsequent calls.
The sum of the sizes of a key/content pair must not exceed the internal block size (currently 1024 bytes). Moreover all key/content pairs
that hash together must fit on a single block. The will return an error in the event that a disk block fills with inseparable data.
The does not physically reclaim file space, although it does make it available for reuse.
Return Values
Routines that return a datum indicate errors with a null(0) dptr. All functions that return an int indicate errors with negative values.
A zero return indicates a successful completion.
dbm(3x)