02-23-2010
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Ok, another fun hiccup in my UNIX learning curve. I am trying to count the number of occurrences of an IP address across multiple files named example.hits. I can extract the number of occurrences from the files individually but when you use grep -c with multiple files you get the output similar to... (5 Replies)
Discussion started by: MrAd
5 Replies
2. Shell Programming and Scripting
Hello all,
Below is what I am trying to accomplish:
I have a file that looks like this
/* ----------------- xxxx.y_abcd_00000050 ----------------- */
jdghjghkla
sadgsdags
asdgsdgasd
asdgsagasdg
/* ----------------- xxxx.y_abcd_00000055 ----------------- */
sdgsdg
sdgxcvzxcbv... (8 Replies)
Discussion started by: alfredo123
8 Replies
3. Shell Programming and Scripting
Good afternoon! Im new at scripting and Im trying to write a script to
calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies
4. 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
5. 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
6. 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
7. 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
8. Shell Programming and Scripting
please help, I have a huge file with blocks of data which I need to convert to a tabular format.
Input
sample
id: GO:0000017
name: alpha-glucoside transport
namespace: biological_process
def: "The directed movement of alpha-glucosides into, out of or within a cell, or between... (3 Replies)
Discussion started by: ritakadm
3 Replies
LEARN ABOUT OSF1
showfdmn
showfdmn(8) System Manager's Manual showfdmn(8)
NAME
showfdmn - Display attributes of an AdvFS file domain
SYNOPSIS
/sbin/showfdmn [-k] domain
OPTIONS
Displays the total number of blocks and the number of free blocks in terms of 1K blocks.
OPERANDS
Specifies the name of an existing AdvFS file domain.
DESCRIPTION
The showfdmn command displays the attributes of a file domain and detailed information about each volume in the file domain.
The command displays the following file domain attributes: Id
A unique number (in hexadecimal format) that identifies a file domain. Date Created
The day, month, and time that a file domain was created. LogPgs
The number of 8-kilobyte pages in the transaction log of the specified file domain. Version
An internal-use-only version number for the AdvFS on-disk data structures. This number is not related to the version number of the
base operating system. Domain Name
The name of the file domain.
The command also displays the following volume information: Vol
The volume number within the file domain. An L next to the number indicates that the volume contains the transaction log. 512-Blks
The size of the volume in 512-byte blocks. 1K-Blks
The size of the volume in 1K blocks. Free
The number of blocks in a volume that are available for use. % Used
The percent of volume space that is currently allocated to files or metadata. Cmode
The I/O consolidation mode. The default mode is on. Rblks
The maximum number of 512-byte blocks read from the volume at one time. Wblks
The maximum number of 512-byte blocks written to the volume at one time. Vol Name
The name of the special device file for the volume.
For multi-volume file domains, the showfdmn command also displays the total volume size, total number of free blocks, and the total percent
of volume space currently allocated.
RESTRICTIONS
A file domain must be active before the showfdmn command can display volume information. A file domain is active when at least one fileset
in the file domain is mounted.
EXAMPLES
The following example displays domain information for the usr_domain file domain: % showfdmn usr_domain
Id Date Created LogPgs Version Domain Name 2b5361ba.000791be Tue Jan 12 16:26 1999 256 4 usr_domain
Vol 512-Blks Free % Used Cmode Rblks Wblks Vol Name
1L 820164 351580 57% on 256 256 /dev/disk/dsk0d To display information on all file domains on a system, enter the following
sequence of commands: % cd /etc/fdmns % showfdmn *
SEE ALSO
Commands: chvol(8), mkfdmn(8)
Files: advfs(4)
showfdmn(8)