Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by amjadcsu

  1. amjadcsu

    deleting a pattern in all files in a directory

    i tried the script $line =~ s/<!\[CDATA\[([^\]]*)\]\]>/<$1>/ig; not the perl one liner
  2. amjadcsu

    deleting a pattern in all files in a directory

    Ok thanks Now i want to do something more like if i have <![CDATA[#IRC]]> i want only IRC thanks
  3. amjadcsu

    deleting a pattern in all files in a directory

    ok It does not do anything. the perl liner does not change anything in original file
  4. amjadcsu

    deleting a pattern in all files in a directory

    ok now instead of chat data if i have something dyanmically created by chat bots It could be any damn string and not chat data. Also the format is <![CDATA[#IRC]]> where IRC can be replace by any string I want the output to be <#IRC>
  5. amjadcsu

    deleting a pattern in all files in a directory

    ok the problem is that temp file is created but it is blank. As such nothing changes in original xml files
  6. amjadcsu

    deleting a pattern in all files in a directory

    well i would like to use both . whichever is easy
  7. amjadcsu

    deleting a pattern in all files in a directory

    hi folks I have a directory called xml_logs which records real time conversation on IRC servers. This directory consists of xml files Each file has a format <!CDATA[chat data]]> in it I need a script to remove this pattern from each file in directory and the result should be <chatdata> i...

Part and Inventory Search

Back
Top