10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello Tech Guys,
I have two files named check.txt and output.txt
Content of check.txt
620070527336551 40201800027285
620070551928314 40201800027285
620070534376312 40201800027285
620070536668046 02711306140261
620070248491123 02711306140261
620070553851296 02711306140261... (4 Replies)
Discussion started by: Xtreme
4 Replies
2. Shell Programming and Scripting
I noticed a discrepancy while running AWK on different platforms/versions:
SunOS
$ echo "78" | awk '{ printf "%c\n", $0 }'
N
$ awk 'BEGIN{ printf "%c\n", "78" }' /dev/null
N
Linux / HP-UX
$ echo "78" | awk '{ printf "%c\n", $0 }'
N
$ awk 'BEGIN{ printf "%c\n", "78" }' /dev/null
7
Can... (4 Replies)
Discussion started by: Yoda
4 Replies
3. Shell Programming and Scripting
Hello Gurus,
I have a requirement where I have to filter a value from some field which has 99% or greater than '99%'..
For ex:
The Date (file -- sample.csv) will be like below
Field1,Field2,Field3,Field4
860440512,844284992,16155520,99%
860440512,844284992,16155520,94%... (4 Replies)
Discussion started by: raghu.iv85
4 Replies
4. Shell Programming and Scripting
Hi all,
I'm trying to implement a linear congruential pseudorandom number generator (<http://en.wikipedia.org/wiki/Linear_congruential_generator>), since $RANDOM and /dev/random aren't standardized. I'm referring to the Shell & Utilities volume of POSIX.1-2008, but I'm running into some odd... (3 Replies)
Discussion started by: PehJota
3 Replies
5. Shell Programming and Scripting
isql output comes as below,
(0 rows affected)
(1 row affected)
(7 rows affected)
How to extract the resultset number alone from the particular line ??
such as
0
1
7 (3 Replies)
Discussion started by: vikram3.r
3 Replies
6. Shell Programming and Scripting
Hello All,
I have been searching and trying this for a bit now. Can use some assistance.
Large 5000 line flat file.
bash, rhel5
Input File Sinppet:
Fri Oct 30 09:24:02 EDT 2009 -- 1030
Fri Oct 30 09:26:01 EDT 2009 -- 73
Fri Oct 30 09:28:01 EDT 2009 -- 1220
Fri Oct 30 09:30:01 EDT... (9 Replies)
Discussion started by: abacus
9 Replies
7. Shell Programming and Scripting
Hi All,
I would like to convert my below csh script to Perl.
Can any expert help ?
# To check for numeric input
set tested1 = `echo "$tested"| awk '/^+$/'`;
# To remove un-neccessary zeros
set tested2 = `echo "$tested"|awk '{print $0+0}'`; (3 Replies)
Discussion started by: Raynon
3 Replies
8. Shell Programming and Scripting
Hi All,
I have 1 million records file. Using awk, I am counting the number of records. But as the number is huge, after crossing a number, awk is displaying it in exponential format.
At the end, I need to verify this count given by awk with expected count.
But as it is in exponential format,... (3 Replies)
Discussion started by: ssunda6
3 Replies
9. UNIX for Dummies Questions & Answers
Hello,
I'm trying to assign a numeric value that is returned from one of my programs to a variable in tcsh. I want to do:
@ r10 = './my_prog file 35'
where ./my_prog file 35 returns a decimal value, but this doesn't work. How do I achieve the desired result?
Janet (4 Replies)
Discussion started by: psran
4 Replies
10. Shell Programming and Scripting
Hi All,
Is there any code in Perl which can differentiate between numeric and non-numeric input? (11 Replies)
Discussion started by: Raynon
11 Replies