Search Results

Search: Posts Made By: bhagirathi
Forum: Cybersecurity 09-15-2009
12,338
Posted By bhagirathi
how to Hide Passwords From UNIX ps Command
Hi,
By reporting the process status with ps, any Unix user will see the command line arguments
#ps -ef
UID PID PPID C STIME TTY TIME CMD
lsc 13837 13825 0 May 11 pts/17...
5,487
Posted By bhagirathi
Thanks rakesh. its now ok.:b:
Thanks rakesh. its now ok.:b:
5,487
Posted By bhagirathi
could u give an example
could u give an example
5,487
Posted By bhagirathi
still i am getting the same result 10.1.100.19 ...
still i am getting the same result
10.1.100.19
10.1.100.19
10.1.100.19
10.1.100.19
cpt=2
sptp=2
10.1.100.20
cpt=1
sptp=1
5,487
Posted By bhagirathi
hi, Actually my code is like awk...
hi,

Actually my code is like awk '/<cisco:name>/ {
cpt=0
sptp=0
while($0 !~ "</cisco:name>")
{
getline;
if($0 ~ "<cisco:meNm>") {print substr($1,13,11)}
if($0 ~ "<cisco:cpt>") cpt++;...
5,487
Posted By bhagirathi
match a pattern and print the line once
Hi,

I have a xml file
<cisco:name>
<cisco:mdNm>Cisco Device 7500 A Series</cisco:mdNm>
<cisco:meNm>10.1.100.19</cisco:meNm>
<cisco:ehNm>/shelf=1</cisco:ehNm>
<cisco:subname>
...
6,704
Posted By bhagirathi
hi ghostdog, it gives the output as ctp=0 ...
hi ghostdog,

it gives the output as
ctp=0
ctp=0
.
..
53 times
6,704
Posted By bhagirathi
i did the same awk '{ if ( $0 ~ /<cisco:cpt> |...
i did the same
awk '{ if ( $0 ~ /<cisco:cpt> | <cisco:sptp>/ ) {i++} if ( $0 ~ /<\/cisco:name>/ ) {print "cpt=" i;i=0}}' test.xml

But the result added . so could you suggest how can it will...
6,704
Posted By bhagirathi
Hi Honglus, thanks it works fine. but i have...
Hi Honglus,
thanks it works fine. but i have one query
if i have to search two or 3 patterns like <cisco:cpt> , <cisco:mdNm> ,<cisco:sptp> then how can i proceed.
6,704
Posted By bhagirathi
grep a string in the lines between 2 strings of a file
Hi ,
Please help me with the following problem:
I have an xml file with the following lines
<cisco:name>
<cisco:mdNm>Cisco Device 7500 A Series</cisco:mdNm>
...
Showing results 1 to 10 of 10

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