Sponsored Content
Full Discussion: Fill the directory
Top Forums Shell Programming and Scripting Fill the directory Post 302506525 by 2002anand on Monday 21st of March 2011 05:04:57 AM
Old 03-21-2011
hey please explain the two lines
Code:
set -- $(df -k $FStoFill | tail -1)
dd if=/dev/zero of=$FStoFill/zerofile.$$ bs=1k count=$((($threshold*$2/100)-$3))


Last edited by Franklin52; 03-21-2011 at 11:25 AM.. Reason: Please use code tags, thank you
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Fixed length (Fill out)

hello, I have a file that has lines with different lengts. I want this file to be filled up with a zero so that al the lines have the same length. Please advice? File 1: ----------- 2310 2009 830 1345 Result File 2: ---------- 2310 2009 0830 (3 Replies)
Discussion started by: peterk
3 Replies

2. Shell Programming and Scripting

Fill the Key fields : Please help us

Hi .... we are having the below file .Column 1, Column 2 ,column 3 are key fields... In the below ...for 2 nd , 3 rd row the repeated key column is missing .... i want the new file to be populated with all missing key columns. ... (11 Replies)
Discussion started by: charandevu
11 Replies

3. Shell Programming and Scripting

fill in missing columns

It can't be that hard, but I just can't figure it out: I have file like: File Sub-brick M_1 S_1 M_2 S_2 M_4 S_4 ... xxx 1 214 731 228 621 132 578 ... and would like to get 0 0 where M_3 S_3 is missing xxx 1 214 731 228 621 0 0 132 578 ... I wrote following script, but can't figure out... (3 Replies)
Discussion started by: avvk
3 Replies

4. UNIX for Dummies Questions & Answers

Read directory and fill a file with this information

Hello All, Got a question to make a script what reads a directory and put the file names from that directory in a file with some extra text. ls /tempdir output is: file1.gfh file2.txt file4.zzz these file names (always with an extention) must be placed in a line and written to... (2 Replies)
Discussion started by: ToXiQ
2 Replies

5. UNIX for Dummies Questions & Answers

Fill in columns

Hi, I've got a file with several columns where some entries are missing. Example: a b c d f g h j k l p y r I need to replace the empty spaces with zero, so the new file would be: a b c d f 0 g h j k 0 l p y 0 r The original file is tab delimited. Many thansk for... (3 Replies)
Discussion started by: zajtat
3 Replies

6. Programming

Zero Fill 10 position field

Hi everyone, I am using shell scripting on a Unix SCO box. It calls a C program named zerofill. I do not know anything about C. I am having an issue with a hash total that should only be zero filled 10 positions but the record has 11 positions. DEBUG RESULTS + nice -n -5 bc -l /tmp/fhash8395... (0 Replies)
Discussion started by: ski
0 Replies

7. Shell Programming and Scripting

Zero fill a string

How do I zero fill a string. E.g pad a string to two digits m=`date "+%m"` pm=`expr $m - 1` echo $pm the above code echoes 1. I want it to echo 01. Any ideas? (3 Replies)
Discussion started by: timgolding
3 Replies

8. UNIX for Dummies Questions & Answers

combine and fill series

hi all! i have a script with an output like this abc 123 1246 abc 1386 abc 2589 abc 7383 what can i do if i want to fill the 2nd column with the 2nd string '123' abc 123 1246 abc 123 1386 abc 123 2589 abc 123 7383 thanks! (3 Replies)
Discussion started by: engr.jay
3 Replies

9. Shell Programming and Scripting

Fill missing values with 2

Hi All, I have 100 .txt files which look like this: 3 4 5 6 7 Now, some files have some numbers missing in them and they look like this: 4 5 6 (6 Replies)
Discussion started by: shoaibjameel123
6 Replies

10. Shell Programming and Scripting

Fill in missing values

Hi, I have a data sample as shown below. I want to fill in the left column so that the line will be continuous. For example, between 1 and 5 should be 2,3,4. And corresponding values in the right column will be 0. Thus the expected data should look like that: 1 1 1 10 1 2 1 3 1 5 1 6 2 0... (6 Replies)
Discussion started by: theanh0508
6 Replies
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)
All times are GMT -4. The time now is 06:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy