01-01-2007
[[ $(date +%Y) == 2007 ]] && echo "Happy New Year"
Same as the Title!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I've modified the syslogd source to include a thread that will keep track of a timer(or a timer thread). My intention is to check the file size of /var/log/messages in every one minute & if the size is more than 128KB, do a echo " " > /var/log/messages, so that the file size will be set... (7 Replies)
Discussion started by: jockey007
7 Replies
2. Shell Programming and Scripting
I am learning to build from SVN and other tools, with a lot of copying and pasting from forums. I like to append && echo "success" to all commands so that I can see at a glance if things went all right. Is there a way that I can have the bash shell append this to all commands?
Thanks! (5 Replies)
Discussion started by: dotancohen
5 Replies
3. Shell Programming and Scripting
Hi there.
I used to use
lastdate=`date -v-14d %F`
on my old server with FreeBSD, and now got to get the same result(current date -14 or -X days) in script running at another server, with Linux, but there's no such option for "date".
How can i solve the prob(counting with absolute day number is... (10 Replies)
Discussion started by: strider_scripts
10 Replies
4. Shell Programming and Scripting
I am having hard time understanding what this really do to the environment? I do understand this part "tty -s && stty " but not "istrip"
# stty command is executed only if a tty is attached to the process.
# stty istrip : Strip input characters to 7 bits
tty -s && stty istrip
I am... (3 Replies)
Discussion started by: kchinnam
3 Replies
5. Red Hat
Dear All,
plz print the path of files which have the script of "who" & "w" commands.
thnx in advance. (6 Replies)
Discussion started by: saqlain.bashir
6 Replies
6. Shell Programming and Scripting
I need to replace dashes (i.e. -) if present from positions 351-357 with zero (i.e. 0), I also need to replace dash (i.e “-“) if present between position 024-043 with zero (i.e. 0) & I replace " " (i.e. 2 space characters) if present at position 381-382 with "04". Total length of record is 413.... (11 Replies)
Discussion started by: lancesunny
11 Replies
7. Shell Programming and Scripting
Hi all.
I have a .txt file that I need to sort it
My file is like:
1- 88 chain0 MASTER (FF-TE) FFFF 1962510 /TCK T FD2TQHVTT1 /jtagc/jtag_instreg/updateinstr_reg_1 dff1 (TI,SO)
2- ... (10 Replies)
Discussion started by: Behrouzx77
10 Replies
8. Web Development
Basically I want to shorten URLs on my html pasting site (pasteht.ml), by using "/~a1Pha" instead of "/paste/a1Pha". The ID is 5 numbers and letters, both cases.
For example:
/~idnum serves /paste/idnum.htm
/=idnum serves /paste/idnum.htm
/paste/idnum redirects to /~idnum (to update any old... (0 Replies)
Discussion started by: phillips1012
0 Replies
9. UNIX for Beginners Questions & Answers
I want to know the working of & here step by step using sed command. (1 Reply)
Discussion started by: Preeti07
1 Replies
10. Shell Programming and Scripting
I am trying find files in sub dir with certain tags using tag command, and add the period to the beginning. I can't use chflags hidden {} cause it doesn't add period to the beginning of the string for web purpose. So far with my knowledge, I only know mdfind or tag can be used to search files with... (6 Replies)
Discussion started by: Nexeu
6 Replies
LEARN ABOUT DEBIAN
svg::graph::glyph::axis
Graph::Glyph::axis(3pm) User Contributed Perl Documentation Graph::Glyph::axis(3pm)
NAME
SVG::Graph::Glyph::axis - SVG::Graph::Glyph::axis object
METHODS
draw
Title : draw
Usage :
Function:
Example :
Returns :
Args :
x_intercept
Title : x_intercept
Usage : $obj->x_intercept($newval)
Function:
Example :
Returns : value of x_intercept (a scalar)
Args : on set, new value (a scalar or undef, optional)
y_intercept
Title : y_intercept
Usage : $obj->y_intercept($newval)
Function:
Example :
Returns : value of y_intercept (a scalar)
Args : on set, new value (a scalar or undef, optional)
x_fractional_ticks
Title : x_fractional_ticks
Usage : $obj->x_fractional_ticks($newval)
Function:
Example :
Returns : value of x_fractional_ticks (a scalar)
Args : on set, new value (a scalar or undef, optional)
y_fractional_ticks
Title : y_fractional_ticks
Usage : $obj->y_fractional_ticks($newval)
Function:
Example :
Returns : value of y_fractional_ticks (a scalar)
Args : on set, new value (a scalar or undef, optional)
x_absolute_ticks
Title : x_absolute_ticks
Usage : $obj->x_absolute_ticks($newval)
Function:
Example :
Returns : value of x_absolute_ticks (a scalar)
Args : on set, new value (a scalar or undef, optional)
y_fractional_ticks
Title : y_fractional_ticks
Usage : $obj->y_fractional_ticks($newval)
Function:
Example :
Returns : value of y_fractional_ticks (a scalar)
Args : on set, new value (a scalar or undef, optional)
x_intertick_labels
Title : x_intertick_labels
Usage : $obj->x_intertick_labels($newval)
Function:
Example :
Returns : value of x_intertick_labels (a scalar)
Args : on set, new value (a scalar or undef, optional)
x_tick_labels
Title : x_tick_labels
Usage : $obj->x_tick_labels($newval)
Function:
Example :
Returns : value of x_tick_labels (a scalar)
Args : on set, new value (a scalar or undef, optional)
y_intertick_labels
Title : y_intertick_labels
Usage : $obj->y_intertick_labels($newval)
Function:
Example :
Returns : value of y_intertick_labels (a scalar)
Args : on set, new value (a scalar or undef, optional)
y_tick_labels
Title : y_tick_labels
Usage : $obj->y_tick_labels($newval)
Function:
Example :
Returns : value of y_tick_labels (a scalar)
Args : on set, new value (a scalar or undef, optional)
perl v5.10.0 2009-01-07 Graph::Glyph::axis(3pm)