Search Results

Search: Posts Made By: necro98
1,468
Posted By necro98
Thats exactly what i have requested from you...
Thats exactly what i have requested from you people here , Hence you should show the code for it
1,468
Posted By necro98
Nothing. I can print these values using awk and...
Nothing. I can print these values using awk and print these values

But need to put in the formula above
1,468
Posted By necro98
Compare values for a pattern match and execute script
Here in the input file


23:59:13,devicename,21,server1,700
23:59:13,devicename,22,server2,200
23:59:13,devicename,23,server3,200
23:59:13,devicename,24,server4,200...
946
Posted By necro98
No that didnt work and i think you misunderstood ...
No that didnt work and i think you misunderstood

Not all lines in the file contain the word "c:" and the position of the word would also vary on the line , hence first c: needs to be grepped...
946
Posted By necro98
Printing the lines of the string with highest value
Please help .

The script need to first grep for all lines with "C:" as it contains a value

Here the value is 0

1,00: This , is a good script c:0

and then give output of the lines...
2,429
Posted By necro98
Thanks very much f this ,it worked In...
Thanks very much f this ,it worked

In addition Some of the lines in the same file contain the letter C: with a value
Here the value is 0

1,00: This , is a good script c:0

I want...
2,429
Posted By necro98
Finding most repeated entry in a column and giving the count
Please can you help in providing the most repeated entry in the 2nd column and give its count

Here is an input file


1, This , is a forum
2, This , is a forum
1, There , is a forum
2,...
1,435
Posted By necro98
Chirel , the above code didnt give me any output
Chirel , the above code didnt give me any output
1,435
Posted By necro98
Hi clx Linux servername ...
Hi clx

Linux servername 2.6.18-194.11.1.el5 #1 SMP Tue Jul 27 05:45:06 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

---------- Post updated at 12:10 PM ---------- Previous update was at 12:05 PM...
1,435
Posted By necro98
command to check the entries of the last second
hi guys ,

please can you share the command to check the all entries of the last second NOT in the last 1 line

An entry in the file

02:19:38,device,20,server,1So i need to grep all...
20,515
Posted By necro98
how to Redirect the output of telnet command on a terminal to a file ?
(/home/user1)-> more script.sh


#!/bin/ksh
( echo open devicename
sleep 3;
echo user;
sleep 2;
echo password;
sleep 2;
echo "/info/dump"; ---------> This needs to redirect to a file...
1,109
Posted By necro98
Request for horizontal formatting code
The input file contains 4 bytes per row

1 2 3 4
5 6 7 8
9 10 11 12
* * * 108

1 2 3 4
5 6 7 8
9 10 11 12
* * * 108


I need to put them in a horizontal manner and this need to...
14,708
Posted By necro98
Hi guys , please can you help with this
Hi guys , please can you help with this
14,708
Posted By necro98
Yes i have changed the code as the ip addresses...
Yes i have changed the code as the ip addresses can go upto byte no 28. I will test out the code you provided and let you know if it works . Thanks again

---------- Post updated 06-07-12 at...
14,708
Posted By necro98
Thanks chubler , i got it , please can you let me...
Thanks chubler , i got it , please can you let me know how we can remove words "0.0.0.0" from the output

20120605144619 207.18.129.6 10.10.50.9 0.0.0.0 10.10.50.249 10.10.39.42 c:0
...
14,708
Posted By necro98
Ygor ,How do i user that option ?where do i set it
Ygor ,How do i user that option ?where do i set it
14,708
Posted By necro98
Thanks ygor , by timestamp i meant the current...
Thanks ygor , by timestamp i meant the current time , i tried the steps you mentioned but it gives all zeroes

-bash-3.2$ gawk --posix -f prog.awk ts=$(date '+%Y%m%d%H%M%S') Hex.txt...
14,708
Posted By necro98
Thanks very much Ygor , i am getting desired...
Thanks very much Ygor , i am getting desired output

235.20.192.65 10.10.50.9 10.10.39.42 c:0

but this steps need to repeat for each and every line in the file (each line as same number of...
14,708
Posted By necro98
I have written the data into hexdata.log output...
I have written the data into hexdata.log output as for one of the entries

0 0 0 4 235 20 192 65 0 0 0 0 10 20 40 99 10 10 34 24 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 152...
14,708
Posted By necro98
Thanks Jayan , that worked Just need to...
Thanks Jayan , that worked

Just need to format it now .I will get back on this

Scrutinizer , havent checked the OS yet
14,708
Posted By necro98
The conversion didnt occur -bash-3.2$ awk...
The conversion didnt occur

-bash-3.2$ awk '{for(i=1;i<=NF;i++)$i=sprintf("%0d","0x"$i)}1' Hextxt
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...
14,708
Posted By necro98
hex.txt contains numerous entries like this ...
hex.txt contains numerous entries like this

00 00 00 04 0A 02 05 01 00 00 00 00 0A 0A 32 C7 00 00 00 00 0A 0A 32 F3 0A 0A 2B 2D 00 00 00 00 00 00 00 08 80 01 06 6D 26 E4 00 02 00 00 00 00
06 6D...
14,708
Posted By necro98
Hi Jayan I have a file called hex.txt the...
Hi Jayan

I have a file called hex.txt
the file contains numerous entries i, just gave 8 as an example , I need to pick up entire content from the file and convert to decimal and not just those 8...
14,708
Posted By necro98
How to convert a file containing hex code to decimal using script?
The file contains code like the below and need to convert each one into a decimal

00 00 00 04 17 03 06 01

So the output should come as

0 0 0 4 23 3 6 1
6,474
Posted By necro98
Thanks
Thanks
Showing results 1 to 25 of 26

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