I am generating a pipe |
delimited CSV file whereby one of the columns contains commands which are executed by a given user in powershell.
User | Date | Command
However, commands are likely appear as below as the pipe character leads one command to another:
command one | command two | command three
How can I treat each command in my python code so that the pipe characters within commands do not affect the delimiting of the CSV file?
I have considered replacing the pipe character with an alternate character however this would ruin the context of the command.