Search Results

Search: Posts Made By: ocramas
3,550
Posted By ocramas
Hi Don, Look, this example, it is .....
Hi Don,


Look, this example, it is .. really weird for me.

My file is the following:

Type of msg: -in_full [+]
>date >alr text
>ID_on_exit
AWXX-Ready to commit (98) msg type:...
3,550
Posted By ocramas
Thanks Don, Yeah, I just saw that I put the...
Thanks Don,

Yeah, I just saw that I put the perl line and not my seds and awks .

Well, the thing is, that it is not working yet, I am running linux here.

Basically, I need to match the exact...
3,550
Posted By ocramas
awk to get text between 2 strings
Hi,

I am trying different scenarios now, 1 of those is getting the text between the following 2 strings.

Type of msg: -in_full [+]
>date
>alr text
>ID_on_exit
AWXX-Ready to commit...
1,541
Posted By ocramas
hmm ... how do I check that? do you know. ...
hmm ... how do I check that? do you know.

Because the problem is, that I need to start another application that will take 2 gigs at once, and it is failing because it is showing memory lower than...
1,541
Posted By ocramas
Solaris memory reported incorrectly by top
Hi guys,

I got an issue today with one of my servers. The guy is reporting by top only 1.8 available Gig for physical memory.

I see my processes and they don't even get to 15Gigs, I have 64...
1,203
Posted By ocramas
Grouping output with sum
Hi Gurus,

I would like to do in a script something that is really easy in sql.

Basically, I have a file with a fomat like the following:


name1_test 501
name 1 33 510...
4,474
Posted By ocramas
Thanks guys, this last one works like a charm.
Thanks guys, this last one works like a charm.
4,474
Posted By ocramas
hmm, that one it is just returning 0.
hmm, that one it is just returning 0.
4,474
Posted By ocramas
sed or awk, cut, to extract specific data from line
Hi guys,

I have been trying to do this, but... no luck so maybe you can help me.

I have a line like this:

Total Handled, Received, on queue Input Mgs: 140 / 14 => 0

I need to, get the...
Forum: Solaris 10-26-2012
1,806
Posted By ocramas
That is a good one, but.. what does it happen if...
That is a good one, but.. what does it happen if the files are in multiple folders and subfolders?
Forum: Solaris 10-25-2012
1,806
Posted By ocramas
Samples: TEST1_B.tt TEST1_B.txt ...
Samples:

TEST1_B.tt
TEST1_B.txt
TEST1_B.tif
TEST1_B.mt
TEST1_B.q
TEST1_B.delta

I need them to be like:
Mar_L.tt
Mar_L.txt
Mar_L.tif
Mar_L.mt
Mar_L.q
Mar_L.delta

Thanks
Forum: Solaris 10-25-2012
1,806
Posted By ocramas
Renaming hundreds of files at the same time
Hi,

I am having issues trying to figure out how to rename files like this:

TEST1_B.tt

To

SQP_CAN_B.tt

I have hundreds of files like those, I need to rename them automatically.
Any...
12,594
Posted By ocramas
holy guacamole!!! .. that was great! thanks
holy guacamole!!! .. that was great!

thanks
12,594
Posted By ocramas
Additional issue
Hi,

Now I need to add something else to the command, the current one works just great, but I need to ... get some number of lines before and read to the end.

awk '/IP *= *1\.1\.1\.1/...
12,594
Posted By ocramas
What is the meaning of.... while($0!~...
What is the meaning of....
while($0!~ /SNMP-END/). ??

I know what it is doing, but I don't understand the $0!...

Thanks
12,594
Posted By ocramas
Thanks guys, the last post from msabhi did the...
Thanks guys, the last post from msabhi did the trick! but I was also able to get a lot of good things from the previous answers.

thanks,
12,594
Posted By ocramas
Thanks for the reply. For some reason I am...
Thanks for the reply.

For some reason I am getting the following error.

awk: syntax error near line 1
awk: bailing out near line 1
Exit 2

I am using solaris, not sure if changes something...
12,594
Posted By ocramas
Getting lines before and until next pattern in file /awk, sed
Hi,

I need to get specific parts in a large file.

I need to:
Get a line containing an IP address, and read from there to another line saying ***SNMP-END***

So, I have the start and the end...
1,684
Posted By ocramas
[SOLVED] expr help - managing strings
Hi guys,

I need to use regular expressions in linux and I'm not quite experience in that field, maybe someone could give me some help with it.

Basically, I need to take a text like this.
...
27,345
Posted By ocramas
Yes it should work, but I personally should print...
Yes it should work, but I personally should print the output first and not go directly to remove them.

Thanks
Forum: Linux 05-19-2011
6,200
Posted By ocramas
Session "hijacking" - Recover lost session
Hi Guys,

Is there a way to recover a lost session? I was working in a server and that lost the connection, now, I have a new session but all the previous processes that I was running, like...
1,552
Posted By ocramas
Thanks for the reply ... it worked fine !
Thanks for the reply ... it worked fine !
4
1,488
Posted By ocramas
'^$' is ... for a blank line ... Try grep...
'^$' is ... for a blank line ...

Try grep "[[:space:]]" ... it should work like that.
4
1,488
Posted By ocramas
You can use just grep " " .. to find a blank...
You can use just grep " " .. to find a blank space.

Marco,
1,547
Posted By ocramas
Hi, Why don't you try to use sed...
Hi,

Why don't you try to use sed instead...., like this.

sed ’s/70XL/76XL/g’ input_file > output_file


BTW - If you have too many files, you can process them with a script using a "for i in...
Showing results 1 to 25 of 28

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