12-09-2009
Sorry Tying mistak..I have corrected it now check it out
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Friends,
I am new to UNIX. I need to merge all the files(to FINAL.txt) in single directory based one condition. Out of all the files one of file will have specific value like :GF01: at any where in the file.
so the file which is having :GF01: should be appended at the last.
EX:... (5 Replies)
Discussion started by: arund_01
5 Replies
2. UNIX for Dummies Questions & Answers
Hiiii Friends
I have 2 files with huge data. I want to compare this 2 files & if they hav same set of vales in specific rows & columns i need to get that value from one file & replace it in other.
For example: I have few set data of both files here:
a.dat:
PDE-W 2009 12 16 5 29 11.11 ... (10 Replies)
Discussion started by: reva
10 Replies
3. Shell Programming and Scripting
I have a control file which tells me which are the fields in the files I need to compare and based on the values I need to print the exact value if key =Y and output is Y , or if output is Y/N then I need to print only Y if it matches or N if it does not match and if output =N , then skip the feild... (7 Replies)
Discussion started by: newtoawk
7 Replies
4. Shell Programming and Scripting
Hi Experts,
Is there a way to compare 2 files by columns and print matching cases.
I have 2 files as below, I want cases where col1 and col2 in f1 matches col1 and col2 in f2 to be printed as output. The separator is space. I want the output to have col1 col2 col 3 from both files printed... (7 Replies)
Discussion started by: novice_man
7 Replies
5. Shell Programming and Scripting
I have 2 files whose data's are as follows :
fileA
00 lieferungen
00 attractiop
01 done
02 forness
03 rasp
04 alwaysisng
04 funny
05 done1
fileB
alwayssng
dkhf
fdgdfg
dfgdg
sdjkgkdfjg
funny
rasp (7 Replies)
Discussion started by: rajniman
7 Replies
6. UNIX for Dummies Questions & Answers
hi
i have to move files and send an email and attached the bad files to inform the developer about that.
#!/bin/ksh
BASE_DIR=/data/SrcFiles
cd $BASE_DIR
## finding the files from work directory which are changed in 1 day
find -type f -name "*.csv" –ctime 0 > /home/mydir/flist.txt
##... (14 Replies)
Discussion started by: awais290
14 Replies
7. Shell Programming and Scripting
hi
my problem is little complicated one. i have 2 files which appear like this
file 1
abbsss:aa:22:34:as akl abc 1234
mkilll:as:ss:23:qs asc abc 0987
mlopii:cd:wq:24:as asd abc 7866
file2
lkoaa:as:24:32:sa alk abc 3245
lkmo:as:34:43:qs qsa abc 0987
kloia:ds:45:56:sa acq abc 7805
i... (5 Replies)
Discussion started by: anurupa777
5 Replies
8. Shell Programming and Scripting
Hi all, I'm pretty much a newbie to UNIX. I would appreciate any help with UNIX coding on comparing two large csv files (greater than 10 GB in size), and output a file with matching columns.
I want to compare file1 and file2 by 'id' and 'chain' columns, then extract exact matching rows'... (5 Replies)
Discussion started by: bkane3
5 Replies
9. UNIX for Beginners Questions & Answers
Hello there.
I am trying to compare two files.
File1
Austria Mobile 1
United Kingdom Mobile 1
...
File2
Austria Mobile Vien 2
Austria Mobile Ostr 0
United Kingdom Mobile Dev 0.7
United Kingdom Mobile OST 1.5
What i want to do is to compare both files and... (12 Replies)
Discussion started by: dragonfly85
12 Replies
10. UNIX for Beginners Questions & Answers
I am preparing a script to check the configuration of the db2 against the standard configuration. I am fetching the output in file A and want to compare it with the standard output written in file B.
File A
Diagnostic error capture level (DIAGLEVEL) = 3
Audit buffer size (4KB) (AUDIT_BUF_SZ)... (2 Replies)
Discussion started by: bashb
2 Replies
fsck(1M) fsck(1M)
NAME
fsck - file system consistency check and interactive repair
SYNOPSIS
FSType] [special ...]
FSType] FSspecific-options] [special ...]
DESCRIPTION
The command audits and interactively repairs inconsistent conditions for HP-UX file systems on mass storage device files identified by spe-
cial. If the file system is consistent, the number of files on that file system and the number of used and free blocks are reported. If
the file system is inconsistent, provides a mechanism to fix these inconsistencies, depending on which form of the command is used.
special represents a special device (for example,
Options
recognizes the following options:
Specify the file system type on which to operate (see
fstyp(1M) and fs_wrapper(5)). If this option is not included on the command line, then the file system type is
determined from the file by matching special with an entry in that file. If there is no entry in then the file sys-
tem type is determined from the file
Perform a sanity check only.
will return 0 if the file system is suitable for mounting. If the file system needs additional checking, the return
code is 32. If the file system is mounted, the return code is 33. Error codes larger than 33 indicate that the file
system is badly damaged.
Specify options specific to each file system type.
FSspecific-options is a list of suboptions and/or keyword/attribute pairs intended for a file-system-specific version
of the command. See the file-system-specific manual entries for a description of the specific_options supported, if
any.
Safe performance mode. To improve performance, a system wide
will not be issued. This feature is underlying file system dependent.
Echo the completed command line, but perform no other action.
The command line is generated by incorporating the user-specified options and other information derived from This
option allows the user to verify the command line.
RETURN VALUE
The following values are returned by the option to
Either no errors were detected or all errors were corrected.
The file system needs additional checking.
The file system is mounted.
Return values greater that indicate that file system is badly corrupted. File system specific versions of will have their own additional
return values (see fsck_cachefs(1M), fsck_hfs(1M), or fsck_vxfs(1M)).
WARNINGS
This command may not be supported for all file system types.
If this command returns the message "Can't send after socket shutdown", check with your system administrator to make sure the is running
properly.
FILES
Specifies the default file system type
Default list of file systems to check
SEE ALSO
fsck_cachefs(1M), fsck_hfs(1M), fsck_vxfs(1M), mkfs(1M), newfs(1M), fstab(4), fs_wrapper(5), disk(7).
STANDARDS CONFORMANCE
fsck(1M)