07-17-2019
Sounds like a good project.
You are going to do this project on what system?
Please provide all details of your operating system and shell.
Thanks.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have the files logged in the file system with names in the format of : filename_ordernumber_date_time
eg:
file_1_12012007_1101.txt
file_2_12022007_1101.txt
file_1_12032007_1101.txt
I need to find out all the files that are logged multiple times with same order number. In the above eg, I... (1 Reply)
Discussion started by: sudheshnaiyer
1 Replies
2. Shell Programming and Scripting
I've been working on a script (/bin/sh) in which I have requested and received help here (in which I am very grateful for!). The client has modified their requirements (a tad), so without messing up the script to much, I come once again for assistance.
Here are the file.dat contents:
ABC1... (4 Replies)
Discussion started by: petersf
4 Replies
3. Shell Programming and Scripting
Could someone please point me in the right direction with the following?
I have a program that generates logs that contains sections like this:
IMAGE INPUT
81 0 0.995 2449470 0 1726 368 1 0.0635 0.3291
82 0 1.001 2448013 0 1666 365 1 0.0649 ... (4 Replies)
Discussion started by: euval
4 Replies
4. UNIX for Dummies Questions & Answers
Hi i have a file with one column and want to report the value that has duplicate like
rag
rag
hi
hi
hi
123
456
output should be
rag
hi
thank you (6 Replies)
Discussion started by: thonlun
6 Replies
5. Shell Programming and Scripting
Hey all,,
I know cshell is harmful:) but I am using this just "to know" - for educational purposes!... not for a long-term use.
lets say i have a list..
set arr=(x y z e f)
I wanna iterate the list with foreach ,, not with while.!!
foreach i $arr
echo $i
end
does not work (2 Replies)
Discussion started by: eawedat
2 Replies
6. Shell Programming and Scripting
Hi i have a file like
110.10
120.10
-1120
110.10
and the lines are having more than 10k.
do we have anycommand to check the duplicate entries in the file.
I applied the while loop by greping each line with whole file,
but it is taking huge amount of time as the file size is large.
... (5 Replies)
Discussion started by: saluja.deepak
5 Replies
7. UNIX for Dummies Questions & Answers
I am very new to bash scripting and this is my first script.
I am trying to write a script that takes an argument d as the directory.
It looks through the files to find duplicates and delete them.
Here's some sorta-pseudocode but am unsure how to implement it:
#! /bin/bash
#get... (1 Reply)
Discussion started by: shubham92
1 Replies
8. Shell Programming and Scripting
I have a short line of code that checks very rudimentary for duplicate code:
sort myfile.cpp | uniq -c | grep -v "^.*1 " | grep -v "}"
It sorts the file, counts occurrences of each line, removes single occurrences and removes the ubiquitous closing brace. The language is C++, but is easily... (3 Replies)
Discussion started by: figaro
3 Replies
9. UNIX for Dummies Questions & Answers
I need to load an XML file and loop through a list of nodes in it to execute a shell script for each one using the attributes for each node as parameters for the script. Any ideas? Any help will be much appreciated. (1 Reply)
Discussion started by: bradlecat
1 Replies
10. Shell Programming and Scripting
Hi all
I have a big file like this in rows and columns from 2 column onwards the next column is desciption of previous column means 3rd columns is description of 2 columns and 5 column is description of 4 column.
All cloumns are separated by comma
... (1 Reply)
Discussion started by: manigrover
1 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)