Sponsored Content
Full Discussion: Newbies problem
Top Forums UNIX for Dummies Questions & Answers Newbies problem Post 98427 by greenhorn on Wednesday 8th of February 2006 05:25:22 AM
Old 02-08-2006
Bug

Hi
Thank you for your explanation.
If I were to use the awk version and end it with $@, how can I execute the command to a list of filenames (I have numereous files and have listed the names in a list.txt file)?

curious grennhorn
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Specially for unix newbies

Hi Everyone, I got a good news to unix newbies. If you want to try some unix command on your windows' desktop, I can recommend this program to u all. So you can practice unix command with your PC. It is something like using MS-DOS on desktop. Search "Cygwin 1.3.1" in www.download.com It... (2 Replies)
Discussion started by: clemeot
2 Replies

2. Tips and Tutorials

PERL & CPAN Intro for Newbies

So you want to learn a unix scripting language that you'll be able to use in any situation? Perl is your answer ! This is a little intro to installing CPAN modules. If you don't know what CPAN is, check out http://search.cpan.org/. Basicly, it is a massive archive of perl libraries that will... (0 Replies)
Discussion started by: obitus
0 Replies

3. UNIX for Dummies Questions & Answers

I am one of the newbies, please advise

I am new to UNIX and Linux. I have some experiences with Windows server. I am thinking to start with those OS (Unix/Linux) and more specifically with the OS for the server. however, i have no idea which one would i start first, unix or linux? Because i also dont know how they are different. ... (3 Replies)
Discussion started by: sanlen
3 Replies

4. UNIX for Dummies Questions & Answers

What kind of Linux for the newbies?

I am one of the newbies. I want to load linux on my notebook, however, i am not sure which linux is the most recommend for the newbies. Could you please advise? Thanks you very much for any advise you may give me. Best Regards, SANLEN (2 Replies)
Discussion started by: sanlen
2 Replies

5. AIX

user login problem & Files listing problem.

1) when user login to the server the session got colosed. How will resolve? 2) While firing the command ls -l we are not able to see the any files in the director. but over all view the file system using the command df -g it is showing 91% used. what will be the problem? Thanks in advance. (1 Reply)
Discussion started by: pernasivam
1 Replies

6. Solaris

2 questions for newbies

Hi I'm totally new to solaris 5.9 Two questions. 1. What is the replacement for /proc/cpuinfo (isn't this part of POSIX). I heard it's psrinfo but it doesn't work. 2. I use ssh - v -X with X tunelling from linux onto a solaris server, but xclock failed. it says won't open display. $DISPLAY is... (6 Replies)
Discussion started by: grossgermany
6 Replies

7. UNIX for Dummies Questions & Answers

rsync tutorial for newbies

Hi. Learning rsync from the man pages can be daunting. I wrote this tutorial to make learning rsync easier: rsync tutorial (rsync2u) The rsync tutorial is for new rsync users. Three small backup examples thoroughly explain rsync --link-dest, --recursive, and --exlcude-from options. Enjoy. (2 Replies)
Discussion started by: wolfv
2 Replies

8. IP Networking

Problem with forwarding emails (SPF problem)

Hi, This is rather a question from a "user" than from a sys admin, but I think this forum is apropriate for the question. I have an adress with automatic email forwarding and for some senders (two hietherto), emails are bouncing. This has really created a lot of problems those two time so I... (0 Replies)
Discussion started by: carwe
0 Replies

9. UNIX for Dummies Questions & Answers

sed Or Grep Problem OR Terminal Problem?

I don't know if you guys get this problem sometimes at Terminal but I had been having this problem since yesterday :( Maybe I overdid the Terminal. Even the codes that used to work doesn't work anymore. Here is what 's happening: * I wanted to remove lines containing digits so I used this... (25 Replies)
Discussion started by: Nexeu
25 Replies
DublinCore::Record(3pm) 				User Contributed Perl Documentation				   DublinCore::Record(3pm)

NAME
DublinCore::Record - Container for Dublin Core metadata elements SYNOPSIS
use DublinCore::Record; my $record = DublinCore::Record->new(); # later ... # print the title print $record->element( 'title' )->content; ## list context will retrieve all of a particular element foreach my $element ( $record->element( 'Creator' ) ) { print "creator: ", $element->content(), " "; } ## qualified dublin core my $creation = $record->element( 'Date.created' )->content(); DESCRIPTION
DublinCore::Record is an abstract class for manipulating DublinCore metadata. The Dublin Core is a small set of metadata elements for describing information resources. For more information on embedding DublinCore in HTML see RFC 2731 <http://www.ietf.org/rfc/rfc2731> or <http://www.dublincore.org/documents/dces/> METHODS
new() The constructor. Takes no arguments. $record = DublinCore::Record->new(); add( @elements ) Adds valid DublinCore::Element objects to the record. remove( @elements ) Removes valid DublinCore::Element object from the record. element() This method will return a relevant DublinCore::Element object. When called in a scalar context element() will return the first relevant element found, and when called in a list context it will return all the relevant elements (since Dublin Core elements are repeatable). ## retrieve first title element my $element = $record->element( 'Title' ); my $title = $element->content(); ## shorthand object chaining to extract element content my $title = $record->element( 'Title' )->content(); ## retrieve all creator elements @creators = $record->element( 'Creator' ); You can also retrieve qualified elements in a similar fashion. my $date = $record->element( 'Date.created' )->content(); In order to fascilitate chaining element() will return an empty DublinCore::Element object when the requested element does not exist. You can check if you're getting an empty empty back by using the is_empty() method. if( $record->element( 'title' )->is_empty ) { # no title } elements() Returns all the Dublin Core elements found as DublinCore::Element objects which you can then manipulate further. foreach my $element ( $record->elements() ) { print "name=", $element->name(), " "; print "content=", $element->content(), " "; } title() Returns a DublinCore::Element object for the title element. You can then retrieve content, qualifier, scheme, lang attributes like so. my $title = $record->title(); print "content: ", $title->content(), " "; print "qualifier: ", $title->qualifier(), " "; print "scheme: ", $title->scheme(), " "; print "language: ", $title->language(), " "; Since there can be multiple instances of a particular element type (title, creator, subject, etc) you can retrieve multiple title elements by calling title() in a list context. my @titles = $record->title(); foreach my $title ( @titles ) { print "title: ", $title->content(), " "; } creator() Retrieve creator information in the same manner as title(). subject() Retrieve subject information in the same manner as title(). description() Retrieve description information in the same manner as title(). publisher() Retrieve publisher information in the same manner as title(). contributor() Retrieve contributor information in the same manner as title(). date() Retrieve date information in the same manner as title(). type() Retrieve type information in the same manner as title(). format() Retrieve format information in the same manner as title(). identifier() Retrieve identifier information in the same manner as title(). source() Retrieve source information in the same manner as title(). language() Retrieve language information in the same manner as title(). relation() Retrieve relation information in the same manner as title(). coverage() Retrieve coverage information in the same manner as title(). rights() Retrieve rights information in the same manner as title(). SEE ALSO
* DublinCore::Element * Dublin Core <http://www.dublincore.org/> * RFC 2731 <http://www.ietf.org/rfc/rfc2731> * perl4lib <http://www.rice.edu/perl4lib> AUTHOR
* Ed Summers <ehs@pobox.com> * Brian Cassidy <bricas@cpan.org> COPYRIGHT AND LICENSE
Copyright 2007 by Ed Summers, Brian Cassidy This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.8.8 2007-11-24 DublinCore::Record(3pm)
All times are GMT -4. The time now is 08:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy