10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I want to find all the "," in my text file and then replace the commas to a tab. I found a script online but I don't know how to modify the script for my case. Any one can help? Thank you.
@echo off &setlocal
set... (2 Replies)
Discussion started by: forevertl
2. Shell Programming and Scripting
I have a file called abc.sed with the following commands;
I also have a second file called abc.dat and would like to substitute all occurrences of "1 with one", "2 with two", etc and create a new file called abc_new.dat
sed -f abc.sed abc.dat >... (10 Replies)
Discussion started by: pchang
3. Shell Programming and Scripting
I need your help, I have file like this:
67589 27 (2 Replies)
Discussion started by: attila
4. Shell Programming and Scripting
here is what i want to achieve... consider a file contains below contents. the file size is large about 60mb
INSERT INTO `table1` (`id`, `action`, `date`, `descrip`, `lastModified`) VALUES (1,'Change','2011-05-05 00:00:00','Account Updated','2012-02-10... (10 Replies)
Discussion started by: vivek d r
5. Shell Programming and Scripting
I am very new to UNIX and I have tried this for a longtime now and unable to crack it....
There is a file that is continuously updating. I need to search for the string and find the date @ which it updated every day.....
String is "work started"
The log entry is as below:
... (1 Reply)
Discussion started by: Nithz
6. Shell Programming and Scripting
I am new to this forum and new to sed/awk programming too !!
I need to find particular string in file1(text file) and replace it with a value from another text file(file2) the file2 has only one line and the value to be replaced with is in the second column.
(assert (=... (21 Replies)
Discussion started by: paramad
7. UNIX for Dummies Questions & Answers
I have a file in which I want to do multiple find and replace of strings. For a single replace I can implement:
sed -i 's/old/new/' <input_file>
I have a second file that contains the old and the new values like the arbitrary example below:
rst pqr... (3 Replies)
Discussion started by: Gussifinknottle
8. Shell Programming and Scripting
/home/$USER/.config replace it with "" (empty)
Is this possible?
I think you should play a bit with sharps ## and sed:b: (2 Replies)
Discussion started by: hakermania
9. Shell Programming and Scripting
I am looking for a replacing a string in a in multiple *.sql files in directory with a new string without using a temporary file
Normally I can use sed command as below
for W in ls `FILE*.sql`
sed 's/OLD/NEW/g' $W > TEMPFILE.dat
mv TEMPFILE.dat $W
But Here in my... (9 Replies)
Discussion started by: raghutapal
10. Shell Programming and Scripting
I need an enlightenment.
I have a file that some field need to be replaced.
sample : fileA.txt
what I need to replace is the "cik" and "kus" field to their fix value.
I have another file : fileB.txt that has value of "cik and... (1 Reply)
Discussion started by: kunimi