Sponsored Content
Full Discussion: grep tomorrow's date
Top Forums Shell Programming and Scripting grep tomorrow's date Post 302275123 by ssachins on Friday 9th of January 2009 10:23:18 AM
Old 01-09-2009
Thanks for your quick reply

I am gettting the output as

Fri Jan 10 10:16:39 -- 10th Jan is SAT

but i need

10 Jan 2009 format.
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Have an interview tomorrow just wondering one thing...

Hi, just a quick question here. I have an interview coming up tomorrow. The job is for a UNIX System Admin. I have a degree in Computer Networking and am familiar with Solaris, but was wondering what should I brush up on before going in to this interview (like any online reference)? Thank you... (2 Replies)
Discussion started by: NELS
2 Replies

2. UNIX for Dummies Questions & Answers

Date change to tomorrow

I have this code in a script that says it is calculating current date: cur_date=`date -u +%m/%d/%Y` If the script is run today during the day, it returns 12/11/2008 If the script is run today during the night, it returns 12/12/2008 Why does it return tomorrow's date if it was run at... (2 Replies)
Discussion started by: mkoay
2 Replies

3. UNIX for Dummies Questions & Answers

hey guys i need our help for my assignment to be passed tomorrow.

good day to all. im just a new member. since im a newbie in UNIX, im having trouble learning. problem #1 problem # 2 thank you guys. take good care! (1 Reply)
Discussion started by: skypigeon
1 Replies

4. Homework & Coursework Questions

hey guys i need our help to be passed tomorrow.

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: log in time and about the recyclebin 2. Relevant commands, code, scripts, algorithms: im not sure what to... (2 Replies)
Discussion started by: skypigeon
2 Replies

5. Shell Programming and Scripting

Calculating expiry date using date,sed,grep

Hi, I would greatly appreciate it if someone can help me with my problem. I have a crawler which collects spam URLs everyday & this data needs to be published in a blacklist. Here's the catch: The "Time To Live" (TTL) for each URL is 3 months (or whatever for that matter). If i see the... (5 Replies)
Discussion started by: r4v3n
5 Replies

6. Shell Programming and Scripting

How to get tomorrow,yesterday date from date Command

Hi I want to get tomorrow and yesterday date from date command. My shell is KSH and server is AIX. I tried several options, but unable to do. Please help on this. Regards Rajesh (5 Replies)
Discussion started by: rajeshmepco
5 Replies

7. UNIX for Dummies Questions & Answers

Rebuilding computer tomorrow at work

I'm rebuilding my primary computer at work tomorrow. Currently, it has Windows 7. I would like to replace the main system with either Linux or Unix, although I would like to be able to run a fully operational Windows as a VM within that. Any recommendations on which Linux or Unix to go with? I'm... (6 Replies)
Discussion started by: Sean_
6 Replies
DP(8)								     [nmh-1.5]								     DP(8)

NAME
dp - parse dates 822-style SYNOPSIS
/usr/lib/mh/dp [-form formatfile] [-format string] [-width columns] [-version] [-help] dates ... DESCRIPTION
Dp is a program that parses dates according to the ARPA Internet standard. It also understands many non-standard formats, such as those produced by TOPS-20 sites and some UNIX sites using ctime(3). It is useful for seeing how nmh will interpret a date. The dp program treats each argument as a single date, and prints the date out in the official 822-format. Hence, it is usually best to enclose each argument in quotes for the shell. To override the output format used by dp, the -format string or -format file switches are used. This permits individual fields of the address to be extracted with ease. The string is simply a format string and the file is simply a format file. See mh-format(5) for the details. Here is the default format string used by dp: %<(nodate{text})error: %{text}%|%(putstr(pretty{text}))%> which says that if an error was detected, print the error, a `:', and the date in error. Otherwise, output the 822-proper format of the date. FILES
$HOME/.mh_profile The user profile PROFILE COMPONENTS
None SEE ALSO
ap(8), Standard for the Format of ARPA Internet Text Messages (RFC-822) DEFAULTS
`-format' default as described above `-width' default to the width of the terminal CONTEXT
None BUGS
The argument to the -format switch must be interpreted as a single token by the shell that invokes dp. Therefore, one must usually place the argument to this switch inside quotes. MH.6.8 11 June 2012 DP(8)
All times are GMT -4. The time now is 07:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy