06-30-2001
Sorry that you've got to wait 3 hours, I assumed that you were running your own Unix box.
Try copying the following to a file called myscript
#--------
#!/bin/sh
mkdir temp
cp * temp
cd temp
ls
#----------
Next you should make the script executable: "chmod o+x myscript", if you don't make the file executable then you'll need to type "sh myscript" to execute the script.
If you don't want to add the file to your path then you'll need to type ./myscript from the scripts directory.
The path can be find by typing "echo $PATH"
Andy Hibbins
8 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
I have created a small FAQ for the "Unix for Dummies" forum.
Hopefully this will be useful, as there are questions which are asked (and answered) repeatedly.
<A HREF="http://www.droflet.net/unix_dot_com_faq.html">http://www.droflet.net/unix_dot_com_faq.html (0 Replies)
Discussion started by: PxT
0 Replies
2. Shell Programming and Scripting
Hi all.
iam new to this and i want to learn perl
Any good website out there ??
anything will do
thanks
:( (1 Reply)
Discussion started by: perleo
1 Replies
3. News, Links, Events and Announcements
A goofy UNIX test:
http://www.majon.com/cgi-bin/IQ?Q=unix
WARNING: ANSWERS ARE BELOW!!!!
IF YOU WANT TO DO THE TEST BEFORE SEEING THE ANSWERS, DON"T READ FURTHER ;) (13 Replies)
Discussion started by: Neo
13 Replies
4. Solaris
Is there one command that will display all system information on a Solaris host running Solaris 8? System information such as model, memory, CPU, disk space etc. etc. (2 Replies)
Discussion started by: mita
2 Replies
5. UNIX for Dummies Questions & Answers
I want to know data about
1. Overview
2. Process Management
3. Memory Management
4. File System Management
5. Secondary Storage Management
6. Protection and Security Systems
of UNIX OS
Thank Alot. (1 Reply)
Discussion started by: coolmara04
1 Replies
6. UNIX for Dummies Questions & Answers
Please help to answer some highlighted question below.
1. How to create more than 1 partition in a single hard disk?
2. How to format the created partition to be viewable like in windows C: or D: ?
3. How to use pen drive in unix environment?
4. How to find a file starting with... (8 Replies)
Discussion started by: jimmyysk
8 Replies
7. UNIX for Dummies Questions & Answers
Hello:
I am a very new Newbie. This is not a homework question.
The assignment question was actually on the use of the 2 different inputs 'read' and 'cat' ... that I know and turned in an hour ago. I don't need help with that. My question, like I said, probably sounds really dumb to most of... (4 Replies)
Discussion started by: ZaraJC
4 Replies
8. Programming
Hi.
I wrote a small programm which shows me display's refresh rate
#include "stdafx.h"
#include "windows.h"
#include "iostream"
using namespace std;
int _tmain(int cout)
{
HDC hDCScreen = GetDC(NULL);
int RefreshFrequency = GetDeviceCaps(hDCScreen, VREFRESH);
ReleaseDC(NULL, hDCScreen);... (1 Reply)
Discussion started by: urello
1 Replies
learn(1) General Commands Manual learn(1)
NAME
learn - Provides computer-aided instruction for the C shell
SYNOPSIS
learn [-directory] [subject] [lesson]
The learn command provides computer-aided instruction courses and practice in the use of Tru64 UNIX.
OPTIONS
Allows you to exercise a script in a nonstandard place.
DESCRIPTION
To get started, enter learn; if this is the first time that you are invoking the learn command, you are guided through a series of ques-
tions to determine what type of instruction you want to receive.
If you have used learn before and left your last session without completing a subject, the program uses information in $HOME/.learnrc to
start you up in the same place you left off.
To bypass questions, enter a subject or lesson. In order to enter a lesson, you must know the lesson number that you received in a previ-
ous learn command session. If you do not know the lesson number, enter the lesson number as a subject. The learn command searches for the
first lesson containing the subject you specified. If the lesson is a - (dash), learn prompts for each lesson; this is useful for debug-
ging.
You can specify the following subjects:
files editor vi morefiles macros eqn C
SUBCOMMANDS
There are a few special commands. The bye command terminates a learn session, and the where command tells you of your progress (where m
tells you more.) The again command redisplays the text of the lesson and again lesson lets you review lesson. The hint command prints the
last part of the lesson script used to evaluate a response, while hint m prints the entire lesson script. This is useful for debugging
lessons and might possibly give you an idea about what is expected.
EXAMPLES
To take the online lesson about files, enter: learn files
You are then prompted for further input.
FILES
Playpen directories. Start-up information.
SEE ALSO
Commands: csh(1), ex(1)
learn(1)