12-11-2008
echo and new line
hi
I want to display:
The students are:
a
b
c
What I get from
echo "The students are:" "$list"
is
The students are: a
b
c
any idea?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hello,
i have a listing (let say ABC) consists of the below:
:
public database link
public synonym
role
rollback segment
:
when i run the below for loop,
for i in `more ABC`
do
echo "$i"
done
it gives me,
:
public
database (4 Replies)
Discussion started by: newbie168
4 Replies
2. Shell Programming and Scripting
Suppose that you want to mostly not echo commands inside your script during execution (e.g. to not bog the user down with details that they do not care about) but that there is the occaisional script line that you would like to echo before you execute it.
Is there an elegant way to achieve this?... (3 Replies)
Discussion started by: fabulous2
3 Replies
3. Shell Programming and Scripting
I have script like
echo -n FINISHED FEXP: ${TABLE2EXP}
echo $STATUS
I want the output of both the echo statement in one line
How can i do this (3 Replies)
Discussion started by: scorp_rahul23
3 Replies
4. Shell Programming and Scripting
Hi
i would like disply the new line in echo command.
i have input like:
echo " X1 02:12:13 X2 03:02:12 "
out put:
X1 02:12:13
X2 03:02:12
can you tell how can use new line option in echo command. (5 Replies)
Discussion started by: koti_rama
5 Replies
5. Shell Programming and Scripting
Hello,
I'm writing some bash scripts and I'm trying to get an echo command and the output of another command to display on the same line. For example:
I want to run
echo "Operating System: " unameand have it displayed as
Operating System: Darwin
Thanks for your help! (7 Replies)
Discussion started by: codyhazelwood
7 Replies
6. Shell Programming and Scripting
Hi,
I try to write script and echo two command at the same line .
echo "A"
echo "B"
How can I pipe above two command at the same line in text file .
So, in the output text file , you can see below ???
A B
not
A
B
Any sugggestion ??? (4 Replies)
Discussion started by: chuikingman
4 Replies
7. Shell Programming and Scripting
Hello,
I have a very basic script
#!/usr/bin/ksh
while
print ' '
print ' 1. View Command History '
print ' 2. List files in current Directory '
read opt'?Enter Option> ' ;do
if ;then
fc -l
fi
#
if ;then
ls -la
I want to... (10 Replies)
Discussion started by: Grueben
10 Replies
8. UNIX for Dummies Questions & Answers
Hi ,
This might sound little familar to you guys, but am struck with something.
i have an IF conditioned loop which will determine a variable to get used in the later part of the script.
if ;
then
if ;
then
Var_name="This is first line.This is second line.This is... (11 Replies)
Discussion started by: scott_cog
11 Replies
9. UNIX for Dummies Questions & Answers
Hi,
i am witing a function in a shell script which will echo the file name and witre in to the new line, but i dont get expected results. The below is my code
#!/bin/bash
DATE=$1
myview(){
base_name=$1
echo -ne "${base_name}${DATE}">> /path/to/file/txt
}
myview sample3030
myview... (5 Replies)
Discussion started by: vikatakavi
5 Replies
10. Shell Programming and Scripting
Dear All,
fileName: therm.txt
nc3h7o2h 7/27/98 thermc 3h 8o 2 0g 300.000 5000.000 1390.000 41
1.47017550e+01 1.71731699e-02-5.91205329e-06 9.21842570e-10-5.36438880e-14 2
-2.99988556e+04-4.93387892e+01 2.34710908e+00 4.34517484e-02-2.65357553e-05 3
... (7 Replies)
Discussion started by: linuxUser_
7 Replies
LEARN ABOUT DEBIAN
writetype
WRITETYPE(1) General Commands Manual WRITETYPE(1)
NAME
WriteType - application designed to help students write more easily
SYNOPSIS
writetype [OPTION] ... FILE
DESCRIPTION
WriteType is a simple word processor designed to help young students write more easily and accurately. It offers spelling suggestions as
students type, making the process easier and less frustrating. It also provides the ability to read back text through either an eSpeak or a
Festival backend. In addition, there are special tools for teachers, and the entire application is easily translatable.1
WriteType is Free Software / Open Source, and is released under the GNU GPL license.
OPTIONS
-l, --lang
Set the language for this session
-t, --tts-engine
Set the tts engine for this session. Changes in the settings during this session will override this.
-?, --help
Display this help and exit
FEATURES
Word Completion - As students type, word suggestions appear on the right-hand side of the screen to complete the word being typed. Click-
ing on the desired word will finish the word. WriteType will also learn a student's habits over time and make more relevant suggestions
based on what has already been written.
Reading Back the Document - WriteType will read back written text, allowing students to catch errors they may not have caught reading it
back themselves.
Highlighting - Sections of the document can be quickly highlighted while typing or while listening to the document being read back. This
lets students quickly flag areas they need to go back and review.
Grammar checking - WriteType will underline simple grammar and formatting mistakes in the document, and offer to make the necessary revi-
sion.
Auto-correction - Common errors, such as typing isnt instead of isn't, will be corrected automatically without the need for intervention.
Distraction-free mode If the typist has difficulty maintaining concentration while typing, distraction-free mode is an alternative inter-
face that displays full screen and only includes the text box and the list of completions.
Add a list of custom words In some situations, the default list of words is not sufficient, so the system allows the user to add new ones.
Even if the words already exist in the list of words, adding them will bring them to the top of the list of suggestions.
AUTHOR
WriteType was made by Max Shinn <max@bernsteinforpresident.com>
SEE ALSO
You can find more information at http://writetype.bernsteinforpresident.com/
BUGS
Probably.
1.2.130 WRITETYPE(1)