04-21-2013
I tried your master script. It seems to work fine, seems to accomplish what your teacher wants. I did notice (minor nit-picky) that the "echo -e" prints the -e instead of using it as a command option. I won't explain why it does that, according to the forum rules.
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
sir,
i came to know that telephone exchanges
use unix for the working of telephones,that is
when we take our hand set in telephone we
can note a dial sound,for this telephone exchanges
use unix.
we are going to do project using unix,i want to know
wheater we can able to connect... (1 Reply)
Discussion started by: radheesh
1 Replies
2. IP Networking
hai to all,
that i came to know all telephone exchanges
use unix.i want to know wheather we can connect telephones
uaeing unix,if it possible means how&and also i need about
more information about "telephones in unix"
... (1 Reply)
Discussion started by: radheesh
1 Replies
3. UNIX for Dummies Questions & Answers
Hello There,
I configure my Modem as follow.
Step1.
# admintool &
Then from Browse --> Serial Port
i select tta port and Edit --> Modify
From that i select Template : Modem:Dial Out
Baud Rate: 9600
Ok
Step 2
# tip /dev/cua/a
connected (1 Reply)
Discussion started by: abidmalik
1 Replies
4. Shell Programming and Scripting
hey peeps
has anyone done the "Enhance the spell_check script (Sobell page 646) to accept an optional third argument" script. I am fully having trouble getting it to work. if you have done the script and dont mind sharing with others, please help me out.
thanks
mila :confused: (0 Replies)
Discussion started by: 30177005
0 Replies
5. Shell Programming and Scripting
Hello, excuse my English... I'm trying to do a nautilus-script to transform a normal A4 pdf to another pdf with book format, ready to be printed (double sided). I mean, the script put pages in order and also put 2 pages per horizontal A4 page (p.e.: a pdf with 8 pages would look like: 8-1, 2-7,... (2 Replies)
Discussion started by: dokan
2 Replies
6. Shell Programming and Scripting
Hello, I'm new to this forum, and I apologize in advance if I did something wrong here.
I am pretty stumped here as I am still getting the error message, "./comc1.sh: test: argument expected." after executing the script itself.
Here's the script file I modified:
I tried executing line 4... (1 Reply)
Discussion started by: ConcealedKnight
1 Replies
7. Shell Programming and Scripting
How can I script to check telephone number entered by user in a uniz script:
print -n "Enter telephone number to check ? " ; read telno
How do I script to :
1) Check if entered without dashes or with dashes
2) If without dashes how can I check:
if telno is only 10... (2 Replies)
Discussion started by: mrn6430
2 Replies
LEARN ABOUT DEBIAN
shtool-echo
SHTOOL-ECHO.TMP(1) GNU Portable Shell Tool SHTOOL-ECHO.TMP(1)
NAME
shtool-echo - GNU shtool echo(1) extensional command
SYNOPSIS
shtool echo [-n|--newline] [-e|--expand] string
DESCRIPTION
shtool echo is an echo(1) style command which prints string to stdout and optionally provides special expansion constructs (terminal bold
mode, environment details, date, etc) and newline control. The trick of this command is that it provides a portable -n option and hides the
gory details needed to find out the environment details under option -e.
OPTIONS
The following command line options are available.
-n, --newline
By default, output is written to stdout followed by a "newline" (ASCII character 0x0a). If option -n is used, this newline character is
omitted.
-e, --expand
If option -e is used, string can contain special "%x" constructs which are expanded before the output is written. Currently the
following constructs are recognized:
%B switch terminal mode to bold display mode.
%b switch terminal mode back to normal display mode.
%u the current user name.
%U the current user id (numerical).
%g the current group name.
%G the current group id (numerical).
%h the current hostname (without any domain extension).
%d the current domain name.
%D the current day of the month.
%M the current month (numerical).
%m the current month name.
%Y the current year.
EXAMPLE
# shell script
shtool echo -n -e "Enter your name [%B%u%b]: "; read name
shtool echo -e "Your Email address might be %u@%h%d"
shtool echo -e "The current date is %D-%m-%Y"
HISTORY
The GNU shtool echo command was originally written by Ralf S. Engelschall <rse@engelschall.com> in 1998 for Website META Language (WML)
under the name buildinfo. It was later taken over into GNU shtool.
SEE ALSO
shtool(1), echo(1).
18-Jul-2008 shtool 2.0.8 SHTOOL-ECHO.TMP(1)