Search Results

Search: Posts Made By: alvinoo
9,142
Posted By Aia
NFS sharing node: yum install nfs-utils vi...
NFS sharing node:

yum install nfs-utils
vi /etc/exports # and add the share entries there.

# Example:
# that allows any node in the 192.168.0.0 network to connect to /share

/share...
1,320
Posted By RudiC
I dont really understand your approach, but this...
I dont really understand your approach, but this awk -F, '{T[$2] = T[$2] FS $1} END {for (t in T) print substr (T[t],2), t}' OFS=: file
HostA,HostB:XYZ
HostC:ABC will turn your input sample into...
2,647
Posted By rdrtx1
try something like: awk ' ! fn[FILENAME]++...
try something like:
awk '
! fn[FILENAME]++ {f[fc++]=FILENAME}
{f[FILENAME]=FILENAME; a[$0]=$0; l[FILENAME SUBSEP $0]=$0}
END {
print "common: " f[0], f[1] , f[2]
for (i in a) if (l[f[0]...
2,647
Posted By Scrutinizer
A different approach: awk ' /:/{ ...
A different approach:
awk '
/:/{
sub(/:/,x)
f=$1
next
}
{
A[$1]=A[$1] (A[$1]?",":x) f
}
END {
for(i in A)
B[A[i]]=B[A[i]] RS i
for(j in B)
print j ":" B[j]
}
'...
1,896
Posted By MadeInGermany
Move the /Windows\\fonts\\/ {P=1} before the P...
Move the /Windows\\fonts\\/ {P=1} before the P {print $0"<br>"} action (print if P is non-zero).
2,709
Posted By MadeInGermany
You can handle the "T" and "S" within awk. awk...
You can handle the "T" and "S" within awk.
awk '
(/Privilege Use/) {P=0}
(P) {print $0, (/No Auditing/) ? ";T" : ";S"}
(/Object Access/) {P=1}
' AdvancedAudit.txtWhere do the 1.1.1.3.1.1.1...
2,709
Posted By MadeInGermany
Then you can get it with awk: if [ "`awk -F"[...
Then you can get it with awk:
if [ "`awk -F"[ =]+" '$1=="net.ipv4.icmp_echo_ignore_broadcasts" {print $2}' results.txt`" = "1" ]
then
...
2,921
Posted By pilnet101
You should really use a proper HTML parser tool...
You should really use a proper HTML parser tool for parsing HTML. If all your data is in the same format as your sample data, you can use the below simple awk command:

awk -F"[<>]" '{print...
Showing results 1 to 8 of 8

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