08-17-2013
First things first: 8 consecutive /24 blocks do not represent a /20 block but a /21 block and only if the lowest third number of the consecutive /24 ranges is divisible by 8.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How can I print a '-' on the same line within awk, say 50 times, without actually typing '-' 50 times?
Cheers (3 Replies)
Discussion started by: dbrundrett
3 Replies
2. Shell Programming and Scripting
how to print any required line by its line no using awk and its NR variable
for eg:
------------
121343
adfdafd
21213sds
dafadfe432
adf.adf%adf
---------------
requied o/p if give num=3 it print:
21213sds
-------------------------------------- (2 Replies)
Discussion started by: RahulJoshi
2 Replies
3. Shell Programming and Scripting
Ok I have a file with hundreds of lines, four columns, space delimited, TESTB.TXT for example
TESTB.TXT
---
AA ZZ 12 34
BB YY 56 78
CC XX 91 23
DD VV 45 67
---
I want a new file that has 7 columns, the first four are identical, and the next 3 are the last three of the next line...so... (5 Replies)
Discussion started by: ajp7701
5 Replies
4. Shell Programming and Scripting
I would like to print the output beginning with a header from a seperate file like this:
awk 'BEGIN{FS="_";print ((getline < "header.txt")>0)} { if (! ($0 ~ /EL/ ) print }" input.txtWhat am i doing wrong? (4 Replies)
Discussion started by: sdf
4 Replies
5. Shell Programming and Scripting
Hi,
Its bit urget for me to complete. pls help me.
I am parsing 2 file 1. INDATA(Data file) 2. GRPFIL(Reference)
every record in INDATA should be verified with GRP_DATA.
I am seeing the output from only the last line of ref file, its not searching all the lines.
INDATA sample... (1 Reply)
Discussion started by: hyperion.krish
1 Replies
6. Shell Programming and Scripting
i want to print lines in a file that the 1st field of each line has a Date shape such:
yy/mm/dd
or on the other hand contains slash "/" . (1 Reply)
Discussion started by: oreka18
1 Replies
7. Shell Programming and Scripting
Hi all,
From a while loop I am reading a sorted file where I want to print only the lines that have $1 match and $2 only when the difference from $2 from the previous line is > 30.
Input would be like ...
AN237 010 193019 0502 1 CSU Amoxycillin
AN237 080 ... (2 Replies)
Discussion started by: gafoleyo73
2 Replies
8. Shell Programming and Scripting
hi,
Is it possible to print a particular character n number of times in a line?
for example.
i am print the following line using echo command..
echo "files successfully moved"
i want to count the number of characters that are been displayed. i am doin it using
echo "files... (8 Replies)
Discussion started by: Little
8 Replies
9. Shell Programming and Scripting
I have a file and when I match the word "initiators" in the first column I need to be able to print the rest of the columns in that row. This is fine for the most part but on occasion the "initiators" line gets wrapped to the next line. Here is a sample of the file.
caw-enabled ... (3 Replies)
Discussion started by: kieranfoley
3 Replies
10. UNIX for Dummies Questions & Answers
Hi all...
i have been trying to make this work but I have been failing for 6 hours ..
I know it should be something simple that I am missing to it would be great if you can help me ...
I want to subtract a fixed value (lets set 1) from any value >=1 from the whole file
my file looks like
... (4 Replies)
Discussion started by: A-V
4 Replies
LEARN ABOUT ULTRIX
icheck
icheck(8) System Manager's Manual icheck(8)
Name
icheck - check inode consistency
Syntax
/etc/icheck [ -s ] [ -b numbers ] [ filesystem ]
Description
The command is obsoleted for normal consistency checking by
The command examines a file system, builds a bit map of used blocks, and compares this bit map against the free list maintained on the file
system. If the file system is not specified, a set of default file systems is checked. The normal output of includes a report of:
o The total number of files and the numbers of regular, directory, block special and character special files.
o The total number of blocks in use and the numbers of single-, double-, and triple-indirect blocks and directory blocks.
o The number of free blocks.
o The number of blocks missing, that is, not in any file nor in the free list.
The option causes to ignore the actual free list and reconstruct a new one by rewriting the super-block of the file system. The file sys-
tem should be dismounted while this is done; if this is not possible (for example if the root file system has to be salvaged) care should
be taken that the system is quiescent and that it is rebooted immediately afterwards so that the old, bad in-core copy of the super-block
will not continue to be used. Notice also that the words in the super-block which indicate the size of the free list and of the i-list are
believed. If the super-block has been curdled these words will have to be patched. The option causes the normal output reports to be sup-
pressed.
Following the option is a list of block numbers; whenever any of the named blocks turns up in a file, a diagnostic is produced.
The command is faster if the raw version of the special file is used, since it reads the i-list many blocks at a time.
Diagnostics
For duplicate blocks and bad blocks (which lie outside the file system) announces the difficulty, the i-number, and the kind of block
involved. If a read error is encountered, the block number of the bad block is printed and considers it to contain 0. `Bad freeblock'
means that a block number outside the available space was encountered in the free list. `n dups in free' means that n blocks were found in
the free list which duplicate blocks either in some file or in the earlier part of the free list.
Restrictions
Since is inherently two-pass in nature, extraneous diagnostics may be produced if applied to active file systems.
It believes even preposterous super-blocks and consequently can get core images.
Files
Default file systems vary with installation.
See Also
fs(5), clri(8), dcheck(8), fsck(8), ncheck(8)
icheck(8)