Sponsored Content
Full Discussion: can I use this coding
Top Forums UNIX for Advanced & Expert Users can I use this coding Post 48133 by oombera on Friday 27th of February 2004 07:11:48 AM
Old 02-27-2004
Re: can I use this coding

I'd use double brackets:
Code:
if [[ "${CURR_STATUS}" || "${CURR_STATUSTEST}" != "${NEW_STATUS}" ]]

Besides that, it should work, but I'm not sure what you intend it to do. Basically, the statement will be true if either:

1) CURR_STATUS is anything (other than null), or
2) CURR_STATUSTEST and NEW_STATUS do not match
 

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Coding on my Mac

I would like to start coding on my mac, but I'm getting an error when I attempt to execute my script -bash : testscript: command not found I have verified that the #! line points to the correct directory. If you have some insight it would be greatly appreciated! - D (1 Reply)
Discussion started by: DKNUCKLES
1 Replies

2. UNIX for Dummies Questions & Answers

pro*c coding

Hi All, I am new to pro*C. I have a select statement as select a.ename,a.sal,a.empno from emp where &n=(select count(distinct(b.sal)) from emp b where a.sal<=b.sal for this query I have to write a pro*C program. So can you please send me the complete code. Then I will foloow the same... (1 Reply)
Discussion started by: user71408
1 Replies

3. AIX

need help for coding this logic

contact me on <email address deleted> or <email address deleted> (1 Reply)
Discussion started by: suprithhr
1 Replies

4. Shell Programming and Scripting

Need help with coding

HI, Can some one guide me how to make changes to the script below so that it can load the history of a program to IT server ? Format of data: YYYYMMDD065959.dsk.log YYYYMMDD235959.dsk.log currently both are loaded together. Need to separate them as above format. Thanks in advance. ... (1 Reply)
Discussion started by: crazydude80
1 Replies

5. Windows & DOS: Issues & Discussions

Need help with coding

HI, Can some one guide me how to make changes to the script below so that it can load the history of a program to IT server ? Format of data: YYYYMMDD065959.dsk.log YYYYMMDD235959.dsk.log currently both are loaded together. Need to separate them as above format. Thanks in advance. ... (2 Replies)
Discussion started by: crazydude80
2 Replies

6. Shell Programming and Scripting

HTTP coding

My company has an in house instant messaging system (like WhatsApp) where users can communicate with each other. I currently have code to email me certain items from my Sparc machine running SunOS 5.10. I want what I am emailing myself to now instant message me. The team that created the messenger... (5 Replies)
Discussion started by: shorty
5 Replies
NEWBIEDOC(1)						      General Commands Manual						      NEWBIEDOC(1)

NAME
newbiedoc - Debian documentation for newbies by newbies. SYNOPSIS
newbiedoc newbiedoc file DESCRIPTION
This manual page documents briefly the newbiedoc command. The program newbiedoc is a small script that starts your favorite browser and displays the index page of the NewbieDOC documentation package. Optionally, you can specify the name of a specific file to open in the browser. newbiedoc can also be run directly from the Debian menu in the X Window System: Debian -> Help -> NewbieDOC. NewbieDOC documentation is in the form of HTML files which form a snapshot of the documentation currently being developed by the Debian NewbieDOC project. Visit the wiki at http://newbiedoc.berlios.de for the most recent versions, or if you wish to contribute to the project. The wiki is very easy to use. All Debian users are encouraged to author, edit or add comments to the articles. Each NewbieDOC item is either explicitly licensed by its author, or licensed globally under the GNU Free Documentation License. SEE ALSO
The NewbieDOC wiki is at http://newbiedoc.berlios.de AUTHOR
The upstream source for newbiedoc was written by Chris Lale <chrislale@untrammelled.co.uk>. This manual page was written by Chris Lale <chrislale@untrammelled.co.uk>, for the Debian project (but may be used by others). 27th September 2009 NEWBIEDOC(1)
All times are GMT -4. The time now is 06:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy