Search Results

Search: Posts Made By: kunimi
2,270
Posted By kunimi
Find and replace based on other file
Hi All,

I need an enlightenment.
I have a file that some field need to be replaced.
sample : fileA.txt

abc,4#cik#221,text
abc,4#kus#343,text
...
...

what I need to replace is the "cik"...
16,740
Posted By kunimi
Hi Adhit, Thanks, but I already use that...
Hi Adhit,

Thanks, but I already use that one, and it's not working like the way I want.

And danmero,

My Solaris doesn't support that grep option.

Thanks anyway.
16,740
Posted By kunimi
I just find out this code, and it can get...
I just find out this code, and it can get previous line before pattern.

awk 'BEGIN {RS=""} /08999987059/ {print x ; print};{x=$0}' filenamelog.txt

but, I need to improve it more..
can someone...
16,740
Posted By kunimi
hei, thanks for the response! hm..my mistake...
hei, thanks for the response!
hm..my mistake not to describe it clearly

I have log file, for example, it's contains :

...
...

*****************************************
INCOMING TCAP...
16,740
Posted By kunimi
help, using awk to get paragraph
Hi,

I'm trying to find pattern in log file. I'm using awk to search the pattern and print the paragraph. And it's not working well like I want.
The file actually is TCAP message, it has format...
3,136
Posted By kunimi
find and remove last week dir
hello all,

I want to ask, how to find last week directory and then remove it..
I have a directory in path /home/backup/
and, inside backup dir, I have 6 dir :
- 01_20080414 ( today date )
-...
5,947
Posted By kunimi
hi blowtorch, thanks for the reply. ...
hi blowtorch,

thanks for the reply.
Ooo...I see..
I did "vi" my text file, and it has 1937 lines.
So, to make wc -l worked right, I have to make one blank line after the end of line.
5,947
Posted By kunimi
Problem count with wc-l command
Hi All,

I'm trying to count how many line in my *.txt file.
My *.txt file has 1937 lines.
The problem is : when I use wc -l command
the result is 1936.

Again, I did some test. I create a new...
Showing results 1 to 8 of 8

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