Search Results

Search: Posts Made By: netbanker
1,665
Posted By netbanker
that works perfectly! thank you
that works perfectly!
thank you
1,665
Posted By netbanker
How to find previous string based on an input string?
Hi,

I did some research but cannot find the right solution so hopefully someone can help me here.


I have a long string format like:

VAR=111:aaaa,222:bbb,333:ccc

it could be ...
1,068
Posted By netbanker
Singh, Thank you so much, it did the trick! ...
Singh,

Thank you so much, it did the trick!

btw, any hint why sed not working in my case?
1,068
Posted By netbanker
How to print the lines between two pattern in a file?
file like:
services:
XXXXXXXX:
XXXXXXX:
XXXXXXXXX1
XXXXX
XXXXXXXXX
DDDDDDDDDDD
BBBBB:
version: 11.2.0.4
services:
...
1,269
Posted By netbanker
Use sed to get first matching pattern
HI, I have a file:
listenerport:
- 1521
- 10520
- 10521
- 10522
- 10523
instances:
listenerport:
listenerport:
- 1521...
4,724
Posted By netbanker
How to grep the words with space between?
see I have a text like:

27-MAY 14:00 4 aaa 5.30 0.01
27-MAY 14:00 3 aaa 0.85 0.00
27-MAY 14:00 2 aaa ...
1,722
Posted By netbanker
Thank you sir. Unfortunately, still litte...
Thank you sir.

Unfortunately, still litte flaw. see the sample file, the object can be different so I would like to keep the oject and command type:

type name: SYS.LCR$_ROW_RECORD
source...
1,722
Posted By netbanker
thanks spacebar. I hate myself but here is more...
thanks spacebar. I hate myself but here is more challenging txt:

source database: WEBSUN1.WORLD
owner: WS_APP_OWNER ...
1,722
Posted By netbanker
thank you Sir, my file has some other data I...
thank you Sir,

my file has some other data I donot want to delete
source database: WEBSUN1.WORLD
owner: WS_APP_OWNER ...
1,722
Posted By netbanker
Need a shell script to clean data
Hi, Appreciated if anyone can throw some hint

I have a file format like this:
old(1): PRCNCP
1 ...
2,885
Posted By netbanker
looks good, Thanks Cabrao~
looks good, Thanks Cabrao~
2,885
Posted By netbanker
how to combine two files into one file using shell scrip
eg.
file 1 has:

4 0 8628380 653253 0 0 0 0 0 0
2 0 8626407 655222 0 0 0 0 0 0
4 0 8633729 647892 0 0 0 0 0 0
5 0 8646253 635367 0 0 0 ...
2,635
Posted By netbanker
got it, thanks everyone for the help~
got it, thanks everyone for the help~
2,635
Posted By netbanker
what about if I want to get the hour in ls -lrt? ...
what about if I want to get the hour in ls -lrt?

abc*abc*/u01/app/abc/local/batch_log>ls -lrt
-rw-r--r-- 1 oracle dba 348236 Jul 01 09:15 mon2.sh_100701.log


ls -lrt mon2*.log |...
2,635
Posted By netbanker
trim 0 ahead of a time,pls help~
Hi,

I am trying to write a ksh to compare the time in a date

date
Thu Jul 1 09:01:24 PDT 2010


when I try to get hour

date | awk '{print $4}' | cut -f1 -d:
08

how I can trim the 0...
5,085
Posted By netbanker
how to get number char from a string
for example:

i hav a string like :

/rmsprd/arch01/rmsprd/rmsprdarch72736.log

how I can extract

my_num=72736?

I know I can

echo "/rmsprd/arch01/rmsprd/rmsprdarch72736.log" | tr "/"...
3,442
Posted By netbanker
change the filename by adding up 1 each time, tricky one
:confused:


Hi, I posted here before for adding up of datafile name each time, here is an example:

#!/bin/bash

cutdfname="data11.dbf"

newname=$(echo "${cutdfname}" |tr "[A-Z]"...
2,359
Posted By netbanker
rock and roll
you make my world :)

Thank you guy and enjoy new year eve
2,359
Posted By netbanker
a bit tricky to change it multiple rows in one row and ...
Hi, I have an output file like:

1415971694 376 (12);
3434327831 376 (7);
2989082873 332 (3);
4075357577 332 (3);
1221064374 376 (2);
...
2,290
Posted By netbanker
it works for most of creteria so I would say it...
it works for most of creteria so I would say it is good enough, I will add some more features to it as well :)

Thank you all for the help!
2,290
Posted By netbanker
here is a test result: ...
here is a test result:

stzhao:pts/7:sambar:dman > cutstring.pl test.txt
12rgm.log
mgr2.dbf
tool2.dbf
usr2.dbf
wow20.dbf
wow3wow.dbf
# Could not parse the following line:
11number12.dbf
#...
2,290
Posted By netbanker
Thanks Smiling Dragon
It works great!


but is there a way that I can use korn shell to accomplish it?
2,290
Posted By netbanker
change the format of a giving file ( a bit challenge) Thank you
Hi,

I have a file like this:

mgr1.dbf
tool.dbf
usr.dbf
wow19.dbf
wow2wow.dbf

Can anyone help change the format after each line of reading to:

mgr2.dbf # add 1 of *1.dbf
tool2.dbf #...
Showing results 1 to 23 of 23

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