AD

LINUX day before the date of acquisition methods

**ceoli.blog.hexun**/28085191_d.html

The day before the date of acquisition method ..
Write SHELL, sometimes very useful ..

linux next day before the date <br />
date-d "1 day ago" + "% y% m% d"

The date of the previous month
date-d "1 month ago" + "% y% m% d"

There are similar
date-d "-1 day ago 1 month ago" + "% y% m% d"
date-d "1 day ago -1 year ago 1 month ago" + "% y% m% d"

freebsd next day before the date <br />
date-v-1d + "% y% m% d"

The date of the previous month
date-v-md + "% y% m% d"

There are similar
date-v-1d-v-1m + "% y% m% d"
date-v-1d-v-1m-v-1y + "% y% m% d"
标签: lt, quot quot, blog, br, linux, shell, 1m, 1d, acquisition method, acquisition methods, 1y
分类: OS
时间: 2010-06-24

相关文章

  1. Linux to get the date and time methods

    linux using shell access to yesterday, tomorrow or day before the date: In Linux on the man date-d argument th ...
  2. Linux kernel version of the three view methods

    Transfer from my ChinaUnix this blog: http://blog.chinaunix.net/u3/107162/showart_2188981.html 2010-03-02 Linu ...
  3. linux命令详解date使用方法(计算母亲节和父亲节日期脚本示例)

    date命令可以用来显示和修改系统日期时间,本文对其做了详细说明,最近提供计算指定年份的母亲节和父亲节的日期脚本示例,大家参考使用吧 常用参数 格式:date 显示当前日期时间. 格式:date mmddHHMM # 简 ...
  4. Expiration Date of alternative methods of

    SimpleDateFormat formatter = new SimpleDateFormat ( "yyyy-MM-dd"); Date date = new Date (); int h = ...
  5. ASP.NET method according to the date of acquisition constellation!

    2009-08-31 /// <summary> Returns the constellation /// /// </summary> /// <param name="dat ...
  6. ruby in the interval between the date of acquisition

    Reference blog (Ruby in the processing time and date): http://zarknight.javaeye.com/blog/126411 Requirements: ...
  7. Linux environment variable to set the three methods

    [Reserved] 1.Linux types of variables By a variable life cycle division, Linux variables can be divided into t ...
  8. Ubuntu linux panel network icon disappears -> icon located Methods

    Phenomenon: the Network icon on the desktop panel, that the up and down arrow icons that suddenly disappeared ...
  9. Linux tomcat out of memory in solving methods

    In catalina.sh add: # Bugzilla 37848: only output this if we have a TTY if [$ have_tty-eq 1]; then echo " ...
  10. 玩转 SHELL 脚本之:linux date 知多少?

    最近好久没 update 了,一来是近期有点烦人的私事需要处理,二来是工作有点忙,业余时间还要整个 PPT,搜集素材啥的,非常耗时间...好吧,这都是借口,其实是人变懒了...⊙﹏⊙ 不过我发现最近 1 个月以来,我关注 ...
  11. 20 commonly used tools for Linux

    To monitor the operational status of the server? Try some built-in command-line tool with a small amount of ex ...
  12. Linux system administrators should be aware of system monitoring tools 20

    http://hi.baidu.com/imlidapeng/blog/item/76cc8b15bf38265af2de32cc.html Original: http://www.cyberciti.biz/tips ...
  13. linux crontab command Detailed

    This article describes the under linux cron (task scheduler) is commonly used methods. linux crontab format Ba ...
  14. The known under Linux system monitoring tools 20

    Need to monitor Linux server system performance? These systems are built or try the following tool bar attachm ...
  15. java date in dealing with class summary

    java date in dealing with class sum up: Date / Calendar / GregorianCalendar / DateFormat / SimpleDateFormat cl ...
  16. Linux, jdk installation

    Some time ago that he installed a virtual machine, playing a handful of Ubuntu, then, to throw to one side. No ...
  17. Linux Memory Monitor

    Reprinted from: http://4ujava.javaeye.com/blog/548113 Linux Memory Monitor Articles Category: Operating system ...
  18. Java, date / time classes, Date.DateFormat.Calendar class

    Specific class (and abstract classes relative) java.util.Date Java.text.DateFormat abstract class and its subc ...
  19. oracle of the date usage (transfer)

    oracle of the date ORACLE date type field in the treatment of --ORACLE/JSP Technology involves the date, time ...