01-13-2006
17,
0
Join Date: May 2005
Last Activity: 22 April 2006, 11:39 PM EDT
Posts: 17
Thanks Given: 0
Thanked 0 Times in 0 Posts
Operations on search results
Hi, I am a newbie at Unix scritping, and I have a question.
Looking at the search functionality on Unix. Here I have a structure
root---------dir1 ------- file1, file2, file3
|_____dir2 ______file1@, file4
|_____dir3_______file1@, file5
Under root directory, I have directory dir1, dir2 , and dir3. In dir1, I have file1, file2, and file3. Under dir2, I have a hard link of file1, and file4. Under dir3, I have a symbolic link of file 1, and file5.
My queries are:
" find all the files that under dir1, but not under dir2 and dir3"
" find all the files that under dir2, but not dir3"
"find all the files that in both dir1, dir2, and dir3"
Would unix scripting be able to do that?