Sponsored Content
Full Discussion: Mkdir
Homework and Emergencies Homework & Coursework Questions Mkdir Post 302877969 by bolones on Wednesday 4th of December 2013 05:17:39 AM
Old 12-04-2013
Mkdir

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:
Do the procedure, which if there are 5 parameters then it creates 4 directories with names of 4 parameters, in those directories it creates files with the same name, and in those files, the fifth parameter must be saved.


2. Relevant commands, code, scripts, algorithms:
for
if

3. The attempts at a solution (include all code and scripts):
Code:
for k in 1,2,3,4
do
if $# -eq=5
then
mkdir $5>$k/$k
else
echo blablabla
fi
done


4. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
AGH,Cracow,Poland

Please, help me i don't know what to do.

Last edited by bolones; 12-04-2013 at 07:01 AM.. Reason: Add CODE tags.
 

10 More Discussions You Might Find Interesting

1. Linux

install vs mkdir

I'm sitting here late at night, reading linux from scratch, and I come to this part: http://lfs.osuosl.org/lfs/view/stable/chapter06/creatingdirs.html my question to you, the all knowing unix.com'ers is this: what's the difference between using the install command as they do, and using the... (1 Reply)
Discussion started by: thmnetwork
1 Replies

2. Shell Programming and Scripting

mkdir

Hi, I look for a script to create 150 directories : d000 d001 d002 ... ... d149 would you help me please ? I think it would be for i mkdir d$i Many thanks. PS : #uname -a AIX fserver 3 5 0050691A4C00 (2 Replies)
Discussion started by: big123456
2 Replies

3. UNIX for Advanced & Expert Users

mkdir

Is there ant way to increase max number of folders in the directory from the 32766: Problem UFS: shell>mkdir mmm mkdir: mmm: Too many links But there are no links, just folders. shell>ls | wc -l 32766 (3 Replies)
Discussion started by: mirusnet
3 Replies

4. Shell Programming and Scripting

Cp/Mkdir and spaces

I am having trouble using cp and mkdir commands on a small script. The problem is I have spaces what I am trying to mkdir and then copy. Any suggestions on how I can solve this problem? I've tried searching online. while read linefile do echo mkdir -p $CPP$linefile | cut -d / -f 1-5,8-12 ... (10 Replies)
Discussion started by: imagiro1
10 Replies

5. Shell Programming and Scripting

Help me with mkdir command

Hi, please help me with this small script #!/bin/sh curdir=`pwd` n20=$curdir'/n20/' msat=$curdir'/n20/msat/' if then mkdir $n20 fi if then mkdir $msat fi for a in 30 40 50 60 70 80 do (4 Replies)
Discussion started by: Dark2Bright
4 Replies

6. Shell Programming and Scripting

mkdir bug

Dear, I have the following script: maak_backup () { echo 'Maken van tijdelijke bestanden, even geduld aub.' for i in /home/yannick/* ; do cp -r $i $i.bac done if ; then echo 'Backup map = OK!' echo 'Bezig met kopiëren, even geduld... (9 Replies)
Discussion started by: yadeki
9 Replies

7. Linux

mkdir command

Hi all, i am new to Linux and need some help. I used the command: mkdir super Directory super is created When i try to change to this directory using: cd /super I get: bash: cd: /super: No such file or directory when i use: rm super I get: rm: cannot remove 'super': Is a directory What... (5 Replies)
Discussion started by: Deside
5 Replies

8. UNIX for Dummies Questions & Answers

Mkdir utility

Howdy, Puttering around in unix, and read this in the mkdir man page: "The mkdir utility creates the directories named as operands..." What does this mean, i.e. as operands? Many thanks, DN (2 Replies)
Discussion started by: danuke
2 Replies

9. UNIX for Dummies Questions & Answers

How to use mkdir{...} with a variable?

Hi, I used "mkdir job{0001..10}" do get directories. Now I want to create directories with a variable, for exemple "mkdir job{0001..$a}". When a=5 I get the directory "job{0001..5}". What have i to change to get job0001,...,job0005 :/ Thx for ur help :) (1 Reply)
Discussion started by: E_taks
1 Replies

10. UNIX for Beginners Questions & Answers

Mkdir

hi linux expert what is a difference between: mkdir test and mkdir ./test and also if ( -e /test ) then and if ( -e ./test ) then thanks in advance Please use icode or code tags next time for your code and data (1 Reply)
Discussion started by: abdossamad2003a
1 Replies
Dist::Zilla::Plugin::TemplateModule(3pm)		User Contributed Perl Documentation		  Dist::Zilla::Plugin::TemplateModule(3pm)

NAME
Dist::Zilla::Plugin::TemplateModule - a simple module-from-template plugin VERSION
version 4.300020 DESCRIPTION
This is a ModuleMaker used for creating new Perl modules files when minting a new dist with "dzil new". It uses Text::Template (via Dist::Zilla::Role::TextTemplate) to render a template into a Perl module. The template is given two variables for use in rendering: $name, the module name; and $dist, the Dist::Zilla object. The module is always created as a file under ./lib. By default, the template looks something like this: use strict; use warnings; package {{ $name }}; 1; ATTRIBUTES
template The "template" parameter may be given to the plugin to provide a different filename, absolute or relative to the build/profile directory. If this parameter is not specified, this module will use the boilerplate module template included in this module. MINTING CONFIGURATION
This module is part of the standard configuration of the default Dist::Zilla Minting Profile, and all profiles that don't set a custom ':DefaultModuleMaker' so you don't need to normally do anything to configure it. dzil new Some::Module # creates ./Some-Module/* # creates ./Some-Module/lib/Some/Module.pm However, for those who wish to configure this ( or any subclasses ) this is presently required: [TemplateModule / :DefaultModuleMaker] ; template = SomeFile.pm AUTHOR
Ricardo SIGNES <rjbs@cpan.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 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.14.2 2012-06-21 Dist::Zilla::Plugin::TemplateModule(3pm)
All times are GMT -4. The time now is 10:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy