Search Results

Search: Posts Made By: vanand420
1,855
Posted By vanand420
thanks a lot friend..!! it worked for me..
thanks a lot friend..!! it worked for me..
1,855
Posted By vanand420
Pegging counter
Hi Experts,

I am in need for some help. My competence level on unix is not at all helping me to resolve this. Please help.

My Input for a system command is as under:

Counters are getting...
798
Posted By vanand420
Thanks Man!! It worked like a rocket..perfect..!!...
Thanks Man!! It worked like a rocket..perfect..!!
Made few changes to script i.e. added sort -t ';' -k6 {to sort the common identifier in order means alarm then corresponding clearAlarm else alarm...
798
Posted By vanand420
Print events from two lines with a common identifier
Hi Unix Gurus,

I have a long text file, where alarms events are logged and alarm clear event are logged.

Both events alarm and alarm clear has common identifier as{xxxxxxxxxx}

I need to...
764
Posted By vanand420
Pick and print
Hi Friends,

I'm facing an issue. I am having a file as under :
a1
b1
c1
a2
a3
a4
b4
a5
b5

and I need to get the output as under:
a1 b1
a4 b4
a5 b5
i.e. to pick the columns where a...
1,305
Posted By vanand420
Thanks Buddy!! But mapfile is not functioning in...
Thanks Buddy!! But mapfile is not functioning in cygwin env.

Output for the code by bartus11 is as under:

$ cat <vanand420> | tr '\n' ';'
;ABCDEFG 10 680 209 120612 1501
1,305
Posted By vanand420
Thanks..might be shell issue. I am using bash on...
Thanks..might be shell issue. I am using bash on CYGWIN.
1,305
Posted By vanand420
Thanks! But it did not succeeded in my case.:(
Thanks! But it did not succeeded in my case.:(
1,305
Posted By vanand420
Each line dilimited by ; in output
HI,

I am having a file as under :

A3/APT "ABCDEFG" 789 120612 1501
BLOCK SUPER
R LVB NDV BLO
W2JO 10 680 20

I am using the under-noted script to get the outpur as...
1,386
Posted By vanand420
Perfect!!!!!! $ cat e1f | awk 'BEGIN {OFS="|...
Perfect!!!!!!

$ cat e1f | awk 'BEGIN {OFS="| ";print "NAME| DATE| TIME| HI| FI| BV| LR| TS| HR| ES| MR| KS| RR"} /\+\+\+/ {s=$3 OFS $4;getline;s=$5 OFS s;getline;getline;gsub("\t",OFS);s=s...
1,386
Posted By vanand420
Put data in tabular form..
Dear Friends,
I have a file as under :

+++ ME 12-06-13 18:16:20
A RED FEW AND ROW1 1MN FEL AS
HI FI BV LR TS HR ES MR
* 0 13296 0 120 1 ...
2,674
Posted By vanand420
Thanks Buddy..but it does not gave the expected...
Thanks Buddy..but it does not gave the expected output. It am using the bash shell in CYGWIN_NT-5.1 environment.

Output given is as under :
frr: line 3: typeset: -A: invalid option
typeset:...
2,674
Posted By vanand420
Put data into tabular form
Hi
I am having a file which is required to be presented in the under-noted output form. Please suggest.
Input:
Kapil:
apple 4
banana 6
cherry 0
Manoj:
apple 13
banana
cheery 2
Output:
...
1,255
Posted By vanand420
There are 8 lines and i want to pick from 1, 2, 3...
There are 8 lines and i want to pick from 1, 2, 3 & 7th line.

I modified the code as under :
cat myfile | grep -w -B 2 -A 6 -w UNAVAIL | gawk '/UNAVAIL/ {print x,$3,$1,$2,$6};{x=$6" "$7}; /CSLK/...
776
Posted By vanand420
Awk Help
Hi friends,

I have a file containing data as :
a b c d
e f g h
i j k l
a b c d
e f g h
i j k l
a b c d
e f g h
i j k l
I have an requirement to get the output as :
a e f g h i k
a e...
1,255
Posted By vanand420
I tried this code gawk '/UNAVAIL/ {print...
I tried this code

gawk '/UNAVAIL/ {print x,$3,$1,$2};{x=$6" "$7};'
and got the output as-
OPC=2-16-1 TIME=03:49:03 UNAVAIL 12 1
Still some fields unable to capture are marked as RED

+++...
1,255
Posted By vanand420
Pick and print fields..
HI,
I am having a requirement to check the unavailabilty of signling links. Please help.

Thanks in advance.

I need to have output like this :

OPC=2-16-1 APC=2-14-7 12 1 12-05-01...
4,803
Posted By vanand420
How it has returned what is expected. Using...
How it has returned what is expected. Using CYGWIN_NT-5.1

awk '{if (toupper($1) ~ /A/) print $0}' inv

Input file :

$ cat inv

Jan 13 25 15 115
Feb 15 32 24 226
Mar 15 24 34 228...
919
Posted By vanand420
I am using CYGWIN_NT-5.1 $ cat inv Jan ...
I am using CYGWIN_NT-5.1

$ cat inv

Jan 13 25 15 115
Feb 15 32 24 226
Mar 15 24 34 228
Apr 31 52 63 420
May 16 34 29 208
Jun 31 42 75 492
Jul 24 34 67 436
Aug 15 34...
4,803
Posted By vanand420
My concern is that in first case, it should pick...
My concern is that in first case, it should pick "A" only not "a" irrespective of the position.

$ awk '{if (toupper($1) ~ /A/) print $0}' inv -- Why this output
Jan 13 25 15 115
Mar 15 24 ...
919
Posted By vanand420
Awk search help
Hi,

Want to know what does it returns.

$ awk '$1 == /Jan/' inv

$ awk '$1 = /Jan/' inv --- What does this one signify.
1 13 25 15 115
1 21 36 64 620

$ awk '$1 ~ /Jan/' inv
Jan 13 25 ...
4,803
Posted By vanand420
Awk Help - toupper/tolower
Hi,

I am learning awk and faced few queries. Kindly suggest on the same. Where it is wrong.

$ awk '{if (toupper($1) ~ /a/) print $0}' inv

$ awk '{if (toupper($1) ~ /A/) print $0}' inv --...
1,378
Posted By vanand420
Thanks..it is working fine. Can u please explain...
Thanks..it is working fine. Can u please explain how $3 and $4 have changed. It shd be TPE=C7NTL and SM=22 respectively.

What would be value for next positions like "END" or "REPORT"

+++...
829
Posted By vanand420
Date and time difference
Hi,

I am trying to use the script as under :

echo "Please input the string (APC) in the format (APC=x-yyy-z):"
read a
for i in m1 m2 m4 m5 m6
do
cat /m12/$i/12* | grep -B 1 -A 1...
837
Posted By vanand420
Thanks..it made my life easy :D
Thanks..it made my life easy :D
Showing results 1 to 25 of 89

 

Featured Tech Videos

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