01-01-2010
what you mean by "google is your friend"? i had a long talk with a guy last night at a new years party. he works on computers. he builds his own and works on a call center.
he told me the same thing as all you find what you want to do. pick something and work on it.
i told him hard to pick then there is so much. he told me that you can not learn it all and even if you could you could not be good or great at all of it.
so i will just keep reading and learn the BASIC. maby try some of everything but language. i will only try one language at frist so i don not get messed up.
thanks all for the on going help in my learning and have a great 2010 and may all your wish and dreams come to be. happy new year.
i am off to barns and noble. read read read. reading is never done. learning is never done eather.
my brain hurts
10 More Discussions You Might Find Interesting
1. Programming
Hi! I just start to learn C in Unix. I have several questions.
1. What is the different between ¡®gcc¡¯ and ¡®cc¡¯?
2. Assume I type ¡®gcc -o print.out print.c¡¯ and get an error. So I need to retype that sentence. Do I have to repeat the whole thing? Or Is there a shortcut?
3. I completed... (1 Reply)
Discussion started by: yhosun
1 Replies
2. UNIX for Dummies Questions & Answers
I'm running MAC OS X and I'm wondering how I start 'nixey programs (not normal apps) on startup? Things like the dnet client and hxd Hotline Server. Anyone know? (1 Reply)
Discussion started by: l008com
1 Replies
3. Shell Programming and Scripting
Hello,
What is the best way to start learning PERL? Are there any "learn-it-yourself" websites? Beginner books? etc...
Thanks,
Barbara (3 Replies)
Discussion started by: blt123
3 Replies
4. UNIX for Dummies Questions & Answers
Hiya, yes im new to all of this! But want to learn how to use Unix etc, iv been thinking about doin a course but desided im better off learning by my self with help from the people who really no what there doin...you guys!
I can install Linux, like redhat, mandrake, susie server edition and so... (5 Replies)
Discussion started by: epic.admin
5 Replies
5. Linux
hi
i want to know the way by which i put any file somewhere and it get s started when the system restarts or bots
i mean whenever my system starts that application must also start
thanks (3 Replies)
Discussion started by: shukla_chanchal
3 Replies
6. AIX
As topic, assume we have a service called "blahservice"
and we can start it by:
startsrc -s blahservice
what is the best practice to run such command when system start?
- directly use mkitab to add it into /etc/inittab
or
- drop startup scripts in /etc/rc.d/rcX.d
I know they... (4 Replies)
Discussion started by: acerlinux
4 Replies
7. Shell Programming and Scripting
Hey!
I'm working on a script that will add a user, create some configfiles, and add a crontab for the user.
The crontab looks like the following:
@reboot /home/user/program config.conf &
I would like for this process to start at the end of my script under the corresponding username by... (0 Replies)
Discussion started by: noratx
0 Replies
8. Shell Programming and Scripting
My PM has told me to learn shell scrting in 2 weeks , how should I start?:confused::confused::confused::confused: (1 Reply)
Discussion started by: manalisharmabe
1 Replies
9. UNIX for Dummies Questions & Answers
I need to replace the (*) in the fist of a list with numbers using sed for example >
this file contain a list
* linux
* computers
* labs
* questions
to >>>>
this file contain a list
1. linux
2. computers
3. labs
4. questions (7 Replies)
Discussion started by: aalbazie
7 Replies
10. UNIX for Beginners Questions & Answers
Below are my custom period start and end dates based on a calender, these dates are placed in a file, for each period i need to split into three weeks for each period row, example is given below.
Could you please help out to achieve solution through shell script..
File content:
... (2 Replies)
Discussion started by: nani2019
2 Replies
LEARN ABOUT DEBIAN
string::truncate
String::Truncate(3pm) User Contributed Perl Documentation String::Truncate(3pm)
NAME
String::Truncate - a module for when strings are too long to be displayed in...
VERSION
version 1.100600
SYNOPSIS
This module handles the simple but common problem of long strings and finite terminal width. It can convert:
"this is your brain" -> "this is your ..."
or "...is your brain"
or "this is... brain"
or "... is your b..."
It's simple:
use String::Truncate qw(elide);
my $brain = "this is your brain";
elide($brain, 16); # first option
elide($brain, 16, { truncate => 'left' }); # second option
elide($brain, 16, { truncate => 'middle' }); # third option
elide($brain, 16, { truncate => 'ends' }); # fourth option
String::Trunc::trunc($brain, 16); # => "this is your bra"
FUNCTIONS
elide
elide($string, $length, \%arg)
This function returns the string, if it is less than or equal to $length characters long. If it is longer, it truncates the string and
marks the elision.
Valid arguments are:
truncate - elide at left, right, middle, or ends? (default: right)
marker - how to mark the elision (default: ...)
at_space - if true, strings will be broken at whitespace if possible
trunc
trunc($string, $length, \%arg)
This acts just like "elide", but assumes an empty marker, so it actually truncates the string normally.
IMPORTING
String::Truncate exports both "elide" and "trunc", and also supports the Exporter-style ":all" tag.
use String::Truncate (); # export nothing
use String::Truncate qw(elide); # export just elide()
use String::Truncate qw(:all); # export both elide() and trunc()
use String::Truncate qw(-all); # export both elide() and trunc()
When exporting, you may also supply default values:
use String::Truncate -all => defaults => { length => 10, marker => '--' };
# or
use String::Truncate -all => { length => 10, marker => '--' };
These values affect only the imported version of the functions. You may pass arguments as usual to override them, and you may call the
subroutine by its fully-qualified name to get the standard behavior.
BUILDING CODEREFS
The imported builds and installs lexical closures (code references) that merge in given values to the defaults. You can build your own
closures without importing them into your namespace. To do this, use the "elide_with_defaults" and "trunc_with_defaults" routines.
elide_with_defaults
my $elider = String::Truncate::elide_with_defaults(\%arg);
This routine, never exported, builds a coderef which behaves like "elide", but uses default values when needed. All the valud arguments to
"elide" are valid here, as well as "length".
trunc_with_defaults
This routine behaves exactly like elide_with_defaults, with one obvious exception: it retuns code that works like "trunc" rather than
"elide". If a "marker" argument is passed, it is ignored.
SEE ALSO
Text::Truncate does a very similar thing. So does Text::Elide.
BUGS
Please report any bugs or feature requests through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=String-Truncate>.
I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
ACKNOWLEDGEMENTS
Ian Langworth gave me some good advice about naming things. (Also some bad jokes. Nobody wants String::ETOOLONG, Ian.) Hans Dieter
Pearcey suggested allowing defaults just in time for a long bus ride, and I was rescued from boredom by that suggestion
AUTHOR
Ricardo Signes <rjbs@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.10.1 2011-03-26 String::Truncate(3pm)