hi,
for reading a cobol indexed file i need to convert "mmddyy" date format to "ccyyddd" format.
i checked the datecalc and other scripts but couldnt modify them to cater to my need:(...
The datecalc gives an output which i believe is the total days till that date, but i want to convert it... (2 Replies)
I have a comma delimited log file which has the date as MM/DD/YY in the 2nd column, and HH:MM:SS in the 3rd column.
I need to change the date format to YYYY-MM-DD and merge it with the the time HH:MM:SS. How will I got about this?
Sample input
02/27/09,23:52:31
02/27/09,23:52:52... (3 Replies)
I have a list of dates in the following format: mm/dd/yyyy and want to change these to the MySQL standard format: yyyy-mm-dd.
The dates in the original file may or may not be zero padded, so April is sometimes "04" and other times simply "4".
This is what I use to change the format:
sed -i '' -e... (2 Replies)
I have this T5220 server with Solaris 10 installed on to it. Now when I fire the command "date" the o/p I get is as follows :
bash-3.00# date
Tuesday, February 9, 2010 7:25:24 PM IST
whereas I want the date to appear in this format:
bash-3.00# date
Tue Feb 9 19:26:06 IST 2010
... (3 Replies)
how to login with ssh to remote system with out applying the remote root/user password
with rlogin we can ujse .rhosts file
but with ssh howits possible
plz guide (2 Replies)
I am trying to get the string containing date - in a specfic format actually, although I think that part is inconsequencial - 1110226^1110226^1110226^1110226^1110226 - through echo or printf or in some other way - created within a cront job and passed as a parameter to a perl script.
Now, I know... (3 Replies)
Hi Unix Gurus,
I would like to rename several files in a Unix Directory . The filenames can have more than 1 underscore ( _ ) and the last underscore is always followed by a date in the format mmddyyyy. The Extension of the files can be .txt or .pdf or .xls etc and is case insensitive ie... (1 Reply)
i try to set linux date & time in specific format but it keep giving me error
Example :
date "+%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01"
or
date +"%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01"
keep giving me this error :
date: invalid date ‘19-01-2017 00:05:01'
Please use CODE tags... (7 Replies)
Can someone help me with the code wherein there is a file f1.txt with different column and 34 column have expiry date and I need to get that and compare with system date and if expiry date is <system date remove those rows and other rows should be moved to new file f2.txt .
I don't want to delete... (2 Replies)
I m working on shell scripting and I m stuck where in my .txt file there is column as expiry date and I need to compare that date with system date and need to remove all the rows where expiry date is less than system date and create a new .txt with update. (1 Reply)
Discussion started by: Stuti
1 Replies
LEARN ABOUT HPUX
finger
finger(1) General Commands Manual finger(1)NAME
finger - user information lookup program
SYNOPSIS
[options] user_name ...
DESCRIPTION
By default, lists for each user_name on the system:
o Login name,
o Full given name,
o Terminal write status (if write permission is denied),
o Idle time,
o Login time,
o User's home directory and login shell,
o Any plan the user has placed in file in their home directory,
o Project on which they are working from the file also in the home directory,
o office location and phone number (if known),
o last time the user received the mail, and last time the user read the mail.
Idle time is in minutes if listed as a single integer, hours and minutes if a is present, or days and hours if a is present. Account names
as well as first and last names of users are accepted.
can also be used to list users on a remote machine. The format for user_name is user_name@host. If user_name is not specified, the remote
system (HP-UX or non-HP-UX) uses its default standard format for listing user information.
Options
recognizes the following options:
Suppress printing the user's home directory and shell.
Suppress printing the header that is normally printed
in a short-format printout.
Suppress printing the
file in a long-format printout.
Force ``idle'' output format.
Similar to short format except that only the login name, terminal, login time, and idle time are printed.
Force long output format.
Match arguments only on user name.
Suppress printing of the
files
Force quick output format.
Similar to short format except that only the login name, terminal, and login time are printed.
Print the user's host name.
Force short output format.
Suppress printing the full name in a short-format printout.
WARNINGS
Only the first line of the file is printed.
AUTHOR
was developed by the University of California, Berkeley.
FILES
who file
last login file
for users names, offices, ...
plans
projects
mail directory
SEE ALSO chfn(1), who(1), utmpd(1M).
finger(1)