This is a very simple question.
So I have:
# cat << 'EOF' > /usr/share/servers/test man EOF
From the command line I want to put "man" into a /usr/share/servers/test. I have file "test" in directory /usr/share/servers/.
However when I run that it come back with # cat << 'EOF' >... (2 Replies)
hi i ama dunmmies in Unix.
I created a .doc file and copied it to unix via FTP as a ,doc file itself
i want to delete that file , i tried with rm command it does not work
file name is DDL's.doc
plz help :confused: (2 Replies)
Can someone explain to me how a here doc works.
I thought it was something like this
<<EOF
command
command
command
EOF
What I am trying to do is put a ftp commands into my shell script, and I've been told that I need to use a here doc for it.
Can anybody shed some light on this... (6 Replies)
Git::Repository::Log(3pm) User Contributed Perl Documentation Git::Repository::Log(3pm)NAME
Git::Repository::Log - Class representing git log data
SYNOPSIS
# load the Log plugin
use Git::Repository 'Log';
# get the log for last commit
my ($log) = Git::Repository->log( '-1' );
# get the author's email
print my $email = $log->author_email;
DESCRIPTION
"Git::Repository::Log" is a class whose instances reprensent log items from a git log stream.
CONSTRUCTOR
This method shouldn't be used directly. "Git::Repository::Log::Iterator" should be the preferred way to create "Git::Repository::Log"
objects.
new( @args )
Create a new "Git::Repository::Log" instance, using the list of key/values passed as parameters. The supported keys are (from the output of
"git log --pretty=raw"):
commit
The commit id (ignore the extra information added by --decorate).
tree
The tree id.
parent
The parent list, separated by spaces.
author
The author information.
committer
The committer information.
message
The log message (including the 4-space indent normally output by git log).
extra
Any extra text that might be added by extra options passed to git log.
ACCESSORS
The following accessors methods are recognized. They all return scalars, except for "parent()", which returns a list.
Commit information
commit
tree
parent
Author and committer information
author
committer
The original author/committer line
author_name
committer_name
author_email
committer_email
Date information
author_gmtime
committer_gmtime
author_localtime
committer_localtime
author_tz
committer_tz
Log information
raw_message
The log message with the 4-space indent output by git log.
message
The unindented version of the log message.
subject
body
Extra information
extra
AUTHOR
Philippe Bruhat (BooK), "<book at cpan.org>"
COPYRIGHT
Copyright 2010 Philippe Bruhat (BooK), all rights reserved.
LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2011-12-28 Git::Repository::Log(3pm)