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
need some help..Comparison bluesilo Shell Programming and Scripting 0 02-23-2008 04:43 PM
string comparison fedora Shell Programming and Scripting 2 01-03-2007 03:20 PM
Date comparison sumesh.abraham Shell Programming and Scripting 6 12-14-2006 01:28 AM
dir comparison help ghazi Shell Programming and Scripting 5 12-20-2004 05:54 PM
comparison cnf Filesystems, Disks and Memory 2 05-14-2002 02:52 PM

 
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-05-2009
mansa mansa is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 33
Comparison doubt..

Hi,

/etc/fstab file contains:
==================
cluster_root#root / advfs rw 0 1
cluster_usr#usr /usr advfs rw 0 2
cluster_var#var /var advfs rw 0 2
/proc /proc procfs rw 0 0
t_d#t_f /t_m advfs rw 0 2
/dev/disk/dsk1c /ufs_mnt ufs rw,userquota=/advfs_mnt/quota.user 1 2
test#test /advfs_mnt advfs rw,userquota=/ufs_mnt/quota.advfs 0 2

Need to check whether quota file(say quota.user and quota.group) is within the same fileset or not.


Second argument of /etc/fstab file is nothing but fileset location and 4th argument of /etc/fstab file is also fileset location.So need to compare 2nd and 4th argument of /etc/fstab file.If both locations are same then we can confirm that quota files are in same fileset).

Consider below situation say,
1./dev/disk/dsk1c /ufs_mnt ufs rw,userquota=/advfs_mnt/quota.user 1 2
2.test#test /advfs_mnt advfs rw,userquota=/ufs_mnt/quota.advfs 0 2
Second argument of Line1 is /ufs_mnt and 4th argument is rw,userquota=/advfs_mnt/quota.user.In this case both locations are different i.e (/ufs_mnt and /advfs_mnt).

Could you please let me know how to compare 2nd and 4th argument in /etc/fstab file.

Thanks,
Mansa
 

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 07:07 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