date printing issue


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting date printing issue
# 1  
Old 04-21-2010
date printing issue

Hello folks

Below command shows current date

echo `date +%Y-%m-%d`

2010-04-21


How to show one day old date, i want see like

2010-04-20
# 2  
Old 04-21-2010
Code:
date +%Y-%m-%d --date="1 day ago"

Any specific reason why you are using echo and back tick `
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Printing issue with AIX 7.2

Hello group. I recently upgraded my company's server from an IBM P520 w/AIX 5.1 to a new Power 8 w/AIX 7.2. The old server used serial printing and we turned off the print queing feature. We did this because we have many custom forms and did not want a que/spooling situation where a print job... (1 Reply)
Discussion started by: Len Davis
1 Replies

2. Solaris

Solaris Printing Issue

Message from lp on sunnyD (???) ... Subject: Problem with printer (name) The printer (name) has stopped printing for the reason given below. Fix the problem and bring the printer back on line to resume printing. The reason(s) it stopped (multiple reasons indicate repeated attempts): ... (2 Replies)
Discussion started by: sydalackk
2 Replies

3. Solaris

Network Printing issue

I have network printer registerd in solaris environment. When I issue print, it prints banner page. The issue printer is registerd in Print server which is running on Linux environment. So when I issue print in Print server, it doesn't print banner page as banner settings are made to turn off It... (6 Replies)
Discussion started by: Sunil Koya
6 Replies

4. UNIX for Advanced & Expert Users

Unix Printing issue

I am currently struggling with attempting to print text files on a SCO 5.0.7 server to a network printer. The printer is an Hp LJ P2015dn There is an existing printer set up, and when I do a: lp -d myprinter /etc/hosts the first line of the hosts file is all that prints. I even attempted... (5 Replies)
Discussion started by: asamon
5 Replies

5. Solaris

Printing Issue On Solaris 10

Synopsis: Solaris 10 SunFire v880 with two networked HP laser printers set up through HPPI. Test page will print through HPPI but can't print to them us the lp command. When using the lp command it just hangs and causes the Samba process to fail. We have a SunFire v880 running Solaris 10. $$... (1 Reply)
Discussion started by: KenLynch
1 Replies

6. SCO

Local Printing Issue in SCO Unix OS 5.0.5

Folks, Have a SCO OpenServer 5.0.5 legacy box on site that has run our legacy ERP system for about 15 years now. Primarily uses an Okidata 321 ML Turbo line printer (defined as 'printer') attached to the system's parrel port at /dev/lp0. System primarily operates as a terminal server with... (2 Replies)
Discussion started by: SystemsAdminAS
2 Replies

7. Shell Programming and Scripting

line feed printing issue

I am have an issue with the carrige or line feed chars showing up on info converted to a pdf file from a Orcale tool. Any direction would be appericated. ex. John doe 12435 1 232344 1 Jane doe 12435 1 424343 1 when should be like this John doe... (1 Reply)
Discussion started by: sherrod6970
1 Replies

8. UNIX for Advanced & Expert Users

date issue-find prevoius date in a patricular format

Hi , I have written a shell script that takes the current date on the server and stores it in a file. echo get /usr/home/data-`date '+%Y%d'`.xml> /usr/local/sandeep/GetFILE.ini I call this GetFILE.ini file from an sftp program to fetch a file from /usr/home/ as location. The file is in... (3 Replies)
Discussion started by: bsandeep_80
3 Replies

9. Solaris

Printing multiple problem issue

Hi, unable to stop hp 4000series (4250N) printer from printing multiple copies when a single print request is made using simple "lp" command from Solaris OS 2.8. Any idea or solution are all welcome. Thank you. Cheers Dunstan (4 Replies)
Discussion started by: simka
4 Replies

10. UNIX for Dummies Questions & Answers

Printing Issue

I have a printing issue I need some help with. I have a printer that will advance a sheet of paper prior to printing a print job. This is not a banner page, it's just a blank page. The O/S is AIX. I know that in SCO and Other Unix's there are printer interface files that more or less tell the... (1 Reply)
Discussion started by: Docboyeee
1 Replies
Login or Register to Ask a Question