12-03-2005
nevermind, after tinkering a while i got it to work. Mod you can close this thread now.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Can anyone please tell me why this wont work! Thanks so much!
#!/bin/sh
for file
do
case $file in
*.*.*)
echo Cannot have more than 1 dot
exit
;;
*'**'*)
echo Cannot have more than 1 asterisk
exit
;;
*'*'*|?.)
echo this is a target (19 Replies)
Discussion started by: Zeta_Acosta
19 Replies
2. UNIX for Dummies Questions & Answers
I want to write a program with the following variables:
a=7000
b=24000
c=613.8
The user can enter two words: Vivid or Blue for example. The challenge is that the user might not want to write the words the way they appear. The user can write V or v or vivid or Vivid or write Blue or blue, or B,... (1 Reply)
Discussion started by: Ernst
1 Replies
3. Shell Programming and Scripting
Hi all,
I think i'm asking a sqtupid question here..
i'm using case sttament, what is the syntax or symbol for "or"?
I thought was ||
here a quick sample of my case statment
echo "Would you like to update your detail ?"
read response
case $response in
... (2 Replies)
Discussion started by: c00kie88
2 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I am writing a bash shell script. My script has a few user defined parameters. When the script runs the first thing it does is make sure that these parameters are valid. One of the parameters is called YEAR. A valid input for YEAR can be 1997-2000.
One way I have come up with to ensure... (3 Replies)
Discussion started by: msb65
3 Replies
5. Shell Programming and Scripting
I am writing a script to pull diskspace information from our servers. Here is the script that I wrote:
#!/bin/ksh
for host in `cat /oper/hosts/esc.misc`
do
ssh -q -o ConnectTimeout=10 operator@$host df -h|grep "/dev/" |egrep '8%|9%|100%' | awk '{print H " " "at " $5 " with " $4 "... (1 Reply)
Discussion started by: rkruck
1 Replies
6. Shell Programming and Scripting
Hi,
I am writing case statement to execute some finction, my requirement is once one of the case statement is executed again it has to prompt for the option.
for script in `echo "$Script_Selected"`
do
case $script in
1) getNoOFActUsers
;;
2) moveServerrOORotation
;;
... (2 Replies)
Discussion started by: Satyak
2 Replies
7. Shell Programming and Scripting
Hello,
The standard case statement :-
case "$1" in
"IE0263")
commands;;
"IE0264")
commands;;
esac
is it possible to have :-
case "$1" in
"IE0263" OR "IE0878")
commands;;
"IE0264")
commands;;
esac
Thanks (4 Replies)
Discussion started by: jmahal
4 Replies
8. Shell Programming and Scripting
Hey, guys I really need some help with a project.
"Write a shell program that examines the command line arguments, counts and collects the number of options. Basically it has to collect and count the arguments that start with a "-" and the one's that don't start with a -
I know I have to use... (2 Replies)
Discussion started by: sk192010`
2 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:
Hey, guys I really need some help with a project.
"Write a shell program that examines the command line... (8 Replies)
Discussion started by: sk192010`
8 Replies
10. UNIX for Dummies Questions & Answers
Hi I am new to shell scripting, I wanted to make a shell script that has a case statement asking the user to select their city 1)london 2)tokyo 3) etc., I then want the users input to be stored in a variable and echoed out in another script; so for example if the user selects tokyo, tokyo city code... (2 Replies)
Discussion started by: scriptnewbie
2 Replies
DVTM(1) General Commands Manual DVTM(1)
NAME
dvtm - dynamic virtual terminal manager
SYNOPSIS
dvtm [-v] [-m mod] [-s status-fifo] [cmd...]
DESCRIPTION
dvtm is a dynamic tiling window manager for the console. As a console window manager it tries to make it easy to work with multiple con-
sole based applications.
OPTIONS
-v prints version information to standard output, then exits.
-m mod set default modifier at runtime.
-d escdelay
set the delay ncurses waits before deciding if a character that might be part of an escape sequence is actually part of an escape
sequence.
-h nnn set the scrollback history buffer size at runtime.
-s status-fifo
if status-fifo is a named pipe it's content is read and displayed. See the dvtm-status script for an usage example.
[cmd...]
Execute cmd after dvtm is started.
USAGE
Keyboard commands
Mod Each keybinding begins with Mod which defaults to ^g but can be changed in config.h or with the -m command line option.
Mod-c Create a new shell window.
Mod-x Close focused window.
Mod-l Increases the master area width about 5% (all except grid and fullscreen layout).
Mod-h Decreases the master area width about 5% (all except grid and fullscreen layout).
Mod-j Focus next window.
Mod-k Focus previous window.
Mod-[1..n]
Focus the nth window.
Mod-. Toggle minimization of current window.
Mod-u Focus next non minimized window.
Mod-i Focus prev non minimized window.
Mod-m Maximize current window (change to fullscreen layout).
Mod-PageUp
Scroll up.
Mod-PageDown
Scroll down.
Mod-Space
Toggle between defined layouts (affects all windows).
Mod-Enter
Zooms/cycles current window to/from master area.
Mod-t Change to vertical stack tiling layout.
Mod-b Change to bottom stack tiling layout.
Mod-g Change to grid layout.
Mod-s Shows/hides the status bar.
Mod-r Redraw whole screen.
Mod-G Escape the next typed key.
Mod-a Toggle keyboard multiplexing mode, if activated keypresses are sent to all non minimized windows.
Mod-X Lock screen.
Mod-B Toggle bell (off by default).
Mod-M Toggle dvtm mouse grabbing.
Mod-q Quit dvtm.
Mouse commands
Copy and Paste
By default dvtm captures mouse events to provide the actions listed below. Unfortunately this interferes with the standard X copy
and paste mechanism. To work around this you need to hold down SHIFT while selecting or pasting text. Alternatively you can disable
mouse support at compile time, or use Mod-M to toggle mouse support dynamically.
Button1 click
Select window.
Button1 double click
Select window and toggle maximization.
Button2 click
Zooms/cycles current window to/from master area.
Button3 click
Toggle minimization of current window.
EXAMPLE
See the dvtm-status script as an example.
CUSTOMIZATION
dvtm is customized by creating a custom config.h and (re)compiling the source code. This keeps it fast, secure and simple.
AUTHOR
dvtm is written by Marc Andre Tanner <mat at brain-dump.org>
dvtm-0.6 DVTM(1)