sorting by first field
echo -e 'x 2\nb 1\nm 3' | sort
sorting by second field
echo -e 'x 2\nb 1\nm 3' | sort -k2
sorting by second field using comma(csv) as field separator
echo -e 'x,2\nb,1\nm,3' | sort -t, -k2
sorting by fifth field with numeric order
df -h | sort -k5n
sorting by fifth field with reverse numeric order
df -h | sort -k5nr
count a chars in file order by last column
awk -F'a' '{print $0,NF-1}' /etc/passwd | rev | sort | rev
sort in numeric order
echo 1 2 10 | tr ' ' '\n' | sort -V
Export/import windows server DNS zones
You can use Export-DnsServerZone and Import-DnsServerZone . Export: Export-DnsServerZone -Name "test.com" -Filename "test...
Mais vistos
-
Find Users Who Have Never Logged On Use the following PowerShell Command; Get-ADUser -Filter { LastLogonDate -notlike "*" -and En...
-
Java Keytool Command These commands allow you to generate a new Java Keytool keystore file, create a CSR, and import certificates. A...
-
First you have to configure a wpad site in your IIS Open the proxypac.pac file you have previously created and save as wpad.dat. Copy wpa...