Search Results

Search: Posts Made By: ballazrus
36,100
Posted By ballazrus
sorry. however, that piece of code is just 5% of...
sorry. however, that piece of code is just 5% of my assignment as a whole. and i'm not posting my assignment and asking somebody to do it for me, i have something and i'm asking for advise on how...
36,100
Posted By ballazrus
using regular expressions in c shell control structure
i cant get around using regular expressions in if/else statements. it simply doesnt give me the right results.

i've tried using switch/case but that is just as sh!tty as well. (pardon my french...
6,919
Posted By ballazrus
functions in c shell??
i've been told that c shell does not support functions/subroutines is that true?

if not can somebody give me the basic syntax for creating a function. it would very much appreciated!

thanks in...
31,910
Posted By ballazrus
hi, vino, i just wanted to say thanks for your...
hi, vino, i just wanted to say thanks for your help. i d/led cygwin and ran the code for the double brackets and it works like a charm. i think cygwin is a c shell emulator? or perhaps bourne...
31,910
Posted By ballazrus
i'mnot using it with vmware at the moment, but...
i'mnot using it with vmware at the moment, but i'm using SPARC, i think it's based on unix, hence why it keeps interpreting the > and < as redirect. however the double brackets arent working either....
31,910
Posted By ballazrus
i tried the other one too with the double...
i tried the other one too with the double brackets and it doesnt give me the right result. it does show an error but will go through the whole execution of the program, but as mentioned before, the...
31,910
Posted By ballazrus
#! /bin/sh read A B if [ $A < $B ] ;...
#! /bin/sh

read A B

if [ $A < $B ] ; then
echo "$A is less than $B"
else
echo "$A is greater than $B"
fi

exit 0




intranet (119) % sh strcmp.sh
hi bye
strcmp.sh:...
31,910
Posted By ballazrus
yeah i already had the #!/bin/sh before the...
yeah i already had the #!/bin/sh before the script code and it wont work

it says it cannot open bye (second variable evaluates to bye and it thinks of bye as a file meaning it interprets the "<"...
31,910
Posted By ballazrus
thanks for the heads, up, i will have to try that...
thanks for the heads, up, i will have to try that out tomorrow, it apparently doesnt work on my school's intranet.

it says it cant interpret the double brackets "[["

is sh and ksh similar to...
31,910
Posted By ballazrus
string comparison operators, what are they??
hi guys

im a newbie to shell scripting and would appreciate any help possible. my questions will be very straight forward and relatively trivial to most of you.

as the thread title is asking,...
Showing results 1 to 10 of 10

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