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
line(1) General Commands Manual line(1)NAME
line - Reads one line from standard input
SYNOPSIS
line
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
line: XCU5.0
Refer to the standards(5) reference page for more information about industry standards and associated tags.
OPTIONS
None
DESCRIPTION
The line command copies one line, up to and including a newline, from standard input and writes it to standard output. Use this command
within a shell command file to read from your terminal. The line command always writes at least a newline character.
NOTES
The line utility has no internationalization features and is marked LEGACY in XCU Issue 5. Use the read utility instead.
EXIT STATUS
Success. End-of-File.
EXAMPLES
To read a line from the keyboard and append it to a file, enter: echo 'Enter comments for the log:' echo ': c' line >>log
This shell procedure displays the message: Enter comments for the log:
It then reads a line of text from the keyboard and adds it to the end of the file log. The echo ': c' command displays a : (colon)
prompt. See the echo command for information about the c escape sequence.
SEE ALSO
Commands: echo(1), ksh(1), read(1), Bourne shell sh(1b), POSIX shell sh(1p)
Functions: read(2)
Standards: standards(5)line(1)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)