Search Results

Search: Posts Made By: pistachio
Forum: Red Hat 07-13-2014
7,363
Posted By pistachio
Dmesg with Date and Time
Dear All,

I am looking to enable Date and time in dmesg output for for centos 5.8.

Unfortunately the current version doesn't support -T option.

Also i am looking for solutions which can...
Forum: Red Hat 04-08-2014
2,417
Posted By pistachio
Incorrect Timezone in Java
Dear All,

I have two Red hat Linux servers where the DST has picked the right time.
unfortunately the Java Time in one Server is coming incorrect

Correct info
[root@hq]# java ...
Forum: Red Hat 07-18-2013
3,229
Posted By pistachio
Redhat Linux xinetd error
Dear all,

I am reciving the following error in the /var/log/messages of my system
Jul 18 11:14:27 airtest xinetd[12969]: START: echo-dgram pid=0 from=::ffff:XX.XX.XX.X
Jul 18 11:14:27 airtest...
1,752
Posted By pistachio
Thanks .... its working now ....
Thanks .... its working now ....
1,752
Posted By pistachio
Pattern search using awk
Hi All,

I am trying to find numbers with balance greater than 1 and less than equal 2 from the below file using awk

Input file
num ,bal
100199,1.708
100225,0
100226,0...
2,723
Posted By pistachio
multiple graphs on same window
Hi All,

I have written a script to get live data after 5 minutes from a remote system and then plot the graph using gnuplot.All this has been working correctly with only one problem where i need...
35,146
Posted By pistachio
how to count number of rows and sum of column using awk
Hi All,

I have the following input which i want to process using AWK.

Rows,NC,amount
1,1202,0.192387
2,1201,0.111111
3,1201,0.123456


i want the following output

count of rows =...
12,596
Posted By pistachio
Binary to ASCII(TEXT converion)
Hi all,

I have been trying to convert a binary file to TEXT/ASCII file in linux/solaries.and commands like string are no good.Also i am not sure how the how output of the file looks like...

I...
8,804
Posted By pistachio
telnet commands using expect
Hi All,

I am trying to write a expect script to telnet and run a command on a remote host.The command i want to send contains a text value is contained in file.txt in the linux box from where i...
4,293
Posted By pistachio
one reason is one of the servers from which i am...
one reason is one of the servers from which i am trying to get the data is revenue critical for my organization and i am not very confident of doing the change in ssh key.
4,293
Posted By pistachio
something which i delibrately want to avoid. i...
something which i delibrately want to avoid. i would still prefer a way to pass the password to script and mate it work.
8,202
Posted By pistachio
try this awk -F"=" '{print $2}' filename ...
try this

awk -F"=" '{print $2}' filename

or

awk -F"=" '{print $2}' filename > outputfile.txt
4,293
Posted By pistachio
[root@sur-core-L001 scripts]# sh msc1.sh ...
[root@sur-core-L001 scripts]# sh msc1.sh
Pseudo-terminal will not be allocated because stdin is not a terminal.
Password:

doesnt work ...
4,445
Posted By pistachio
try this in awk awk -F" " '{print...
try this in awk

awk -F" " '{print $1","$2","$3","$4","$5}' filename

---------- Post updated at 11:00 AM ---------- Previous update was at 10:25 AM ----------

or try this
awk -F" " '{print...
4,293
Posted By pistachio
ssh in shell script
Hi all,

I am trying to write a script in shell which can connect me to a remote server and run some commands my problem is i cant pass the password barrier.I read a lot of articles where bloggers...
25,694
Posted By pistachio
Thanks
He guys thanks for the help

but let me try to explain this better.

If a==b then only check if c==d otherwise skip the record.
input
8239359,8239359,8388125,8388125...
25,694
Posted By pistachio
Thanks
Hi Jim ,

My input file basically consist of two files where a,c are part of one file and b and d are part of other file.I need to get only thoes records which bascally match a is equal to b...
25,694
Posted By pistachio
match columns using awk
Hi All,

I need some help in writing a small script using Awk.

My input file has following deatils
A,B,C,D
8239359,8239359,8388125,8388125
8239359,8239359,8388125,8388125 ...
1,394
Posted By pistachio
i think you can use this also for i in `cat...
i think you can use this also

for i in `cat user_list` do echo "'"$i"'," >> formatted_user_list;done
22,466
Posted By pistachio
perl scripting for checking if a process is running
Hi All,

I am new to perl and have been trying to write a short script to check a process.Though i havent reached to the stage where i can match the output.
I am trying to pass a variable x with ...
4,373
Posted By pistachio
thanks :D
thanks :D
4,373
Posted By pistachio
Perl/shell script count the lines
Hi Guys,

I want to write a perl/shell script do parse the following file

input file content
NPA-NXX SC
2084549 45
2084552 45
2084563 2007
2084572 45...
9,471
Posted By pistachio
trim in unix
bash-2.05$ awk -F, -v OFS=, '{printf("%d,%012d\n",$1,$2)}' adj.txt
awk: syntax error near line 1
awk: bailing out near line 1
bash-2.05$
9,471
Posted By pistachio
doesnt work bash-2.05$ awk -F, -v OFS=,...
doesnt work

bash-2.05$ awk -F, -v OFS=, '{printf("%d,%012d\n",$1,$2)}' adj.txt
awk: syntax error near line 1
awk: bailing out near line 1
bash-2.05$

i am on a Sun machine
9,471
Posted By pistachio
rtrim in unix
Hi All,

I need help in triming this input to the desired output
95441,000000000000563
75461,000000000000630
98488,000000000000567
45492,000000000000695
45532,0000000000004674...
Showing results 1 to 25 of 28

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