The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Listing directories and sub directories jinxor UNIX for Advanced & Expert Users 3 03-11-2008 10:27 AM
moving directories to new directories on multiple servers mackdaddy07 Shell Programming and Scripting 0 04-06-2007 12:30 PM
tar contains duplicate filenames dangral UNIX for Dummies Questions & Answers 2 03-14-2007 04:18 PM
Duplicate Lines x 4 serm Shell Programming and Scripting 6 08-14-2006 10:09 AM
remove duplicate kazanoova2 Shell Programming and Scripting 4 04-12-2004 01:35 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 05-23-2008
learnbash learnbash is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 96
duplicate directories

Hi,

I have file which users like

filename ->"readfile", following entries

peter
john
alaska
abcd
xyz

and i have directory /var/

i want to do first cat of "readfile" line by line and first read peter in variable and also cross check with /var/ how many directories are avaialble with this name "peter", that can many.

In some word if i have userids file and how can i trace those particular userids duplication in a directory, might be one user has copied another directory and might be one person have copied 5 persons directories.

Kindly advice.

Regards,
Bash
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:52 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0