Search Results

Search: Posts Made By: shatztal
Forum: Solaris 08-11-2011
5,061
Posted By itkamaraj
Number=`tail -1 /etc/passwd | awk -F":" '{ print...
Number=`tail -1 /etc/passwd | awk -F":" '{ print $3 }'`
Forum: Solaris 08-11-2011
5,061
Posted By donadarsh
use expr
i=0
i=`expr $i + 1`


don't use blank space while assigning some value to a variable.
7,792
Posted By Scott
Yes, that would do the trick.
Yes, that would do the trick.
7,792
Posted By kurumi
case "$string1" in $string2 ) echo "same";; ...
case "$string1" in
$string2 ) echo "same";;
*) echo "not the same";;
esac
7,792
Posted By linuxkid
:s okkaaayy. is this because its in a if...
:s okkaaayy. is this because its in a if statement? as im thinking if thsi was just outside the if statement then it would assign the value? am i right? Also as he's using ksh, would he use the same...
Showing results 1 to 5 of 5

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