03-14-2014
He is allowed to use cp, he is not allowed to use cp -r. The assignment is an exercise in recursion.
I suspect he shouldn't be using find either then, since it also does recursion for him!
In any case, Wolverine89, you have not filled out the homework template after being instructed to do so several times. This thread is closed. If you open another topic, it will also be closed unless you fill out the template!
It is the only way that we're allowed to help homework.
Last edited by Corona688; 03-14-2014 at 02:12 PM..
9 More Discussions You Might Find Interesting
1. UNIX Desktop Questions & Answers
Sorry for this newbie question, but what exactly is Unix system V release 4 variant, and where do I download or buy this edition? There is alot of Unix info on the web, but the specifics can be a bit diverse. sorry (1 Reply)
Discussion started by: tropophyte
1 Replies
2. Linux
I've been trying to get my hands on the source for the BSD variant of the ar archiver, but have not been able to find it anywhere. Does anyone know where I can get it? (3 Replies)
Discussion started by: Deluge
3 Replies
3. Shell Programming and Scripting
Hi,
I have to copy last modified Directory to another directory.How can i Do using pipe or redirect
cp -R 'ls -lrt|tail -1' test is not working.
please help. (3 Replies)
Discussion started by: shaveta
3 Replies
4. UNIX for Dummies Questions & Answers
Hola a todos, soy realmente nuevo programando en bash, y aśn estoy encontrando bastantes baches :o, mi pregunta es simple, supongo, alguien podria decirme si existe una manera facil de copiar un directorio de un server a otro?, sucede que en un server(server1) tengo los backup de las bases de... (7 Replies)
Discussion started by: yeestrada
7 Replies
5. Linux
A while back I posted about trying to find the BSD version of ar (The Archiver):
https://www.unix.com/linux/136258-where-can-i-find-ar-archiver-bsd-variant.html
I was given a link to the source, found here:
ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/ar-20080302.tgz
I recently was able... (0 Replies)
Discussion started by: Deluge
0 Replies
6. Shell Programming and Scripting
Hi experts
cp bin root src /mnt
but not copy bin/bigfile
any help?
( I post this thread in the "redhat" forum wrongly, I don't know how to withdraw that question in that wrong forum)
Thanks (6 Replies)
Discussion started by: yanglei_fage
6 Replies
7. Shell Programming and Scripting
How to copy files from one directory to another directory with the subfolders copied.
If i have folder1/sub1/sub2/* it needs to copy files to folder2/sub1/sub2/*.
I do not want to create sub folders in folder2.
Can copy command create them automatically?
I tried cp -a and cp -R but did... (4 Replies)
Discussion started by: santosh2626
4 Replies
8. Post Here to Contact Site Administrators and Moderators
Hi guys...please any one help me ....
how to copy files from source to target location
if 5 files copied successfully out of 10 files then implement success=10
and if remaining 5 files not copied successfully then count error=5
how to implement this condition with in loop
i need code linux... (0 Replies)
Discussion started by: sravanreddy
0 Replies
9. Debian
Which older version and variant of Debian Linux ISO image should I use?
I attempted to install two versions of Debian Linux Operating System
onto my older full tower computer.
First version, V8.5.0, Amd64, xfce, 32Bit.
Second version V7.11.0, i386, 32Bit.
When trying to install... (1 Reply)
Discussion started by: Jefferyab6
1 Replies
LEARN ABOUT DEBIAN
text::micromason::allowglobals
MicroMason::AllowGlobals(3pm) User Contributed Perl Documentation MicroMason::AllowGlobals(3pm)
NAME
Text::MicroMason::AllowGlobals - Share package vars between templates
SYNOPSIS
Instead of using this class directly, pass its name to be mixed in:
use Text::MicroMason;
my $mason = Text::MicroMason->new( -AllowGlobals );
Share package variables:
$mason->set_globals( '$name' => 'Bob' );
Use the standard compile and execute methods to parse and evalute templates:
print $mason->compile( text=>$template )->();
print $mason->execute( text=>$template );
Then, in a template, you can refer to those globals:
Welcome, <% $name %>!
DESCRIPTION
Public Methods
set_globals()
Accepts a list of pairs of global variable names and corresponding values.
Adds each variable name to the allowed list and sets it to the initial value.
allow_globals()
Gets or sets the variables names to be allowed.
If called with arguments, adds them to the list.
Returns the variables to be allowed as a list, or as a space-separated string in scalar context.
Supported Attributes
allow_globals
Optional array or space-separated string of global variable names to be allowed.
Private Methods
assemble()
Adds the allow_globals_statement to each token stream before assembling it.
allow_globals_statement()
This method prepends the "use vars" statement needed for the template subroutines to compile.
SEE ALSO
For an overview of this templating framework, see Text::MicroMason.
This is a mixin class intended for use with Text::MicroMason::HTMLMason.
For distribution, installation, support, copyright and license information, see Text::MicroMason::Docs::ReadMe.
perl v5.10.1 2007-01-29 MicroMason::AllowGlobals(3pm)