Search Results

Search: Posts Made By: thambi
22,714
Posted By thambi
You mean we need to go for gawk version?. Is it...
You mean we need to go for gawk version?. Is it possible to make a new script with the same logic? .. I don't want to go gawk versin. that could be last option for me. . just help to resolve the...
22,714
Posted By thambi
Sorry for that I have not mentioned before. I...
Sorry for that I have not mentioned before. I would like to change the existing script to achive the desire result rather the writing the new script?. Can you please help me ?.
22,714
Posted By thambi
Hi, Thanks. I have installed GNU bc version in...
Hi,
Thanks. I have installed GNU bc version in development which is working fine as well..

$ awk '{ print "last + " $0 }' hash_column_wrong.txt | /usr/local/bin/bc | tai
l -1
2156379608
$...
22,714
Posted By thambi
I got the below result... $ file `which bc`...
I got the below result...

$ file `which bc` `which awk` `which perl`
/usr/bin/bc: PA-RISC1.1 shared executable dynamically linked
/usr/bin/awk: PA-RISC1.1 shared executable dynamically...
22,714
Posted By thambi
And also I have just found that my machine is 64...
And also I have just found that my machine is 64 bit..

$ getconf KERNEL_BITS
64

now is there anyway to get my result?
22,714
Posted By thambi
Sorry, I have not worked on Perl scripting.. it's...
Sorry, I have not worked on Perl scripting.. it's new to me... I feel GNU bc method will be ok for me.. if you guide me the installation way, i can probably try with that method.....
22,714
Posted By thambi
Hi ,I am using HP-UX B.11.11 ( HP unix ). If i...
Hi ,I am using HP-UX B.11.11 ( HP unix ). If i get the freeware for HP unix, I can install the GNU bc with help of Unix admin. Please provide the link for GNU bc of HP unix.

I can't spilit...
22,714
Posted By thambi
Reply..
Is it free ware?.. bc is available in my Unix version. As you said, last keyword may not compitable with bc version. Do you mean i need to download from the site?. This is impractical for me...
22,714
Posted By thambi
Reply..
No . .it's not working..

When I run

$ awk '{ print "last + " $0 }' hash_column_wrong.txt | bc | tail -1
syntax error on line 1,


When I run without tail..

$ awk '{ print "last + " $0...
22,714
Posted By thambi
Reply....
When I run the below command

awk '{ print $0 " +\\" }' hash_column_wrong.txt | bc

I got below exception..

bundling space exceeded on line 1,
bundling space exceeded on line 1,
bundling...
22,714
Posted By thambi
Reply..
As I already mentioned, it just contains the 7 digiti number in every row. Like these, this file has around 150000 . We just need to add all the rows..that's all

0000001
0000343
0000001...
22,714
Posted By thambi
Reply
Hi ,

Thanks. We are also using the awk for arthitmatic operation . But we are not getting exepected result. I tried with your code as well.

$ awk ' {total+=$0} END { print total} '...
22,714
Posted By thambi
Unix Arithmatic operation issue , datatype issue
Hi,
I have a shell scripting. This will take 7 digit number in each line and add 7 digit number with next subsequent lines ( normal addition ).

Eg:

0000001
0000220
0001235
0000022...
4,005
Posted By thambi
mainframe assembler file into Unix
Hi,

I have received a mainframe file ( VSAM file ) . I would like to handle that file in Unix. i.e I would like to take the last record of the file. I have given wc -l <file_name> , it gives 0...
4,024
Posted By thambi
Reply
You use cygwin . Download freewar from internet. or Use Linux free version . Almost all of the unix commands will work in Linux.
8,910
Posted By thambi
Reply
I had similar issue on my Unix box. I think this is becuase of your unix server does not support SMPT of mail box. You have to approach your Unix admin to enable it.
5,300
Posted By thambi
Reply
Thanks. What is the difference between "[[ ]]" and "if" ?.
5,300
Posted By thambi
Condition test ( [[ ]] ) doubt
Hi ,

I have a doubt on condition test ( [[ ]] ). Pls refer blow program.

#!/bin/ksh
TEMP=
if [ -n $TEMP ];then
echo $TEMP
else
print 'invalid option'
fi

Above script's TEMP variable...
4,323
Posted By thambi
Reply
I am sure , the fuser command NOT avaible in my HP.


$ which fuser
no fuser in /usr/bin /usr/bin /usr/ccs/bin /usr/contrib/bin /opt/nettladm/bin /opt/fc/bin /opt/fcms/bin /opt/upgrade/bin...
4,323
Posted By thambi
Reply
Hi,
Thanks for the inputs. I am using HP unix. I don't see this fuser command in my flavoure. Please suggest.

-Thambi
4,323
Posted By thambi
Ensure the file completion ?
Hi,

I would like to copy a file from one location to another. But that particular file is not fully loaded. I like to copy a file once it's fully loaded or complete file. How to ensure whether...
16,072
Posted By thambi
tar :: rename the file after archived
Hi,

I have archived two files using tar. Then I tried to extract the file in Windows. But only one file extracted. Other file is NOT extracted as the UNIX file name NOT compatible with Windows...
16,072
Posted By thambi
tar :: rename the file after archived
Hi,

I am archived two files using tar. Then I tried to extract the file in Windows. But only one file extracted. Other file is NOT extracted as the UNIX file name NOT compatible with Windows...
22,418
Posted By thambi
Mahesh, Please eloborate your request. I am...
Mahesh,

Please eloborate your request. I am not getting you exactly .

-Thambi
22,418
Posted By thambi
{ uuencode f1 f1;uuencode f2 f2; }|mailx ... ...
{ uuencode f1 f1;uuencode f2 f2; }|mailx ...

I am using HP unix. It gives the error that unexpected symbol }

Moreover, I don't have the zip in my HP unix. So i tared different files from...
Showing results 1 to 25 of 32

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