02-08-2007
If I understand correctly, try this
cd /edc/input1 ; find . -type f | sort > /tmp/input1.lst
cd /edc/input2 ; find . -type f | sort > /tmp/input2.lst
diff /tmp/input1.lst /tmp/input2.lst
From the output, lines that begin with a less-than sign '<' exist only in /edc/input1 and those beginning with a greater-than sign '>' exist only in /etc/input2. To see which files exist in BOTH directories, use the join(1) command
join /tmp/input1.lst /tmp/input2.lst
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
i'm trying to compare two directories in Unix.
I need a recursive search ie my shell script should also compare common files in those two directory and so on...
any clues.. ?? (2 Replies)
Discussion started by: yayati
2 Replies
2. UNIX for Dummies Questions & Answers
I have in root directory a folder A and a Folder B. I want to copy or move all content (many files) from A to B.
How do I do that UNIX style?
Thanks! (6 Replies)
Discussion started by: Matsakii
6 Replies
3. Shell Programming and Scripting
Hi
I want to write a script that reads a directory name, checks if the directory exists and lists the content of that directory.
That's what I have at the moment.
function listDirectory
{
echo "Give in a directory name"
read name
#Here I want to check if the... (4 Replies)
Discussion started by: hss
4 Replies
4. Shell Programming and Scripting
Hi,
I have a bunch of records within a directory where each one has this form:
(example file1)
1 2 50 90 80 90 43512 98 0909 79869 -9 7878 33222 8787 9090 89898 7878 8989 7878 6767 89 89 78676 9898 000 7878 5656 5454 5454
and i want for all of these files to be... (3 Replies)
Discussion started by: amarn
3 Replies
5. Shell Programming and Scripting
Hi,
Help required to split record value and write to new row.
Input
a~b~c~value in ('3','4','5')~test
output
a~b~c~3~test
a~b~c~4~test
a~b~c~5~test
input
a~b~c~value in ('3','4')~test
output
a~b~c~3~test
a~b~c~4~test (8 Replies)
Discussion started by: Jairaj
8 Replies
6. Shell Programming and Scripting
Input file:
1234 USA date
3421 USA date
3421 USA content
1234 USA1 date
34 USA1 content
1234 USA2 Sun
34 USA2 Sun
43 USA2 Sun
345 USA2 date
435 USA2 date1
Output file:
1234 USA date
3421 USA date
1234 USA1 date
1234 USA2 Sun
34 USA2 Sun
43 USA2 Sun (0 Replies)
Discussion started by: perl_beginner
0 Replies
7. Shell Programming and Scripting
I have two files named Before.txt and After.txt:
Now i want to find the difference in content between <Marker 1> and <Marker 2> in the two files.
---------- Post updated at 05:00 PM ---------- Previous update was at 04:50 PM ----------
Any help will be highly appreciated..:) (3 Replies)
Discussion started by: proactiveaditya
3 Replies
8. Shell Programming and Scripting
Given a directory containing say a few thousand files,
please output a list of all the names of the files in the directory that are exactly the same, i.e. have the same contents.
func(a_directory_name) output -> {“matches”: , ... ]}
e.g. func(“/home/my/files”) where the directory... (7 Replies)
Discussion started by: anuragpgtgerman
7 Replies
9. Shell Programming and Scripting
Hi All ,
We need one help on the below requirement.We have multiple pipe delimited .txt file(around 100 .txt files) present on one directory.We need the total record count of all the files present in that directory without header.File format as below :
... (8 Replies)
Discussion started by: STCET22
8 Replies
10. UNIX for Beginners Questions & Answers
I have two file as given below which shows the ACL permissions of each file. I need to compare the source file with target file and list down the difference as specified below in required output. Can someone help me on this ?
Source File
*************
# file: /local/test_1
# owner: own
#... (4 Replies)
Discussion started by: sarathy_a35
4 Replies
LEARN ABOUT DEBIAN
tcpvmexportd
tcpvmexportd(1) General Commands Manual tcpvmexportd(1)
NAME
tcpvmexportd - transcode PVM3 export interface
SYNOPSIS
tcpvmexportd -s|-m [ options ]
COPYRIGHT
tcpvmexportd is Copyright (C) by Malanchini Marzio
DESCRIPTION
tcpvmexportd This is the frontend for all the activity of export_pvm module: the program is spawned on all cluster hosts and wait to do the
encode work.
OPTIONS
-s Start tcpvmexportd in slave mode (internal use of export_pvm) [default].
Sub Options for slave mode
-j Start merger process [off].
-L Create only the merge list [off].
-c name Name of slave function req in slave mode [none].
-x parameters Multiplex parameters [none].
-1 param First parameter to pass to the slave function [null].
-2 param Second parameter to pass to the slave function [null].
-3 param Third parameter to pass to the slave function [null].
-t type Elab video or audio frame (video|audio|system|multisystem) [video].
-f name Out file name [/tmp/my_file_name]
-p number Multipass (0,1,2,3) [0].
-M Enable internal multipass [off].
-m Start tcpvmexportd in master mode [off].
Sub Options for master mode
-j Start the batch merge mode [off].
-C Check the config or merge file [off].
-f name Input file name [/tmp/my_file_name]
-h Print help.
-v Print the version.
EXAMPLES
Command:
tcpvmexportd -m -j -f mylistfile.lst
Run tcpvmexportd in batch merge mode.
tcpvmexportd -m -C -f mylistfile.lst
Check the config or the merge file.
AUTHORS
tcpvmexportd was written by Marzio Malanchini
<marzio_malanchini@vodafone.it>
SEE ALSO
transcode(1)
tcpvmexportd(1) 8th August 2003 tcpvmexportd(1)