Search Results

Search: Posts Made By: fzd
4,706
Posted By Scott
You should remove write for group and other ...
You should remove write for group and other


chmod og-w

and try again.
4,706
Posted By Scott
What permissions are on the user's home directory...
What permissions are on the user's home directory itself?
5,195
Posted By anurag.singh
awk -F= 'NR==FNR{a[$1]=$2;next}{if(a[$1]) print...
awk -F= 'NR==FNR{a[$1]=$2;next}{if(a[$1]) print $2;}' file1 file2

Output for above file1 and file2 (values of key2 and key4):

value2_2_1
value2_2_2
value2_4_1
Is this the expected output? If...
5,195
Posted By anurag.singh
awk 'NR==FNR{idx=index($1,"=");if(idx)...
awk 'NR==FNR{idx=index($1,"=");if(idx) $1=substr($1,1,idx-1);a[$1]++;next;}{b=$0;idx=index($1,"=");if(idx) $1=substr($1,1,idx-1);if(a[$1]) print b;}' file1 file2

This should be able to handle all...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 01:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy