04-08-2011
Tricky, using the time stamp in hours! However, the problem is you used the Solaris date, not the GNU/LINUX date. You can get trusted Solaris binaries or source and configure/make your own GNU utilities. Solaris may even have them on their CDs now, since I saw them a lot. You may have them in /usr/local/bin or some such place not high enough on your $PATH.
ksh93 and bash have date operations built-in.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a date input in MMDDYYYY format..
I have to give the day (whether that DD is sunday/monday...)
Is there any command for it...
Or do I have to write a script for that...
Thanks in Advance
Yeheya (1 Reply)
Discussion started by: yeheyaansari
1 Replies
2. UNIX for Dummies Questions & Answers
Hi, I have been trying just about every unix command to come up with yesterday's date (today's date - 1). I have seen all of the help on this forum, and none of it seems to work for me here. We are using Sun Solaris 9 Unix. I am using this script to create a .txt file with ftp commands that I will... (2 Replies)
Discussion started by: sfedak
2 Replies
3. Shell Programming and Scripting
Hi,
does anybody know how to format `date` command correctly to return the day of the week? Thanks -A
I work in ksh.... (1 Reply)
Discussion started by: aoussenko
1 Replies
4. Shell Programming and Scripting
Hi guys,
I had a scenario...
1. I had to get the previous days date in yyyymmdd format
2. i had to create a file with Date inthe format yyyymmdd.txt format
both are different
thanks guys in advance.. (4 Replies)
Discussion started by: apple2685
4 Replies
5. Shell Programming and Scripting
Dear all,
I have 2 questions.
I have a file with many rows which has date of the format YYYYMMDD.
1. I need to change the date to that weeks friday date(Ex: 20120716(monday) to 20120720). Satuday/Sunday has to be changed to next week friday date too.
2. After converting the date to... (10 Replies)
Discussion started by: 2001.arun
10 Replies
6. Shell Programming and Scripting
Hi All,
I have a file in the following format.I need to pick up 25th field which is a date and convert it into a day and add it as a field in the file.
"AAGENAS,PEARL... (3 Replies)
Discussion started by: nua7
3 Replies
7. AIX
I need to get the next day's date of the user entered date
for example:
Enter date (yyyy/mm/yy):
2013/10/08I need to get the next day's date of the user entered date
Desired Output:
2013/10/09Though there are ways to achieve this is Linux or Unix environment (date command) ,I need to... (1 Reply)
Discussion started by: rpm120
1 Replies
8. Shell Programming and Scripting
Hi Team,
We have a requirement as follows.
If a date 20141220 as parameter to the script, then the script has to return the output as 20141219.
i.e given date - 1.
The requirement is simple. But it should satisfy leap year, the months having 31 and 30 days, the date in which day light... (9 Replies)
Discussion started by: kmanivan82
9 Replies
9. Shell Programming and Scripting
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)
Discussion started by: umen
7 Replies
10. UNIX for Beginners Questions & Answers
I Have text like
XXX_20190908.csv.gz need to replace Only date in this format with current date every day
Thanks! (1 Reply)
Discussion started by: yamasani1991
1 Replies
LEARN ABOUT OPENSOLARIS
grub
grub(5) Standards, Environments, and Macros grub(5)
NAME
grub - GRand Unified Bootloader software on Solaris
DESCRIPTION
The current release of the Solaris operating system is shipped with the GRUB (GRand Unified Bootloader) software. GRUB is developed and
supported by the Free Software Foundation.
The overview for the GRUB Manual, accessible at www.gnu.org, describes GRUB:
Briefly, a boot loader is the first software program that runs when a computer starts. It is responsible for loading and transferring con-
trol to an operating system kernel software (such as Linux or GNU Mach). The kernel, in turn, initializes the rest of the operating system
(for example, a GNU [Ed. note: or Solaris] system).
GNU GRUB is a very powerful boot loader that can load a wide variety of free, as well as proprietary, operating systems, by means of chain-
loading. GRUB is designed to address the complexity of booting a personal computer; both the program and this manual are tightly bound to
that computer platform, although porting to other platforms may be addressed in the future. [Ed. note: Sun has ported GRUB to the Solaris
operating system.]
One of the important features in GRUB is flexibility; GRUB understands filesystems and kernel executable formats, so you can load an arbi-
trary operating system the way you like, without recording the physical position of your kernel on the disk. Thus you can load the kernel
just by specifying its file name and the drive and partition where the kernel resides.
Among Solaris machines, GRUB is supported on x86 platforms. The GRUB software that is shipped with Solaris adds two utilities not present
in the open-source distribution:
bootadm(1M) Enables you to manage the boot archive and make changes to the GRUB menu.
installgrub(1M) Loads the boot program from disk.
Both of these utilities are described in Solaris man pages.
Beyond these two Solaris-specific utilities, the GRUB software is described in the GRUB manual, a PDF version of which is available from
the Sun web site. Available in the same location is the grub(8) open-source man page. This man page describes the GRUB shell.
SEE ALSO
boot(1M), bootadm(1M), installgrub(1M)
Solaris Express Installation Guide: Basic Installations
System Administration Guide: Basic Administration
http://www.gnu.org/software/grub
SunOS 5.11 21 Apr 2005 grub(5)