Summary: I am working w/ this huge matrix file. Now in this matrix file 2nd column is strings. lets say its contain red, blue, black. now i can not load this...
Summary: Hi, Can anyone help me with the command to do the following search and replace in the following files: Files: file1 file2 file3 Search String: "GET /t...
Summary: Is it possible to do search and replace in unix Like : s/some date/current date/g some date and current date both are in same format (dd/mm/yyyy hh:mm...
Summary: Hi, I intend to do a search and replace for specific words for files under a directory (inclusive of subdirectories). I know how to do that file by fi...
Summary: I think you have to read the XML document using XML processor/parser and then write it again. I think that using unix commands will not be that useful...
Summary: My bad, put the wrong script in there, it should be: #!/bin/ksh stty erase ^? rtdir="/remote/directory" list=`cd $rtdir; ls` function changecities { r...
Summary: Yeah James ... it works fine ... thanx a bunch ... when the sql statements are placed with no gaps between them, multiple sql statements get treated ...
Summary: I have a file with thousands of records in it. Each record in the file being of a fixed length of 190 bytes. Example: 0003006315B000000002100601X64600...
Summary: I need help with either sed/awk or something else for unix replacing a set of numbers that is in the 2nd row and 3rd column of a file. these numbers ...
Summary: I m new to unix command, can everyone guide me for below scenario. I need to copy the files in temp folder and replace it in test folder. Before overw...
Summary: Hi all, I have a script that scan files, find old templet and replace it with new one. #!/bin/ksh file_name=$1 old_templet=$2 new_templet=$3 # Loop th...
Summary: Hi, I have the following script that finds and replaces a given string pattern in all files within the directory it is executed. What change does it ...
Summary: I have the following string filename(only has one double quote at end): 'arto.py"' I want sed to do a search and replace something with "Results/arto....
Summary: I have been doing quite a bit of reading on sed over the last day or two, and I am kind of stumped on one particular thing. Is there any way to save ...
Summary: Hi all, I have a lot of similar files that i have to update. I need an unix script that scan all these file, looking for old templet and replace it wi...
Summary: Hi I am using sed in a shell script. I am having problems in using parameters in sed for search and replace. TEST=`grep "'/" source | head -1` sed s/...
Summary: Frank, Seems like you wanna do "Search and Replace" operation on a text file right? For example if you want to find every single occurrence of "strin...
Summary: I am using a ksh script to parse/analyze some text files - files that have records that are over multiple lines. I have used sed and awk in the past; ...
Summary: This is great - does the job.. Let me try to get more out of this.. Here is the bigger pisture.. I have a file test.dat which contains Test.dat ------...
Summary: This should work #!/bin/ksh ################################## ## Line by line search and replace ## stty erase ^? counter=1 linecount=`wc -l testfile...
Summary: is there a way to replace the nth field in a variable in awk? e.g. given a variable in awk: Var="1,23,3,4" i need to replace the 3rd field(assuming de...
Summary: Thank you very much for your help.. it helped me very much. I have extension of this problem, I need to search in a file config.xml for <user>scott...