Search Results

Search: Posts Made By: rogers42
2,506
Posted By rogers42
Hi Folks, Thanks to everybody who took the...
Hi Folks,

Thanks to everybody who took the time to reply. And especially to the last two posters for sharing such elegant yet simple code.

Exactly, what I was looking for.

Thanks

rogers42
2,506
Posted By rogers42
Need help embedding Unix commands in a shell script
Hi Folks,

I have a text file which may or may not have any data.
I would like to email the file, via a Korn shell script, if the file is not empty.

I am fiddling around with the wc -l command,...
58,850
Posted By rogers42
Thanks for the tips folks. Much appreciated. ...
Thanks for the tips folks. Much appreciated.

rogers42
58,850
Posted By rogers42
Need help to escape special characters in Korn shell script
Hi,

I would like to display the following message from my shell (Korn) script

Copy "old_file.txt" to "new_file.txt"

My code looks as follows

print "Copy "old_file.txt" to "new_file.txt""...
3,865
Posted By rogers42
Changed my mind
Thanks. Both the suggestions worked. Since I am planning on calling sed for the same file but for multiple strings, I notice the file takes a lot of abuse. Hence, I have decided to go with nawk.
...
3,865
Posted By rogers42
Passing variables to sed
Hi Folks,

How can I make the following to work from a korn shell?

old="OLDSTRING"
new="NEWSTRING"
file="myfile.txt"
sed -n 's/$old/$new/gp' $file

Thanks in advance

rogers42
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 04:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy