When you test -z you expect an empty (NULL) value. You should to put it in quotes.
The [ ] characters have to have at least one space on each side of them. They are actually keywords in shell.
Hello and Good day to all.
Im having a problem here and would like to know if there is any solution that could overcome my problem.
I have changed from bash to csh (c-shell) yesterday on my Linux 7.2. When i do $echo $SHELL i can see the output /bin/csh which means ihave succesfully landed on... (4 Replies)
Dear Members;
I changed ,by mistake ,the root shell in /etc/passwd and logged out. Thereafter, I can no more have a prompt when trynig to log in as root.
How to solve this pb ?
Regards :confused: (8 Replies)
hi,
can any one tell a solution for the following :
I want to append 10 spaces and a string say "ok" to 12 digit number which is stored in a varialbe & display using shell script. (1 Reply)
Hi all,
until yesturday grep command was running in KSH ....
I was executing this command
ls -l | grep *.sh
But today its not working at all ...
Should I check any of the setting ...
I am not getting whats the problem ...
I have relogged to unix box but it didn't... (14 Replies)
Hi,
My sheel script has below statement:
if; then
When I run iam getting the below error:
-bash: syntax error near unexpected token `then'
What is wrong with that statement:
Plz help me. (2 Replies)
Hello!
Can you please help me on a lab at school:
I have to to write a shell program which reads all .C files from the current directory and prints for each file how many '#define' directives it has and for each macro defined how many times is it used in that file.
Can you suggest how can i... (1 Reply)
hi...i create a script which reads data from file and compare that the data which is entered by me through keyboard...i can easily read first two contents of file..i am facing the problem to read other contents..
structure of my file is
username:password:username1:password1.......and so on
... (1 Reply)
problem:
I give the source of a c program.. is required to indicate how many times is called each function defined in the program and line number
there is a call.
let's say i have lab2.c:
float dist(int *a,int *b,int n){
int i=0;
double d=0;
for (i=1;i<=n;i++){
d+=pow((a-b),2);
}... (4 Replies)
Discussion started by: sherpeledenis
4 Replies
LEARN ABOUT DEBIAN
text::sass::functions
Text::Sass::Functions(3pm) User Contributed Perl Documentation Text::Sass::Functions(3pm)NAME
Text::Sass::Functions
VERSION
$LastChangedRevision: 59 $
SYNOPSIS DESCRIPTION SUBROUTINES /METHODS
new
Creates a new object.
rgb(red, green, blue)
Converts triplet into a color.
red(color)
Returns the red part of a color.
green(color)
Returns the green part of a color.
blue(color)
Returns the blue part og a color.
mix(color1, color2, weight = 50%)
Mixes two colors together.
hsl(hue, saturation, lightness)
Converts as hsl triplet into a color.
hue(color)
Returns the hue part of a color.
saturation(color)
Returns the saturation part of a color.
lightness(color)
Returns the lightness part of a color.
adjust_hue(color)
Changes the hue of a color, can be called as adjust-hue.
lighten(color, amount)
Makes a color lighter.
darken(color, amount)
Makes a color darker.
saturate(color, amount)
Makes a color more saturated.
desaturate(color, amount)
Makes a color less saturated.
grayscale(color)
Converts a color to grayscale.
complement(color)
Returns the complement of a color.
unquote(str)
Removes the quotes from a string.
quote(str)
Adds quotes to a string.
percentage(num)
Converts a unitless number to a percentage.
round(num)
Rounds a number to the nearest whole number.
ceil(num)
Rounds a number up to the nearest whole number.
floor(num)
Rounds a number down to the nearest whole number.
abs(num)
Returns the absolute value of a number.
unit(num)
Returns the unit of a value.
unitless(num)
Returns true if the number has no unit.
DIAGNOSTICS CONFIGURATION AND ENVIRONMENT DEPENDENCIES
strict
warnings
Carp
POSIX
Readonly
Convert::Color
Text::Sass::Expr
INCOMPATIBILITIES BUGS AND LIMITATIONS
Missing alpha routines rgba & hsla methods.
mix() doesn't support weight.
AUTHOR
Author: BjA~Xrn-Olav Strand
LICENSE AND COPYRIGHT
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.10 or,
at your option, any later version of Perl 5 you may have available.
perl v5.14.2 2012-04-05 Text::Sass::Functions(3pm)