I need a utility which will scan in a text file and search and replace strings. I also want to keep track of how many strings I've replaced. The following is an example paragraph and which text to replace.
"Bill Gates" with "Mr. Noodles",
"Gates" with "Noodles",
Hello,
I need help in fetching data from a delimited file , into a 2D array.
Sample Input File:
"|" as delimiter
Code:
A|123|446pr;
B|46|hello89
krp;
C|78|ystp90
67;
D|ga|456;
Please be advised that ";" is the line separator (not "\n"). Could you please write an awk script to fetch this into a 2D array.
Output: array[0,1]=123
Thank You !
I have the following data in a text file.
Code:
"A",1,"MyTextfile.CSV","200","This is ,line one"
"B","EFG",23,"MyTextfile1.csv","5621",562,"This is ,line two"
I want to extract the fileNames MyTextfile.CSV and MyTextfile1.csv.
The problem is not all the lines are delimited with ","
There are
Hi,
I am looking for assistance over shell or perl (without XML twig module) which replace string in XML file under particular branch..example of code file sample..
Exact requirment : Replace "Su saldo es" in below file with "Your balance" but only in XML branch of Text id=98 and Text Id=12 Not globally.
==
HTML Code:
<Text Id="98">
<Language id=&quo
I need help extracting a column in a file separated by quotations. I would like to extract the first column of data and write it to a flat text file.
Hi All, I have a file. This file contain huge amount of data. I want to modify this file. I want enter new line when count of "~ character is 79.
Hi All,
I need to create a script to process on 10 files.
I have a file which contains fields comma separated & with each field surrounded by quotes. The 4th field contains either a serial number, the text ABC, the text XYZ or it's blank. I want to only extract records which have a serial number.
Hello,
I have a csv file with "^" as text delimiters and "|" as field delimiters. It's converted from a xls file. One record looks like this:
Code:
^Tablete Internet^|Archos|501838|^Tableta Internet ARCHOS 80 G9
...| ...
(more lines)
...