05-21-2004
Urgent answer needed, please: help with a text editor
I'm sorry if this has been posted before, but I'm in a big hurry and I need a pretty quick answer: I have to make a project for school which consists of many BASH scripts. At school we have Sun Sparcs. During the laboratory hours I used to open the text editor (in the graphics interface), edit the script then run it from terminal. But now I must connect from home to the server and do everything from the command line. I don't know anything about text mode text editors and I don't have the time to read through their manuals. I just need a quick how-to write something in a text editor and how to save it and exit the text editor, so then I can run that script.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I have a few questions to be answered.Please help me out in this.Its urgent.
1) what does ' $* ' mean, what does it do ?
2) Command to change UNIX Password.
3) What is Daemon processes ?
4) How do u execute a Unix command or process in the background ?
5) What is nohup ?
6) Difference... (6 Replies)
Discussion started by: uni_ajay_r
6 Replies
2. UNIX for Dummies Questions & Answers
Hi,
Please explain what does '$*' mean.
what does the command cd /~abc do, especially what does '~' mean?
cheers. (1 Reply)
Discussion started by: uni_ajay_r
1 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I need to cut/copy/paste lines from one file to another in Uxix. what is the best way to do this? Should an editor be used, or can you use a command?
Regards
Russ (1 Reply)
Discussion started by: shamrocks
1 Replies
4. Windows & DOS: Issues & Discussions
Hi, Please accept my apologies if I have not explained anything clearly enough but i am a little old on new lingo!!!
I am running XP from home and last night the following happened.
After being logged on for pretty much the full day, I had what seemed like a pop up come up. Although most pop... (3 Replies)
Discussion started by: nike1601
3 Replies
5. UNIX for Dummies Questions & Answers
Hi
To delete some text in 2 files in line1 ( not complete line) in unix without opening the files.
For example: source file is like this
<?xml version="1.0"... (5 Replies)
Discussion started by: pyaranoid
5 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I knw its a silly question, but am a newbie to 'vi' editor. I'm forced to use this, hence kindly help me with this question.
How can i paste a chunk 'copied from' a different editor(gedit) in 'vi editor'?
As i see, p & P options does work only within 'vi'. (10 Replies)
Discussion started by: harishmitty
10 Replies
7. Shell Programming and Scripting
Hi,
Iam in a need for a script/function in KSH where I want to read a text file (property file) in block by block. Here is the example:
Heading Name Descripton
Block Block1 Value1 Description
Property Name Value
Property Name Value
Property Name Value
Property Name Value
Property Name... (7 Replies)
Discussion started by: ysreenivas
7 Replies
8. Shell Programming and Scripting
Hi,
Below is my issue which I desperately need and I want a shell script which can do this job.
I need this script as I m planning to put this for a system health check. Please assist me.
1. There are 10 log files in a particular location.
2. open each log file. Goto to the end of the... (1 Reply)
Discussion started by: kashriram
1 Replies
9. UNIX for Dummies Questions & Answers
I am very new to LINUX and could not find answer to these questions please submit your comments and suggestions to answer these questions.
Appreciate your time thank you, :)
If you look at the permissions associated with a symbolic link, it has universal access. Does this lead to security... (0 Replies)
Discussion started by: linux17
0 Replies
10. UNIX for Dummies Questions & Answers
I am very new to LINUX and could not find answer to these questions please submit your comments and suggestions to answer these questions.
Appreciate your time thank you, :)
1. Make sure there is no filename1.txt in current directory first. Now, enter vi with "vi filename1.txt" command. vi... (4 Replies)
Discussion started by: linux17
4 Replies
QUIZ(6) BSD Games Manual QUIZ(6)
NAME
quiz -- random knowledge tests
SYNOPSIS
quiz [-t] [-i file] [question answer]
DESCRIPTION
The quiz utility tests your knowledge of random facts. It has a database of subjects from which you can choose. With no arguments, quiz
displays the list of available subjects.
The options are as follows:
-t Use tutorial mode, in which questions are repeated later if you didn't get them right the first time, and new questions are presented
less frequently to help you learn the older ones.
-i Specify an alternative index file.
Subjects are divided into categories. You can pick any two categories from the same subject. quiz will ask questions from the first cate-
gory and it expects answers from the second category. For example, the command ``quiz victim killer'' asks questions which are the names of
victims, and expects you to answer with the cause of their untimely demise, whereas the command ``quiz killer victim'' works the other way
around.
If you get the answer wrong, quiz lets you try again. To see the right answer, enter a blank line.
Index and Data File Syntax
The index and data files have a similar syntax. Lines in them consist of several categories separated by colons. The categories are regular
expressions formed using the following meta-characters:
pat|pat alternative patterns
{pat} optional pattern
[pat] delimiters, as in pat[pat|pat]pat
In an index file, each line represents a subject. The first category in each subject is the pathname of the data file for the subject. The
remaining categories are regular expressions for the titles of each category in the subject.
In data files, each line represents a question/answer set. Each category is the information for the question/answer for that category.
The backslash character (``'') is used to quote syntactically significant characters, or at the end of a line to signify that a continuation
line follows.
If either a question or its answer is empty, quiz will refrain from asking it.
FILES
/usr/share/games/bsdgames/quiz The default index and data files.
BUGS
quiz is pretty cynical about certain subjects.
BSD
May 31, 1993 BSD