Sponsored Content
Top Forums Shell Programming and Scripting How to check weather a string is like test* or test* ot *test* in if condition Post 302396116 by jlliagre on Wednesday 17th of February 2010 07:34:10 PM
Old 02-17-2010
"if" isn't the best choice for that, I would use "case/esac" for the same. By the way, you mean "whether", not "weather".
 

7 More Discussions You Might Find Interesting

1. Linux

In unix how we can test or check race condition in c program by using multi threads

In unix how we can test or check race condition in any c program by using multi thread programming (1 Reply)
Discussion started by: afroze
1 Replies

2. UNIX for Dummies Questions & Answers

In unix how we can test or check race condition in a c program by using multi threads

In unix how we can test or check race condition in any c program by using multi thread programming (1 Reply)
Discussion started by: afroze
1 Replies

3. Programming

In unix how we can test or check race condition in c program by using multi threads

In unix how we can test or check race condition in any c program by using multi thread programming (5 Replies)
Discussion started by: afroze
5 Replies

4. Programming

In unix how we can test or check race condition in a c program by using multi threads

In unix how we can test or check race condition in any c program by using multi thread programming (1 Reply)
Discussion started by: afroze
1 Replies

5. Shell Programming and Scripting

Test on string containing spacewhile test 1 -eq 1 do read a $a if test $a = quitC then break fi d

This is the code: while test 1 -eq 1 do read a $a if test $a = stop then break fi done I read a command on every loop an execute it. I check if the string equals the word stop to end the loop,but it say that I gave too many arguments to test. For example echo hello. Now the... (1 Reply)
Discussion started by: Max89
1 Replies

6. Shell Programming and Scripting

Shell script that check the argument passed to it and prints error if test condition is not met

I want to make a script that check for the argument passed to it and generates an error in case any character/string argument passed to it. I am using below code, but its not working. can anyone help. #!/bin/bash if ]; then echo 'An integer argument is passed to the script hence... (3 Replies)
Discussion started by: mukulverma2408
3 Replies

7. UNIX for Dummies Questions & Answers

Bash condition test at the end of string

I want to check (using bash condition test function) if string contains three spaces, ignoring last three spaces at the end of string. string_to_report='foo bar foo bar ' string_to_ignore='foo bar ' (8 Replies)
Discussion started by: useretail
8 Replies
AWEATHER(1)															       AWEATHER(1)

NAME
aweather - Advanced weather reporting program SYNOPSIS
aweather [-hoaf] [-d level] [-s site] [-t time] DESCRIPTION
AWeather is a advanced weather reporting program which is designed to be used by weather enthusiasts. AWeather is not another weather dockapp that simply displays a pre-computed forecast. It is designed to be an easy to use program that integrates a variety of weather data in simple unified interface; see features for more details. OPTIONS
-h, --help Show usage. -d, --debug=level Change default log level*, a debug level ranges from 0 to 5. A debug level of 5 is recommended only for debugging purposes. -s, --site=site Set initial site. The site should be given as a WSR88D site code such as KLSX. -t, --time=time Set initial time. The time format should be provided in the YYYY-MM-DD HH:MM format. -o, --offline Run in offline mode, AWeather will not attempt to connect to the internet to download radar files but will show the closest matching cached file. -a, --autoupdate Run in autoupdate mode, AWeather will periodically poll data servers for updated information. -f, --fullscreen Run in fullscreen mode, AWeather start up using the entire screen as he main display area. Toolbars and side panels are hidden by default and can be accessed by moving the mouse to the edge of the screen. KEY BINDINGS
h, j, k, l, Left, Down, Up, Right Pan the surface of the earth left, down, up, or right. i, o, +, -, Scroll up, Scroll down Zoom towards or away from the surface of the earth. J, K Zoom Rotate the camera back or forward. If looking across the surface of the earth, J will point the camera towards ground while K will point the camera towards the sky. H, L Rotate the counter clockwise or clockwise around the vertical axes. If looking across the surface of the earth, H will pan to the left while L will pan to the right. w Draw a wire frame of the earth for debugging purposes. q Exit AWeather. Tab Cycle through available plugins. CTRL-R Refresh all map data. MOUSE MOTION
Left-click and drag Pan the surface of the earth. Middle-click and drag Zoom towards (up) or away (down) from the surface of the earth. Right-click and drag Rotate the camera around the vertical and horizontal axes. EXAMPLES
Start AWeather in offline mode and center the map on the St. Louis radar. $ aweather -s KLSX -o SEE ALSO
grits-demo(1) BUGS
Many AUTHOR
Andy Spencer <andy753421@gmail.com> Author. 02/09/2012 AWEATHER(1)
All times are GMT -4. The time now is 10:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy