Search Results

Search: Posts Made By: plelie2
1,928
Posted By plelie2
ok, great this works fine can you give some...
ok, great this works fine
can you give some more explanation so I understand better what I'm doing ?
what is 1234 ? can I personalize this ?
what is 22 ?

---------- Post updated at 09:57 AM...
1,928
Posted By plelie2
the servers are on different networks that's the...
the servers are on different networks that's the reason for this setup.
s1 is on an internal network and s3 is behind a firewall
the only way to go from 1 to 3 is over 2
but, as already said, I...
1,928
Posted By plelie2
ssh from server 1 over server 2 to server 3
in fact i want to do something like

ssh serv01 "gunzip < zipped.tar.file.tar.gz" | ssh serv03 "tar xvfn -"

while standing on server 2

The point is that server 1 and 3 are on different...
10,062
Posted By plelie2
thank you all for the valuable help ...
thank you all for the valuable help
know_d_unknown, you proved my case that this is feasable with sed (so, I won 12 beers from one of my colleaugues :-) )
but I also agree that the solution of...
11,679
Posted By plelie2
1) the files are all in the same directory and...
1) the files are all in the same directory and their are no subdirs
2) the frequency and the number of files changes from 60 per year to 20 per week depending on some external factors
3) this are...
11,679
Posted By plelie2
find the most recent file containing a certain string
I want to find the most recent file containing ' NORESETLOGS"
I'm already here but, how to sort this now in a correct way ?
By the way, my version of find does not know about 'fprint'

find ....
10,062
Posted By plelie2
Franklin52, nice trick, can you give some...
Franklin52,
nice trick, can you give some explication ?
Having the code is nice but, I would like to understand it also :-)
This makes it eassier to build on if other situations should occure
...
10,062
Posted By plelie2
sed problem - delete all lines until a match on 2 lines
First of all, I know this can be more eassily done with perl or other scripting languages but, that's not the issue. I need this in sed. (or wander if it's possible )

I got a file (trace file to...
15,156
Posted By plelie2
I found that it's a good practise to provide the...
I found that it's a good practise to provide the full paths if working in cron
You can use variables in your script which contain the paths but, you should provide them
18,120
Posted By plelie2
first of all you specify KSH but the error...
first of all
you specify KSH but the error states you're working in bash

this wotks for me
@ecarh0u:> value=""
@ecarh0u:> value=`sqlplus -s $user/$pwd@osdp << EOF
more>set pages 0 feed off...
1,632
Posted By plelie2
i already foud a solution escaping the * with a...
i already foud a solution
escaping the * with a \ does the trick
although, I still do not understand why the first statement worked and the second did not
1,632
Posted By plelie2
does someone see the difference
this works (session is set in -x)

[oem92]@@ecar0o:/html/dbs/public/cgi-bin> ssh ecar0o.bc -l oracle ssh cas_a "find /casa/dbcrea/`echo casa | cut -c 1-3`/rel55595 -type f ! -name '*.dbf' -exec ls...
5,668
Posted By plelie2
what is the goal ? must your number be min 4...
what is the goal ?
must your number be min 4 digits ?
must your number be min and max 4 digits ?

there are several options
I prefer the following

subtract 999 from your number and check the...
5,185
Posted By plelie2
A
As far as I can see you've got 2 problems
1) you must calculate the date on unix (not so easy)
By the way, how many days do you want to go back ?
You wrote "the backlog from some tables. Now that...
23,759
Posted By plelie2
As you can see, a simple script does the trick ...
As you can see, a simple script does the trick

[dummy806]@@ecar0o:/opt/oracle/TOOLS/generic_unix/scripts> cat ttt
12.107.1.1
12.107.9.54
12.108.3.89
12.109.109.4
12.109.6.3...
3,419
Posted By plelie2
grepping
The above is a possibility. However you'll only get the occurences where there are exactly the number of requested lines. If the requested string would be placed at the end of the file you would...
20,320
Posted By plelie2
Thanks, works fine. My aversion to awk or sed ...
Thanks, works fine.
My aversion to awk or sed
1) I got a good book about it but, no team to practise/learn it
2) the people who will be using/changing my script don't know anything of awk/sed =>...
20,320
Posted By plelie2
counting characters
Dears,

I would like to count the number of "(" and ")" that occur in a file.
(syntax checking script). I tried to use "grep -c" and this works fine as long as there is only one character (for...
8,752
Posted By plelie2
Dear, First of all, I don't know if you still...
Dear,
First of all, I don't know if you still need it. Anyway perhaps someone else can use it.
As far as I can see this is not really an unix problem.
Perhaps you should state in the beginning of...
8,174
Posted By plelie2
Dear, Could you refrase your question cause...
Dear,

Could you refrase your question cause I'm not sure what you want to do. Probably I can help.

:confused:
38,170
Posted By plelie2
yeah, Can you post a small example of the...
yeah,

Can you post a small example of the output you got
38,170
Posted By plelie2
;) I propose to handle this in 2 steps (whithin 1...
;) I propose to handle this in 2 steps (whithin 1 script off course).
First make a connection and execute the ftp command dir. Make sure u use the option -v and capture your ftp output in a temp...
9,855
Posted By plelie2
P.S. you can add as many characters as you whish...
P.S. you can add as many characters as you whish between a set of brackets
so [aze][aze] stands for aa,az,ae,za,zz,ze,ea,ez,ee:p
9,855
Posted By plelie2
:rolleyes: you don't need the pipe when you use...
:rolleyes:
you don't need the pipe when you use square brackets
it works like this

"*"t[ax][gt] means everything ending on "t" "a or x" "g or t" this is tag,tat,txt,txg

when you write...
9,855
Posted By plelie2
try this find . -name "*"t[xa][tg] this...
try this
find . -name "*"t[xa][tg]

this will also give you files ending on tat and txg,
but if you send your request afterwads trough an egrep like this find . -name "*"t[xa][tg] | egrep -v...
Showing results 1 to 25 of 30

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