Search Results

Search: Posts Made By: teodora
3,256
Posted By teodora
Thanks for your answer:) I didn't post all...
Thanks for your answer:)

I didn't post all the script. I don't understand why $file is the culprit.
May be it's due to the use of g option for replacement. Not sure.

I believe that the empty...
3,256
Posted By teodora
This is just a part of the sed use. I'll try to...
This is just a part of the sed use. I'll try to use -x option to get more info.

thanks
3,256
Posted By teodora
This is a sed sample I use for m in `awk '$0...
This is a sed sample I use

for m in `awk '$0 ~ /urlWebservice/ {print}' ./localConfiguration.conf`
do
if [ -n "$m" ] ; then
t=`echo $m | cut -d"=" -f1`
for j in...
3,256
Posted By teodora
sed trouble
Hello

I use sed to insert text into files in unix shell scripts and I've noticed that sed create empty files such as
sed6OAPQ6, sedioICv3, sedOYkVW6, sedu1yKVY, etc.

Whay sed creates these...
2,202
Posted By teodora
awk not, but sed can update a file by...
awk not, but sed can update a file by substitution, insert, etc.
2,202
Posted By teodora
Thanks, but I need to update values so I...
Thanks, but I need to update values so I believe I must use sed.

Maybe i need awk to search files and sed to update?

rgds

Teo
6,033
Posted By teodora
update a file with values from other file in shell bash
Hello

I need to write a shell script to update properties between files.

I have 2 files as follow:

file1

urlWebserviceCheckAddress^=McoConfigGlobal.commonGLOBALUrlWebservice


file 2...
2,202
Posted By teodora
file manipulation
Hello

I need to write a shell script to update properties between files.

I have 2 files as follow:

file1

urlWebserviceCheckAddress^=McoConfigGlobal.commonGLOBALUrlWebservice


file 2...
3,208
Posted By teodora
ok, thanks
ok, thanks
3,208
Posted By teodora
My script contains this line at the begining ...
My script contains this line at the begining

. ${DirName}/localConfiguration.conf

where localConfiguration.conf is a conf file

The content of the conf file is:
...
3,208
Posted By teodora
As sample for i in `set | grep...
As sample

for i in `set | grep urlWebservice`
do
field1_awk=`echo "$i" | awk -F= '{print $1}'| grep urlWebservice`
if [ $field1_awk != "" ] ; then
field2_awk=`echo "$i" | awk...
3,208
Posted By teodora
Oh, thanks, I've already use it but I have a...
Oh, thanks, I've already use it but I have a problem. In addition to the shell variables it prints the rest of script begining with the method which calls the command set.
3,208
Posted By teodora
how to parse the result of "set" command
Hello,

I would like to parse all the shell variables and get the name and the value for each variable. Set command get the list of variables but I don't know if there is a command such getopts to...
Showing results 1 to 13 of 13

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