Search Results

Search: Posts Made By: seaten
3,277
Posted By seaten
sweet, worked good for me.
sweet, worked good for me.
3,277
Posted By seaten
sed command for using with back slashes
hi all,


im trying to use a sed command to remove all occurenes of \p\g

what i used so far is : sed 's!\p\g!!g' file

but this doesnt work ?

Any ideas, thanks for helping.
2,387
Posted By seaten
using sed with indexes
Hi people,

Is this possible and if so any tips are very welcome.

Im trying to do the following:


this is what I have:
800__1__
this is what I want: ...
1,704
Posted By seaten
nice one, cheers
nice one, cheers
1,704
Posted By seaten
thanks for that I read the chapter but the...
thanks for that I read the chapter but the solution in 4.25 doesn't work ?,
I even tried out an example where a back slash was the end of the line so I just had to paste in the sed command but no...
1,704
Posted By seaten
sed help
I would like to connect two lines together if there is a colon on the first line.


for example:

:
INTERNAL


should be :INTERNAL


if for example it was all one line
: INTERNAL
I...
6,552
Posted By seaten
SunOs 5.9 when I add your latest change I...
SunOs 5.9

when I add your latest change I have a syntax error.

this is what i have :

BEGIN{}
/ID-INTERNAL[^-]/ \
{
gsub("ID-INTERNAL[^-]", "1",$0)
}
END{}
3,633
Posted By seaten
Ok, Take a look at the following sample...
Ok,


Take a look at the following sample file which I want to work on:
DELETE FROM TABLE
WHERE ID_INTERNAL = :TABLE.ID-INTERNAL, :ID-INTERNAL-CRAZY + :ID-INTERNAL
:ID-INTERNAL-OPEN...
6,552
Posted By seaten
my operating doesnt recognize "gsub" It say...
my operating doesnt recognize "gsub"

It say syntax error I have the following:

BEGIN{}
/ID-INTERNAL[^-]/ \
{
gsub("ID-INTERNAL[^-]", "1")
}
END{}
3,633
Posted By seaten
Thanks RishiPahuja, That make things clear....
Thanks RishiPahuja,

That make things clear. You might have noticed a new topic I have posted which describes a different solution to this problem.

The reason why is that ID-INTERNAL, will be...
6,552
Posted By seaten
a system call for sed in a awk script
Hi,

this is my test file :

DELETE FROM TABLE
WHERE ID_INTERNAL = :TABLE.ID-INTERNAL, ID-INTERNAL-CRAZY
ID-INTERNAL-OPEN
ID-INTERNAL

/ID-INTERNAL/


I want all occurences of...
3,633
Posted By seaten
Thanks for that it works now, any chance you...
Thanks for that it works now, any chance you could explain what you exactly did please ?
3,633
Posted By seaten
no didnt work, because I might have an...
no didnt work,

because I might have an instance of ID-INTERNAL,
3,633
Posted By seaten
doing a sed on certain variables
Hi guys,

I want to replace certain values with the number 1.

But it is also replacing other values which contain the value I want to replace. e.g.:


I want to replace ID-INTERNAL with 1,...
4,509
Posted By seaten
redirecting password as username for rlogin
Is the following even possible ? by echo $3, I mean enter password when prompted for it. My main issue is that it would deal with a prompted password, which is passed from the command line like this:...
3
6,087
Posted By seaten
Sun OS 5.9 Ok, on the command line I...
Sun OS 5.9

Ok,


on the command line I have the user entering :

-server -username -password

then in the script I have :

rlogin -l username host

but then I'm prompted for a...
3
6,087
Posted By seaten
rlogin
I'm comparing a table from two databases on two different servers to check for equality.

1. How do I use rlogin from a script , is it like this ?
rlogin -l $username $server1

where $username...
2
2,681
Posted By seaten
rlogin
Hi,

I have a script and need to use rlogin to access "server1".

As there will be different servers used and there will be different usernames and passwords.


Is it possible to pass the...
1,696
Posted By seaten
Doing a sed on a variable help !
Hi,

So what I'm trying to do is

I have these variables and if they have a dot in them , I want everyting before and including the dot removed.

Any ideas ?

Something like this I would want...
14,712
Posted By seaten
thanks it works now !
thanks it works now !
14,712
Posted By seaten
thanks for response but didn't do the job ...
thanks for response but didn't do the job

for example : OF CRSTCBU1011A-REC TESTING

I want "OF CRSTCBU1011A-REC " to be removed but still keep the word TESTING and but your code removed that...
14,712
Posted By seaten
tokens in unix ?
im trying to remove all occurences of " OF xyz " in a file where xyz could be any word assuming xyz is the last word on the line but I won't always be.

at the moment I have sed 's/OF.*//'

but...
3,119
Posted By seaten
doing a sed with variables
Hi,

I'm trying to do the following , I have certain variables in a file and then I want to check for these variables in a certain cobol file to see if they contain a certain package if so replace...
2,342
Posted By seaten
doing a sed with variables
Hi,

I'm trying to do the following , I have certain variables in a file and then I want to check for these variables in a certain cobol file to see if they contain a certain package if so replace...
Showing results 1 to 24 of 24

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