Guest

strange ^M at file name

By: a guest on Jan 28th, 2012  |  syntax: None  |  size: 0.50 KB  |  hits: 26  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. [root@file Engineer]# ls resume_Al_Kassar_9-29-08.doc.txt^M
  2. resume_Al_Kassar_9-29-08.doc.txt?
  3. [root@file Engineer]#
  4.        
  5. $toF = bashFileConvert($toF);//this step generated ^M
  6. $cmd = "$parser $file $arrow_str $toF";
  7.        
  8. $arrow_str = $arrow ? '>' : '';
  9. $file = bashFileConvert($file);
  10. $toF = bashFileConvert($toF);
  11. $cmd = "$parser $file $arrow_str $toF";
  12. echo $cmd . "rn";
  13. file_put_contents('resumeSh',$cmd."rn",FILE_APPEND);
  14.        
  15. $data = str_replace("rn", "n", $data);
  16. $data = str_replace("r", "n", $data);