10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need a ksh script to replace indirect directory references in an .ini file with a env variable using sed or awk.
The .ini file is for example as such:
Need to replace an instance of .. or... (2 Replies)
Discussion started by: andyatit
2. Shell Programming and Scripting
I have a situation where a file "config.txt" looks like this
looking for the sed syntax to replace the "Nth" occurrence of Servername (i would apply the same logic to OS as well), want to replace the Nth... (4 Replies)
Discussion started by: alldbest
3. Shell Programming and Scripting
friends I am struck in a situation where I need to comment a line start with space as below in a file
root@LOCALHOST * rw
I should comment second line only
Any help please (16 Replies)
Discussion started by: mallak
4. Shell Programming and Scripting
I have looked around the forums and over online but couldn't figure out how to deal with this problem
Match on first column and if first column is... (1 Reply)
Discussion started by: jacobs.smith
5. Shell Programming and Scripting
I am struck in the issue which I want to share with all of you.
What I am trying to do is For every line in a file I have to replace a particular character from the given character in a file
Suppose the data is
I... (4 Replies)
Discussion started by: adisky123
6. UNIX for Dummies Questions & Answers
I have a file like this-
I want to print out only the lines after the last aa. How do I do this? I tried using grep -A and sed -n, but both didnt work as I wanted to.
Could someone help me out please.. (3 Replies)
Discussion started by: jamie_123
7. Shell Programming and Scripting
I have a csv file in which i have to search a particular string and replace the data in any column with something else. How do i do it using awk.
2002,Mike,USA,NY,20090130,342.00,M,Pending,N... (3 Replies)
Discussion started by: Sheel
8. Shell Programming and Scripting
I need help on replacing values in certain field in my file1.txt based on matched patterns in file2.txt using awk.
The blue color need to match with one of the data in field $2 in file2.txt. If match, BEGIN and FINISHED value in red will have a new value from field $3 and $4 accordingly.... (3 Replies)
Discussion started by: redse171
9. Shell Programming and Scripting
Lets say I have file.txt:
(Product:Price:QuantityAvailable) (: as delimiter)
I am doing a edit/update function.
I want to change the Quantity Available, so I tried using the SED command to replace 5, but my Price which is also 5 is changed instead.
(for the Banana... (13 Replies)
Discussion started by: andylbh
10. Shell Programming and Scripting
New to sed...
Have a file foo.txt (below).
Need to replace text on 2 lines, but can only feed sed the first few characters of each line (all lines are unique).
So, in my example, I have put '$' in place of what I need to figure out how to feed the whole line.
What I have thus far:
sed -e... (6 Replies)
Discussion started by: boolean2222