Dear friends,
please tell me how to find the files which are existing in the current directory, but it sholud not search in the sub directories..
it is like this,
current directory contains
file1, file2, file3, dir1, dir2
and dir1 conatins
file4, file5
and dir2 contains
file6,... (9 Replies)
Hi All,
I am doing one simple web tool. I have a HTML as my front end and cgi as my backend. Here my pb is when I assign the html form input to a variable in my script, it is not accepting the special char "*" to that varible.
say I have a text box(Name : in_query) in html and trying to... (1 Reply)
Hi All,
I have working (Perl) code to combine 2 input files into a single output file using the join function that works to a point, but has the following limitations:
1. I am restrained to 2 input files only.
2. Only the "matched" fields are written out to the "matched" output file and... (1 Reply)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Dear Ladies & Gents,
I have a requirement to delete all the log files in /var/log/test directory that are older than 10 days and their first line begin with "MSH" or "<?xml" or "FHS". I've put together the following BASH script, but it's erroring out:
for filename in $(find /var/log/test... (2 Replies)
I am trying find files in sub dir with certain tags using tag command, and add the period to the beginning. I can't use chflags hidden {} cause it doesn't add period to the beginning of the string for web purpose. So far with my knowledge, I only know mdfind or tag can be used to search files with... (6 Replies)
Discussion started by: Nexeu
6 Replies
LEARN ABOUT OSF1
dircmp
dircmp(1) General Commands Manual dircmp(1)NAME
dircmp - Compares two directories
SYNOPSIS
dircmp [-d] [-s] directory1 directory2
The dircmp command reads directory1 and directory2, compares their contents, and writes the results to standard output.
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
dircmp: XCU5.0
Refer to the standards(5) reference page for more information about industry standards and associated tags.
OPTIONS
Displays for each common file name the differing contents of the two files, if any. The display format is the same as that of the diff
command. Does not list the names of identical files.
OPERANDS
The path name of a directory to be compared.
DESCRIPTION
First, dircmp compares the file names in each directory. When the same file name appears in both, dircmp compares the contents of the two
files.
In the output, dircmp lists the files unique to each directory. It then lists the files with identical names but different contents. If
entered without a option, dircmp also lists files that have both identical names and identical contents.
NOTES
[Tru64 UNIX] In many cases, diff -r, rather than dircmp, is preferred. The dircmp command is marked LEGACY. The diff -r command should
be used instead.
EXAMPLES
To summarize the differences between the files in two directories, enter: dircmp proj.ver1 proj.ver2
This displays a summary of the differences between the directories proj.ver1 and proj.ver2. The summary lists separately the files
found only in one directory or the other, and those found in both. If the file is found in both directories, the file is listed.
If the files are identical, dircmp displays identical; otherwise, dircmp displays different. To show the details of the differences
between files, enter: dircmp -d -s proj.ver1 proj.ver2
The -s option suppresses information about identical files. The -d option displays a diff listing for each of the differing files
found in both directories.
SEE ALSO
Commands: cmp(1), diff(1)
Standards: standards(5)dircmp(1)