Jump to content

Special characters - /N dissappers in command.


vidyashankara

Recommended Posts

I am calling the following system command

[code]
$command = "sed '1~3 {N;N;s/\n //g}' $biofile > $id.biomat1";
s ystem($command, $output);
[/code]

for some reason, It changes to

[code]
$command - sed '1~3 {N;N;s/ //g}' $biofile > $id.biomat1";
[/code]

the /n is missing.

I changed it to
[code]
$command = "sed '1~3 {N;N;s/\ ".\n." //g}' $biofile > $id.biomat1";
s ystem($command, $output);
[/code]

but the php has a space between \ and n. How do i get rid of that space?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.