if it helps .. file is received hourly.. in the meantime, I'm countering "syntax error at line 14: `fi' unexpected" -- I must be doing something wrong..
Hi,
I have some files in a folder with different time stamps and
I want to display the files which are older than 1 hour.
i tried with find.
need urgent help. (3 Replies)
Hi,
I have some files in a folder with different time stamps and
I want to display the files which are older than 1 hour.
i tried with find.
need urgent help. (7 Replies)
Hello People,
How can I display the date in a continuous format along with the time as below :
20091001_154547
i.e yyyymmdd_hhmmss format.
Thanks. (3 Replies)
I have tried various arguments to get the date display as "Mar 10".
I have tried
date +"%c" -------> Wed Mar 10 11:51:21 EST 2010
date +"%b%d%Y_%H%M%S" --------> Mar102010_115121
date +"%b%d" -------> Mar10
date +"%t%b%e" ... (3 Replies)
Currently whenever i run date command output is shown like
Mon Apr 12 05:17:21 IST 2010
When its 17:17 Here.
How would i change it so that it should show.
Mon Apr 12 17:17:21 IST 2010 (8 Replies)
Hi,
My file
cat a.txt
Sat Nov 27 00:02:00 2010
00:02:00 Usr 27: Login by edi on batch. (452)
00:02:09 Usr 27: Logout by on batch. (453)
00:02:09 Usr 27: Login by edi on batch. (452)
00:02:22 Usr 27: Logout by on batch. (453)
00:02:22 Usr 27: Login by edi on batch.... (3 Replies)
Hi friends, I want to convert 24 hour timing to 12 hour please help me...
my data file looks like this..
13-Nov-2011 13:27:36 15.32044 72.68502
13-Nov-2011 12:08:31 15.31291 72.69807
16-Nov-2011 01:16:54 15.30844 72.74028
15-Nov-2011 20:09:25 15.35096 ... (13 Replies)
I have a file , the file content will be modified regularly , its structure as below, the lines are begins with "A" and "B" .
#vi file1
this is testing file
A aaaaa
B bbbbb
A ccccc
B ddddd
A eeeee
B fffff
A ggggg
B hhhhh
I would like to have a script to use the... (3 Replies)
Discussion started by: ust3
3 Replies
LEARN ABOUT OSF1
tty
tty(1) General Commands Manual tty(1)NAME
tty - Returns pathname of terminal device
SYNOPSIS
tty [-s]
The tty command writes the full pathname of your terminal device to standard output. The tty command may also be used to determine if
standard input is a terminal.
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
tty: XCU5.0
Refer to the standards(5) reference page for more information about industry standards and associated tags.
OPTIONS
Suppresses reporting the pathname.
The XCU specification states that -s option is obsolete and recommends the portable applications use test -t 0 instead of tty -s.
OPERANDS
None
DESCRIPTION
The command tty -s evaluates as TRUE if standard input is a display and FALSE if it is not.
[Tru64 UNIX] The file /dev/tty is a special file always refers to your controlling terminal, although it also may have another name like
/dev/console or /dev/tty2. To avoid writing undesirable output to an output file--for example, to write a prompt in a shell script to the
screen, while writing the response to the prompt to an output file--redirect standard output to /dev/tty.
NOTES
While the -s option is useful if only the exit code is wanted, it does not rely on any ability to form a valid pathname. For a portable
application you should use the command test -t 0.
EXIT STATUS
The following exit values are returned: Successful completion. Standard input is not a display. [Tru64 UNIX] Invalid options specified.
[Tru64 UNIX] An error occurred.
DIAGNOSTICS
[Tru64 UNIX] Your standard input is not a display and you did not specify the -s option.
EXAMPLES
To display full pathname of your terminal device, enter: tty To test whether or not the standard input is a terminal device, create a shell
script containing the following: if tty -s then echo 'Output is a display' else echo 'Output is not a display' fi
If the standard input is a terminal device, this displays the Output is a display message. If the standard input is not a terminal
device, it displays the Output is not a display message.
ENVIRONMENT VARIABLES
The following environment variables affect the execution of tty: Provides a default value for the internationalization variables that are
unset or null. If LANG is unset or null, the corresponding value from the default locale is used. If any of the internationalization vari-
ables contain an invalid setting, the utility behaves as if none of the variables had been defined. If set to a non-empty string value,
overrides the values of all the other internationalization variables. Determines the locale for the interpretation of sequences of bytes
of text data as characters (for example, single-byte as opposed to multibyte characters in arguments). Determines the locale for the for-
mat and contents of diagnostic messages written to standard error. Determines the location of message catalogues for the processing of
LC_MESSAGES.
FILES
Pseudodevice representing the user's controlling terminal.
SEE ALSO
Commands: stty(1), test(1)
Routines: ttyname(3)
Files: tty(7)
Standards: standards(5)tty(1)