09-20-2006
I really don't have much time to debug tthis, but you could start [as suggested] by putting the 'set -x' at the top of your script and see what gets executed and how things get 'compared'.
Good luck.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I have two strings
a=Mar22
b=may21
how can I compare them
Is this fine
if then;
.
...
else
....
fi
or
if then (2 Replies)
Discussion started by: yakyaj
2 Replies
2. Shell Programming and Scripting
Hi All,
While I am trying to run below code I Am getting the exception like
./abs.sh: line 102: syntax error near unexpected token `then'
./abs.sh: line 102: ` then'
The Code Snippet is:
if then
cat $file1 | sed -e... (8 Replies)
Discussion started by: Anji
8 Replies
3. Shell Programming and Scripting
i have a string in a file which gets repeated number of times like below:
rpttxt("abc")
.
.
rpttxt("REP_TITLE")
rpttxt("BOS_TITLE")
.
.
.
.
and so on
using awk or grep how can i comapre the string( as the second half keeps varying) and store it in a temporary variable? I am using the... (3 Replies)
Discussion started by: agarwal
3 Replies
4. Shell Programming and Scripting
hi
i have 2 strings. i want to compare the strings.
please help (2 Replies)
Discussion started by: satish@123
2 Replies
5. Shell Programming and Scripting
hi All
i am facing prob in comparing two strings that have two word.
below is the code snippet.
checkValidates="file validates"
file3_name="file"
if
then
echo "file" $file3_name "is validated successfully"
fi
when i run this i get the error as -bash: [: too many arguments
... (1 Reply)
Discussion started by: infyanurag
1 Replies
6. Shell Programming and Scripting
Hello All
Please I have got a file called DATE.tex which consist of
01-04-2008_12:00:00
01-04-2005_12:00:00
01-04-2003_12:00:00
01-04-2007_12:00:00
01-04-2002_12:00:00
01-04-2009_12:00:00
I want to use nawk to print out the dates >=01-04-2009_12:00:00
I tried this
cat plnt.new |... (6 Replies)
Discussion started by: ganiel24
6 Replies
7. Shell Programming and Scripting
Input:
The the
the the
Output:
not-same
same
What would be the sed command to do this? (7 Replies)
Discussion started by: cola
7 Replies
8. UNIX for Dummies Questions & Answers
Hello I'm very new to Linux and shell scripting so I only know basic stuff. I'm making a script with the purpose of finding the longest string or word in a file. Here's what I got so far:
#!/bin/bash
longest=""
for i in $(strings -n $1); do
if ]
then
longest=$i
fi
done
echo $longest... (4 Replies)
Discussion started by: SCB
4 Replies
9. Shell Programming and Scripting
Hi, So I got his code below. $year is a string of 2010,2011 etc.
I guess I want to convert $year to an integer so I can do my if statement to see if the year string is greater than 2010? Or how could I do this?
Right now I get a syntax error doing this.
if; then
do stuff
fi (2 Replies)
Discussion started by: vsekvsek
2 Replies
10. Shell Programming and Scripting
Hi I tried the following string comparison script in Ksh88
#!/bin/ksh
str1='aC'
str2='ABC'
if
then
echo "Equal"
else
echo "Not Equal"
fi
Though str1 and str2 are not equal the script output says Equal .
Please correct me
Thanks (2 Replies)
Discussion started by: smile689
2 Replies
OPENBOX(1) General Commands Manual OPENBOX(1)
NAME
openbox -- A minimalistic, highly configurable, next generation window manager with extensive standards support.
SYNOPSIS
openbox [--help] [--version] [--replace] [--reconfigure] [--restart] [--config-file FILE] [--sm-disable] [--sync] [--debug]
[--debug-focus] [--debug-xinerama]
DESCRIPTION
Openbox is minimalistic, highly configurable, next generation window manager with extensive standards support.
You can start Openbox in three ways:
If you run a display manager such as GDM, you will find 3 entries in the login session type menu for Openbox: GNOME/Openbox, KDE/Openbox
and Openbox. If you want to use Openbox within GNOME or KDE, you can choose the appropriate entry, and it will launch GNOME or KDE with
Openbox as the window manager.
The third option at log in, which is Openbox without a session manager, uses the openbox-session command to start Openbox. On
log in, openbox will run the ~/.config/openbox/autostart.sh script if it exists, and will run the system-wide script /etc/xdg/open-
box/autostart.sh otherwise. You may place anything you want to run automatically in those files, for example:
xsetroot -solid grey &
gnome-settings-daemon &
Make sure that each line is followed by a "&" or else the script will stop there and further commands will not be executed. You can use the
/etc/xdg/openbox/autostart.sh file as an example for creating your own.
The default /etc/xdg/openbox/autostart.sh runs a number of things with Openbox.
Lastly, if you use startx to launch your X session, you can set up a ~/.xinitrc file to run openbox-session and follow the same directions
as above regarding the autostart.sh file.
You can use the obconf tool to configure Openbox easily with a graphical interface, however more in-depth configuration is possible by
editing the configuration files by hand.
The default configuration and menu files are installed in /etc/xdg/openbox/, and the user configuration is placed in ~/.config/openbox/.
You can copy the default configuration and menus to ~/.config/openbox and edit it to your liking.
OPTIONS
These are the possible options that openbox accepts:
--help Show a summary of the options available.
--version Show the version of the program.
--replace Replace the currently running window manager.
--reconfigure
If Openbox is already running on the display, tell it to reload its configuration.
--restart If Openbox is already running on the display, tell it to restart. This is useful if you have upgraded Openbox and don't want to
restart X.
--config-file FILE
Use FILE for configuration instead of looking for rc.xml in the XDG search path. FILE is an absolute path.
--sm-disable
Do not connect to the session manager.
--sync Run in synchronous mode (for debugging).
--debug Display debugging output.
--debug-focus
Display debugging output for focus handling.
--debug-xinerama
Split the display into two fake xinerama regions, if xinerama is not already enabled. This is for debugging xinerama support.
SEE ALSO
obconf (1), openbox-session(1), openbox-gnome-session(1), openbox-kde-session(1).
The program's full documentation is available on the website: http://openbox.org/
Please report bugs to: http://bugzilla.icculus.org/
OPENBOX(1)