Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

false(1) [osf1 man page]

true(1) 						      General Commands Manual							   true(1)

NAME
true, false - Returns a standard exit value SYNOPSIS
true false STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: true: XCU5.0 false: XCU5.0 Refer to the standards(5) reference page for more information about industry standards and associated tags. DESCRIPTION
The true command returns a 0 (zero) exit value. The false command returns a nonzero exit value. These commands are usually used in input to shell commands. NOTES
The special built-in utility : (colon) is sometimes more efficient than the true command. EXIT STATUS
[Tru64 UNIX] The nonzero value returned by the false command may vary from system to system. EXAMPLES
To construct a loop in a shell procedure, enter: while true do date sleep 60 done This procedure displays the date and time once a minute. To stop it, press the Interrupt key sequence. SEE ALSO
Commands: csh(1), ksh(1), Bourne Shell sh(1b), POSIX shell sh(1p) Standards: standards(5) true(1)

Check Out this Related Man Page

true(1) 						      General Commands Manual							   true(1)

NAME
true, false - Returns a standard exit value SYNOPSIS
true false STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: true: XCU5.0 false: XCU5.0 Refer to the standards(5) reference page for more information about industry standards and associated tags. DESCRIPTION
The true command returns a 0 (zero) exit value. The false command returns a nonzero exit value. These commands are usually used in input to shell commands. NOTES
The special built-in utility : (colon) is sometimes more efficient than the true command. EXIT STATUS
[Tru64 UNIX] The nonzero value returned by the false command may vary from system to system. EXAMPLES
To construct a loop in a shell procedure, enter: while true do date sleep 60 done This procedure displays the date and time once a minute. To stop it, press the Interrupt key sequence. SEE ALSO
Commands: csh(1), ksh(1), Bourne Shell sh(1b), POSIX shell sh(1p) Standards: standards(5) true(1)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Add lines into file

Hi, i have a file like: 00:00 8 00:01 2 00:04 5 00:07 10 . . . and i need to add the other minutes with value 0 and have a file like: 00:00 8 00:01 2 00:02 0 00:03 0 00:04 5 00:05 0 00:06 ... (13 Replies)
Discussion started by: Lestat
13 Replies

2. Shell Programming and Scripting

Replacing in SED

I want to change the false in Node 1 to true. How do I do that? <Node1> <Usage>false</Usage> <Url>ABC</Url> </Node1> <Node2> <Usage>false</Usage> <Url>DEF<Url> </Node2> (8 Replies)
Discussion started by: superprogrammer
8 Replies

3. Shell Programming and Scripting

Bourne Shell: Clean Display of stored procedure's output

Environment: Sun UNIX Language: Bourne Shell I have the following script and it works fine. Unfortunately, from user's perspective, it looks very messy because the user is able to see the output of the process caused by the print command. Is there a better way to overcome it? Here's the... (10 Replies)
Discussion started by: totziens
10 Replies

4. Shell Programming and Scripting

global date for many scripts in shell

Hi, I am using shell (#!/bin/bash), i am trying to set my date in a script date.sh, i want this dates to be used by another scripts. I have tried to make: #!/bin/bash begin_date =`date +%Y_%m_%d_%H_%M_%S`, i also tried: #!/bin/bash begin_date =20080709 12:14:11, then i write in... (11 Replies)
Discussion started by: rosalinda
11 Replies

5. Shell Programming and Scripting

Date Format Does not work in Shell

I'm am able to format the date in the unix prompt using NOW=$(date +"%d%m%y"). However, when i put the same format into a shell script, it errors out with the followign. sintax error on line 4: `NOW=$' unexpected. #!/bin/ksh EXP_LOC=/u02/oradata/exports NOW=$(date +"%d%m%y") ... (8 Replies)
Discussion started by: mrx1350
8 Replies

6. Shell Programming and Scripting

How to see the list of files which exists with nonzero bytes

Hi, I would like to see the file list which contains the data. Ex : - When I enter the "ls -ltr" command it will show all the files which are exists in the directory, But I want only those files list which are non zero byte by using only ls command. I knew that I can write a script with... (12 Replies)
Discussion started by: kandi.reddy
12 Replies

7. Shell Programming and Scripting

Shell Scripting

shell scripting From the given input file i want the output (shown below) which is the values of statements starting with Haripin loop and Muti-loop in each structure with its dG no. In input file they are shown in bold case. (original input file is a big one consists of n structures with n... (14 Replies)
Discussion started by: kswapnadevi
14 Replies

8. Shell Programming and Scripting

Call another file to run

Hi, I have small script such as below #!/bin/ksh while true do set 'date' ((profit = 0 )) export profit echo "\n 1) Setup new POS 2) Clear POS 3) Re-set up POS 16) Exit Enter your selection : \c" (12 Replies)
Discussion started by: phillipss
12 Replies

9. UNIX for Dummies Questions & Answers

Simplest way to format with If on stout?

So I'm trying to figure out a way to do some very simple formatting on standard output. I have a command that I will run (many many times) the output will either be true or false. So all i really want is to run the command and if its true write true in green and if its false to write false in red.... (10 Replies)
Discussion started by: MrEddy
10 Replies

10. Shell Programming and Scripting

Processing values from Oracle procedure

Hi all, My oracle procedure returns more than one value. i need to get one value at a time upto ending value ina shell script. Please help me..... (9 Replies)
Discussion started by: pmreddy
9 Replies

11. Shell Programming and Scripting

Run script every minute and terminate after specified number of executions

when it runs and look at my acron.log file it generates an error as below /tmp/prog.sh: line 4: (12 Replies)
Discussion started by: azherkn3
12 Replies

12. Shell Programming and Scripting

To skip operations in UNIX shell

hi i am having a acript for which i need to skip the execution of some lines and to continue with remaining lines for eg script.sh rm text for i in * do . . . . . if then rm i want to skip the execution of the lines and to start with (11 Replies)
Discussion started by: rohit_shinez
11 Replies

13. Shell Programming and Scripting

How to pass date to SQL server SP?

HI, I am calling a stored procedure to archieve records from the DB based on a date condition. The syntax for the same is as below: shell script - xyz.sh sqlcmd -s<servername> -U <username> -p<password> -I <embedded SQL input file> The contents of the Embedded SQL INput file are... (10 Replies)
Discussion started by: Rahul Raj
10 Replies

14. Shell Programming and Scripting

Turning my lists into useable copy commands

Hello everyone! I currently work in the motion picture industry and we constantly receive lists of missing media from our sound department. I use a series of commands in TextWrangler in order to remake the lists into useable copy commands to automate the whole process but if I could make this work... (9 Replies)
Discussion started by: grep_me_please
9 Replies

15. Shell Programming and Scripting

Date Compare tool

Hello Guys, Just joined today with a simple task i guess. I need to write a shell script which takes input from users which is a date and should be able to compare the date differences between the dates keeping in mind the leap year and all. Kindly Guide :) :D (9 Replies)
Discussion started by: barryallen
9 Replies