10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi is there a way that i can convert this simple perl program into shell script
#!usr/bin/perl -w
use strict;
use warnings;
open INPUTFILE, "uniqprobecoordinates.out" || die "canot open the file $!";
open OUTPUTFILE, ">", "1_4reads.out";
while(<INPUTFILE>)
{
chomp;
... (3 Replies)
Discussion started by: bhargavpbk88
3 Replies
2. Shell Programming and Scripting
Hello,
I woild like to convert hex on KSH not BASH:
I tried to use:
tmp=31
printf "\x"${tmp}""
it works on bash - Output is '1' but not on ksh.
please advice on the right syntax.
Thanks. (4 Replies)
Discussion started by: LiorAmitai
4 Replies
3. Programming
Hey!
I'm new to C. I need to covert certain values using C. please see the below. I have figured out the logic to do it. Please provide some hints to do this with C
Logic:
If first position of POS = 0, shift POS to the left one byte.
If third position of POS = 0, move spaces to third... (1 Reply)
Discussion started by: rocker_me2002
1 Replies
4. UNIX for Dummies Questions & Answers
hi
I have written a shell scrpit in .ksh mode. I need to convert this scritp to .sh. What things i need to check while converting the file from .ksh to .sh.
Could you please help me out.
Thanks&Reagdrs
Pavan Kumar (3 Replies)
Discussion started by: vnspkumar
3 Replies
5. Shell Programming and Scripting
Hi,
in this forum I was able to find a logic written by perderabo to write packed decimals. the code works fine. However, I would want to convert it to a c program. so as to do that I am not able to understand the below mentioned logic. Can someone please help me understand that?
if... (0 Replies)
Discussion started by: hitmansilentass
0 Replies
6. Shell Programming and Scripting
Guys I am new to this forum, this may seem like a cheeky request.
I have been asked by my manager to convert this ksh script to Perl. I do not have the foggiest about Perl and would appreciate any help on this.
Basically this scipt automates a recovery process for EMC Legato Networker. It will... (1 Reply)
Discussion started by: rahimm1
1 Replies
7. Shell Programming and Scripting
if ( ( grep -i "Exception : " /home/dklog* ))
then
echo " improper combination"
elsif ( ( grep -i "invalid" /home/dklog*))
then
echo " wrong process "
fi
fi
in the above case i am facing the the syntx error
please help in this case... (3 Replies)
Discussion started by: mail2sant
3 Replies
8. Shell Programming and Scripting
Hi guys
I tried to convert this c++ code to c shell script but there are some bugs and I don't know how to solve it.
This code prints the three variables in decreasing order:
int main()
{
int x,y,z;
cin >> x >> y >>z;
if ( x < y )
if ( x < z )
if ( y < z )
cout << x <<" " <<... (2 Replies)
Discussion started by: domain
2 Replies
9. Shell Programming and Scripting
Helloo...
I am not much familiar with python..I found this small script in python I even do not have python on my computer...can anyone help me out to convert this into ksh or sh..
PLEASE any help I will appreciate..
here is python code..
#!/usr/bin/env python
import random # Get a... (3 Replies)
Discussion started by: amon
3 Replies
10. UNIX for Dummies Questions & Answers
How difficult is it to convert from bourn shell to korn shell and visversa.
Reason: If someone bombsout or logs out incorrectly the application we are using give the next person to log in the same permissions as the person that bombed out. Therefore createing ownership problems on print files. (2 Replies)
Discussion started by: Boyd Young
2 Replies