9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All
I have a list of files which will have duplicate list of blocks of text. Following is a sample of the file, I have removed the sensitive information from the file.
All the code samples starts from <TR BGCOLOR="white"> and Ends with IP address and two html tags like this.
10.14.22.22... (3 Replies)
Discussion started by: mahasona
3 Replies
2. Shell Programming and Scripting
Hi Experts,
I have a problem where I want to print missing columns (3,4) within a block of text. Each block is separated by "###". Some rows have missing column 3 and 4 which should be same as the previous value in column 3 and 4. The file is space delimited.
For example:
INPUT
###... (5 Replies)
Discussion started by: mira
5 Replies
3. Shell Programming and Scripting
I sat down yesterday to write this script and have just realised that my methodology is broken........
In essense I have.....
----------------------------------------------------------------- (This line really is in the file)
Service ID: 12345 ... (7 Replies)
Discussion started by: Bashingaway
7 Replies
4. Shell Programming and Scripting
Hello all,
short story: I'm writing a script to add and remove dns records in dns files. Its on a RHEL 5.5
So far i've locked up the basic operations in a couple of functions:
- validate the parameters
- search for existant ip in file when adding
- search for existant name records in... (6 Replies)
Discussion started by: maverick72
6 Replies
5. Shell Programming and Scripting
Hi,
I am working with CVS log data and have some data as follows.
RCS file: /cvsroot/eclipse/org.eclipse.debug.core/core/org/eclipse/debug/core/IBreakpointListener.java,v
head: 1.14
branch:
locks: strict
access list:
keyword substitution: o
total revisions: 15; selected... (3 Replies)
Discussion started by: sandeepk1611
3 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. Programming
Hi @all,
i really stuck in programming a tool with bidirectional process communication (popen(cmd, "rw") ... something like that ;-)).
Here is the code:
if(pipe(p_stdin) != 0 || pipe(p_stdout) != 0) {
fprintf(stderr, "Aufruf von pipe() schlug fehl.\n");
exit(1);
}
... (6 Replies)
Discussion started by: jens.g
6 Replies
8. Shell Programming and Scripting
Hi,
This is part of a large text file I need to separate out.
I'd like some help to build a shell script that will extract the text between sets of dashed lines, write that to a new file using the whole or part of the first text string as the new file name, then move on to the next one and... (7 Replies)
Discussion started by: cajunfries
7 Replies
9. Shell Programming and Scripting
Hello,
Hello Firends,
I have file like below. I want to remove selected blocks say abc,pqr,lst. how can i remove those blocks from file.
zone abc {
blah
blah
blah }
zone xyz {
blah
blah
blah }
zone pqr {
blah
blah
blah } (4 Replies)
Discussion started by: nrbhole
4 Replies
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)