10 More Discussions You Might Find Interesting
1. Solaris
I need to increase the /var (UFS) filesystem and root disk under veritas control or root disk is encapsulated
# df -k /var
Filesystem kbytes used avail capacity Mounted on
/dev/vx/dsk/var 13241195 12475897 674524 96% /var
# fstyp /dev/vx/dsk/var
ufs
# pkginfo... (1 Reply)
Discussion started by: amity
1 Replies
2. Shell Programming and Scripting
Hello,
I have an input file contaning following data:
< 12345;5454;77;qwert< yuyuy;ruwuriwru> yyyw;
> 35353;68686;424242;hrjwhrwrwy< dgdgd;
I have first character as '<' or '>'and after that one space is their in each line
I just want to replace 1st space encountered after < or >... (3 Replies)
Discussion started by: abhi001cse
3 Replies
3. Shell Programming and Scripting
Hello,
Searched for a while and found some "line-to-column" script. My case is similar but with multiple fields each row:
S02 Length Per
S02 7043 3.864
S02 54477 29.89
S02 104841 57.52
S03 Length Per
S03 1150 0.835
S03 1321 0.96
S03 ... (9 Replies)
Discussion started by: yifangt
9 Replies
4. Shell Programming and Scripting
Hello everyone!
I'm having some problems trying to translate a text file.
I've found some TR and SED commands but doesnt work exactly as I need.
The point is:
1. Replace all the letters with accent of a text file, like this: Ã>A Á>A Õ>o
2. Replace all the special characters with a... (3 Replies)
Discussion started by: ulysses2703
3 Replies
5. Shell Programming and Scripting
Hello,
I have a file like this:
FILE.TXT:
(define argc :: int)
(assert ( > argc 1))
(assert ( = argc 1))
<check>
#
(define c :: float)
(assert ( > c 0))
(assert ( = c 0))
<check>
#
now, i want to separate each block('#' is the delimeter), make them separate files, and then send them as... (5 Replies)
Discussion started by: paramad
5 Replies
6. UNIX for Dummies Questions & Answers
I'm Unix. I'm looking at "df" on Unix now and below is an example. It's lists the filesystems out in 512-blocks, I need this in 4k blocks. Is there a way to do this in Unix or do I manually convert and how?
So for container 1 there is 7,340,032 in size in 512-blocks. What would the 4k block be... (2 Replies)
Discussion started by: rockycj
2 Replies
7. Shell Programming and Scripting
I have a file like the one below. Each record is separated with >
In between I have lines consisting of 3 numeric values separated by a space.
I need to take each block between the > sign and read the first number in the line.
Then take the first after the > sign and the last before the >... (7 Replies)
Discussion started by: kristinu
7 Replies
8. Solaris
I ;ve an application which has does not support zfs and i 've a 100Gb Lun with zfs on it , how to go back to ufs .. and use SVM for the same ? (2 Replies)
Discussion started by: fugitive
2 Replies
9. Solaris
Hello all,
I have a laptop with a FAT32 files system, and I want to convert to UFS (unix file system) to install Solaris 10.
somebody knows the way to do that?:confused:
Please help
Thank you! (4 Replies)
Discussion started by: Geller
4 Replies
10. UNIX for Dummies Questions & Answers
I tried to build a 1.3 TB volume with disk suite, and recieved an error (don't remember the exact verbage, it was very late). It only built a 1 TB volume. newfs completed without error. I rebuilt the volume to be just under 1TB, and all was fine. Is there a limitation with disk suite, or ufs, that... (3 Replies)
Discussion started by: 98_1LE
3 Replies
SBREAD(3) BSD Library Functions Manual SBREAD(3)
NAME
sbread, sbwrite -- read and write superblocks of a UFS file system
LIBRARY
UFS File System Access Library (libufs, -lufs)
SYNOPSIS
#include <sys/param.h>
#include <sys/mount.h>
#include <ufs/ufs/ufsmount.h>
#include <ufs/ufs/dinode.h>
#include <ufs/ffs/fs.h>
#include <libufs.h>
int
sbread(struct uufsd *disk);
int
sbwrite(struct uufsd *disk, int all);
DESCRIPTION
The sbread() and sbwrite() functions provide superblock reads and writes for libufs(3) consumers. The sbread() and sbwrite() functions oper-
ate on the superblock field, d_sb, associated with a given userland UFS disk structure. Additionally, the sbwrite() function will write to
all superblock locations if the all value is non-zero.
RETURN VALUES
The sbread() and sbwrite() functions return the value 0 if successful; otherwise the value -1 is returned and the global variable errno is
set to indicate the error.
ERRORS
The function sbread() may fail and set errno for any of the errors specified for the library function bread(3). Additionally, it may follow
the libufs(3) error methodologies in situations where no usable superblock could be found.
The function sbwrite() may fail and set errno for any of the errors specified for the library function bwrite(3).
SEE ALSO
bread(3), bwrite(3), libufs(3)
HISTORY
These functions first appeared as part of libufs(3) in FreeBSD 5.0.
AUTHORS
Juli Mallett <jmallett@FreeBSD.org>
BSD
June 4, 2003 BSD