Vim tip: Show ^M and remove it
-- or replace CRLF with LF
-- or replace 0d0a with 0a
-- or replace DOS line ending with Linux line ending
Display CRLF as ^M:
:e ++ff=unix
Substitute CRLF for LF:
:1,$ s/\r\n/\r/g
| Action | Key strokes |
|---|---|
| Copy 3 lines into buffer "a" | "ay3 |
| Paste from buffer "a" | "ap |
$Servers = Get-Content D:\Server.txt
foreach ($s in $Servers)
{
$Interfaces = Invoke-Command -ComputerName $s -Command {Get-WmiObject Win32_NetworkAdapterConfiguration}
$NumInterfaces = $Interfaces.Length
$LocalInterfaces = 0
$LocalIP = ""
foreach ($If in $Interfaces)
{
$IsLocal = $False
foreach ($ip in $If.IPAddress)
{
if ($ip.StartsWith("10.10."))
{
$IsLocal = $True
break;
}
}
if ($IsLocal)
{
$LocalInterfaces++
$LocalIP += $ip + " "
}
}
if ($LocalInterfaces -ge 2)
{
$s
$LocalIP
}
}
Finally, here is what I got out of it:
| Filesystem | File Size Limit | Filesystem Size Limit |
|---|---|---|
| ext2/ext3 with 1 KiB blocksize | 16448 MiB (~ 16 GiB) | 2048 GiB (= 2 TiB) |
| ext2/3 with 2 KiB blocksize | 256 GiB | 8192 GiB (= 8 TiB) |
| ext2/3 with 4 KiB blocksize | 2048 GiB (= 2 TiB) | 16384 GiB (= 16 TiB) |
| ext2/3 with 8 KiB blocksize (Systems with 8 KiB pages like Alpha only) | 65568 GiB (~ 64 TiB) | 32768 GiB (= 32 TiB) |
| ReiserFS 3.5 | 2 GiB | 16384 GiB (= 16 TiB) |
| ReiserFS 3.6 (as in Linux 2.4) | 1 EiB | 16384 GiB (= 16 TiB) |
| XFS | 8 EiB | 8 EiB |
| JFS with 512 Bytes blocksize | 8 EiB | 512 TiB |
| JFS with 4KiB blocksize | 8 EiB | 4 PiB |
| NFSv2 (client side) | 2 GiB | 8 EiB |
| NFSv3 (client side) | 8 EiB | 8 EiB |