10-07-2005
Quote:
Originally Posted by google
Looking at the member list, there are alot of interesting names, some unique, some bizarre, and some that are just plain. How did you come by your name? Why did you choose your label?
Mine comes from the Pixies song,
Velouria
Why did I choose it? Well it seemed a good name at the time. Alas, I've found it's as common as muck out on the intarweb
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Found this piece of code written in ksh. I have no ideas what do the stuff like ${SRF##*\.} do.
SUFFIX=${SRF##*\.}
if ; then
SUFFIX=""
fi
I have encountered similar expressions in other programs also. Any pointers on where to learn more about these... (1 Reply)
Discussion started by: jyotipg
1 Replies
2. Post Here to Contact Site Administrators and Moderators
woofie,
Your posts are being deleted because your use of profanity.
I am close to changing your status to read only.
In fact, if you argue with the mods again, I will ban you from these boards.
Neo (1 Reply)
Discussion started by: Neo
1 Replies
3. Shell Programming and Scripting
Hi,
whats the difference between $* and $@ in command line arguments to a shell scripts (3 Replies)
Discussion started by: pbsrinivas
3 Replies
4. Shell Programming and Scripting
#! /bin/bash
head -5 $1
echo "remove $1 ?"
read answer
if
then
echo invalid answer
elif
rm $1
echo "$1 is deleted"
elif
then
echo file is not deleted
else
echo "invalid answer"
fi
What i really want this to do is to ask to delete the file or not..it says something wrong... (1 Reply)
Discussion started by: nadman123
1 Replies
5. Shell Programming and Scripting
#! /bin/bash
USAGE=" | ]
if
then
echo "$USAGE"
exit 1
fi
while getopts lb: OPTION
do
case $(OPTION)in
a) echo Hi there!
exit 2;;
b) echo hello
o) OARG=$OPTARG;;
\?)echo "$USAGE" ;;
exit 2;;
esac
done
shift `expr... (1 Reply)
Discussion started by: nadman123
1 Replies
6. Shell Programming and Scripting
hi all,
i found NAME=${0##*/} in a script.
i given this coomand in my unix box(presently in ksh).
echo ${0##*/} it returned ksh.
the purpose of the above is to return the shell name or more than that.
do you have any more information like this, please share with me.
one more query... (7 Replies)
Discussion started by: Arunprasad
7 Replies
7. Shell Programming and Scripting
Hi all,
could you please tell me whats this stands
##*_
0##*/
i knew this alone if some more is there please tell me that also. (3 Replies)
Discussion started by: Arunprasad
3 Replies
8. UNIX for Dummies Questions & Answers
can anyone tell me why this code doesn't work how its supposed to, its the hangman game but it doesn't play how its supposed to
#!/bin/bash
NoAttempts="0"
livesgiven="5"
LivesRemain=$livesgiven
LettersAttempted=""
wordfile=words
numwords=0
function menu()
{
clear
cat << menu... (1 Reply)
Discussion started by: ferrycorsten73
1 Replies
9. Homework & Coursework Questions
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:
ls -ld htdocs
drwxr-x--- 3 root root 8192 2006-11-19 10:41 htdocs
How would a host administrator... (1 Reply)
Discussion started by: Larry_1
1 Replies
LEARN ABOUT DEBIAN
tk_scsiformat
tk_scsiformat(8) Scsiinfo User's Guide tk_scsiformat(8)
NAME
tk_scsiformat - low level format an scsi disk device with a nice user interface
SYNOPSIS
tk_scsiformat [device]
DESCRIPTION
Low level formats the SCSI device identified by the scsi disk or generic scsi device node device. You must be root to perform this opera-
tion. When you do not specify a device, tk_scsiformat gives you a list to select a disk device from.
tk_scsiformat is a Tcl/Tk user interface to scsiformat(8).
You should read that manual page for the general operation of scsiformat. All common X11 and Tcl/Tk options apply.
By the nature of graphical user interfaces, there should not be much to explain here. All entry fields refer directly to scsiformat(8)
options.
In addition to those, you are able to save your selections to be used as defaults for this device next time in a file /usr/lib/scsi/scsi-
format.defs.* by pressing the <Save Defaults> button. This is intended and very handy for formatting of removable medias. Note, however,
that tk_scsiformat is not as clever as scsiformat(8) (or even tries to be) to find if multiple ways to refer to the same scsi device (disk
device, generic device).
Furthermore, you can select (or enter freely) a command to automatically make a file system on the newly formatted disk.
While formatting a nice completion bar is drawn. Alas, I could not really implement querying progress from a target device yet.
The /usr/lib/scsi/tworands binary is used to calculate two random integers which is not supported by plain Tcl/Tk.
BUGS
When not specifying a device to format, tk_scsiformat will prepare a list of disk devices to choose from. Alas, if a blocking format opera-
tion is running on one of them, tk_scsiformat will block in a non interruptible disk wait sleep.
Old status files in /tmp will confuse tk_scsiformat. However, they are removed after 48 hours.
Restrictions of the SCSI_IOCTL_SEND_COMMAND ioctl(2) call for the sd(4) device make it impossible to issue a FORMAT_UNIT command with more
than 4096 bytes of arguments. This could be avoided by using the proper generic scsi device /dev/sg* instead, at least where the kernel is
compiled to support it. Most of the time this is not needed though and thus I'm myself to lazy to do it.
FILES
/usr/lib/scsi/tworands
/usr/lib/scsi/scsiformat.defs.*
/tmp/scsiformat.xx:xx:xx:xx:xxxxxxxx
/dev/sd*
/dev/sg*
SEE ALSO
scsiformat(8), scsiinfo(8), scsi-config(8), fdisk(8), sd(4).
AUTHOR
Michael Weller <eowmob@exp-math.uni-essen.de>
scsiinfo 1.7 23 August 1997 tk_scsiformat(8)