Search Results

Search: Posts Made By: brichigo
1,710
Posted By brichigo
Hi Ravinder, It is working as expected....
Hi Ravinder,

It is working as expected. Thank you.

One more question, how can I add leading white spaces on the same line so that the xml format is still the same as before?

---------- Post...
1,710
Posted By brichigo
Thanks Ravinder! I will try this and will let you...
Thanks Ravinder! I will try this and will let you know if it helps.
1,710
Posted By brichigo
Find and update line in xml file
Hi,

I have a xml file that I need to modify 1 line to change some value from 2 to 10 (or any number).

Sample input:

<!-- some text here>
.
.
.
<message:test name="ryan">
...
8,208
Posted By brichigo
hi yoda - OS is aix 6.1
hi yoda - OS is aix 6.1
8,208
Posted By brichigo
Remove lines older than 30 days
Hi Experts/Gurus,

Is there a way to remove lines in a file that are older than x days (i.e. 30 days) based on the date stamp in the first column?

Example.


$ date
Sat Jan 11 14:12:06 EDT...
3,653
Posted By brichigo
Thanks Scrutinizer!!
Thanks Scrutinizer!!
3,653
Posted By brichigo
Insert carriage return on the 10th char position of each line
Hi experts,

Need your help on how to insert carriage return after the 10th char position of each line in a file and then add two blank spaces after the carriage return.

Example:

>cat...
4,642
Posted By brichigo
Inserting header after every nth line
Hi Experts,

I have a file which contain hundreds of records/lines. I want to insert the below header in the file after every 60 lines.

#Header

FirstName LastName ...
2,613
Posted By brichigo
Thank you sooo much chubler!
Thank you sooo much chubler!
2,613
Posted By brichigo
Find string in a file and append character
Hi Experts,

Is there a way to find a string in a file then append a character to that string then save the file or save to another file.

Here is an example.
>cat test.txt
NULL
NULL
NULL...
24,280
Posted By brichigo
Hi Raj, Here's the result of netstat -pa ...
Hi Raj,

Here's the result of netstat -pa

$ netstat -pa
a: unknown protocol or uninstrumented protocol

I've also tried "netstat -p tcp" but didn't find any useful info.
24,280
Posted By brichigo
How to list process connected to tcp port?
Hey guys,

I need to kill the process that is currently connected to port 10540. I'm on HP-UX machine.

Below is the result of my netstat.

$ netstat -an |grep 10540
tcp 0 0 ...
Showing results 1 to 12 of 12

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