is this helpful: // --- module test; import std; void main() {auto result = execute(["bash", "-c", "nmap -sn 192.168.11.0/24 | ack -B2 \"Phillips\""]);
if(canFind(result.to!string, "Host is up")) writeln("Host is up"); else writeln("Host not found."); } // ---