08-04-2015
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi People,
how do i obtain the line number of a ksh shell script that i am working on For example in C,when u key in __LINE__ will return u the current line number of the src code.
regards
wilson (1 Reply)
Discussion started by: wilsontan
1 Replies
2. Shell Programming and Scripting
Can anyone tell me what command would display the number of subdirectories in the current or given location? (2 Replies)
Discussion started by: jjamd64
2 Replies
3. Solaris
Hello, I am running Solaris 9 and I need to display the serial number of my machine. How can I do this?
Here is my machine info:
SunOS birch 5.9 Generic_118558-09 sun4u sparc SUNW,Sun-Fire-V240
Thank you,
David (5 Replies)
Discussion started by: dkranes
5 Replies
4. Shell Programming and Scripting
Hi,
how i can display all the unique number from my random number script below;
#!/usr/bin/perl
use strict;
my @alphanum = ( 'A' .. 'Z', 'a' .. 'z', 0 .. 9);
my $random = join('', map($alphanum,(1..5)));
print "$random\n";
Thank You. (1 Reply)
Discussion started by: malaysoul
1 Replies
5. UNIX for Advanced & Expert Users
Hi
I'd like to know a logic or a strategy to count the number of I/O requests that are being made. I have the PID of the process for which this needed to be done. Does anyone have any clue as to how to do this? This is to be done in Kernel programming in C.
P.S:
This is to be done in... (2 Replies)
Discussion started by: Ir1s
2 Replies
6. Programming
Hi,
I have an issue in date processing, the issue is I have a month as an int ( 1 - 12 ), the weekday as int ( 0 - 6 , 0 = Sunday), and the week day in month as int ( 0 - 5, 5 = last ex: first sunday, last monday, third tuesday ... ), now from those three parameters is there a possible way to... (2 Replies)
Discussion started by: modn3
2 Replies
7. Shell Programming and Scripting
sorry couldnt think of a proper title lol
ok i have the following script it asks the user how many html tags they want. Im not sure how to display 2 tags if the user eneters the want only 2 tags
tags as in <p></p> or <h1></h1>
read -p "How many tags" tags1
if
then
echo "<$tags1>... (3 Replies)
Discussion started by: gangsta
3 Replies
8. Shell Programming and Scripting
question :how can i iterate to next item in for loop with the loop
e.g
for i in `cat abc.txt`
do
echo $i // this will display first line
i=$i+1; // this doesnt work for me.
echo $i; //this will display secound line
done
question: is my approach to manipulate text good?
I have... (3 Replies)
Discussion started by: kashif_islam
3 Replies
9. Shell Programming and Scripting
display number from 10 to 1 using shell programming in while loop and using read n numbers (2 Replies)
Discussion started by: aswin
2 Replies
10. Shell Programming and Scripting
hi guys. i have a question for you
i have a one file and inside this file there are 1000 lines and each line is a linux command
running this commands takes long time so i want to create one bash script and run this lines in a loop with max number of threads
for example i want to run... (2 Replies)
Discussion started by: avtaritet
2 Replies
LEARN ABOUT DEBIAN
libravatar::url
Libravatar::URL(3pm) User Contributed Perl Documentation Libravatar::URL(3pm)
NAME
Libravatar::URL - Make URLs for Libravatars from an email address
SYNOPSIS
use Libravatar::URL;
my $url = libravatar_url( email => 'larry@example.org' );
DESCRIPTION
See <http://www.libravatar.org> for more information.
Functions
libravatar_url
# By email
my $url = libravatar_url( email => $email, %options );
# By OpenID
my $url = libravatar_url( openid => $openid, %options );
Constructs a URL to fetch the Libravatar for the given $email address or $openid URL.
%options are optional. "libravatar_url" will accept all the options of "gravatar_url" in Gravatar::URL except for "rating" and "border".
The available options are...
size
Specifies the desired width and height of the avatar (they are square).
Valid values are from 1 to 512 inclusive. Any size other than 80 may cause the original image to be downsampled using bicubic resampling
before output.
size => 40, # 40 x 40 image
default
The url to use if the user has no avatar.
default => "http://www.example.org/nobody.jpg"
Relative URLs will be relative to the base (ie. libravatar.org), not your web site.
Libravatar defines special values that you may use as a default to produce dynamic default images. These are "identicon", "monsterid",
"wavatar" and "retro". "404" will cause the URL to return an HTTP 404 "Not Found" error instead and "mm" will display the same "mystery
man" image for everybody. See <http://www.libravatar.org/api> for more info.
If omitted, Libravatar will serve up their default image, the orange butterfly.
base
This is the URL of the location of the Libravatar server you wish to grab avatars from. Defaults to <http://cdn.libravatar.org/avatar/>
for HTTP and <https://seccdn.libravatar.org/avatar/> for HTTPS.
short_keys
If true, use short key names when constructing the URL. "s" instead of "size", "d" instead of "default" and so on.
short_keys defaults to true.
https
If true, serve avatars over HTTPS instead of HTTP.
You should select this option if your site is served over HTTPS to avoid browser warnings about the presence of insecure content.
https defaults to false.
LICENSE
Copyright 2011, Francois Marier <fmarier@gmail.com>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://dev.perl.org/licenses/artistic.html
SEE ALSO
<http://www.libravatar.org> - The Libravatar web site
<http://www.libravatar.org/api> - The Libravatar API documentation
perl v5.14.2 2012-04-04 Libravatar::URL(3pm)