hi,
i have a simple question
in linux:
date '+%s' -r filename--------> gives the file age in seconds
i want the option to be used with date command in AIX ?? (1 Reply)
Hi,
In AIX sh, how to return the date of yesterday in format of %Y%m%d, YYYYMMDD.
i.e. if today is 20080704, I want it return 20080703.
Can anyone help?
Thanks!
Victor Cheung (4 Replies)
Hi,
Can any one help to find out the day for the given date in AIX. If we giving date as "YYYYMMDD" it should display its day.
eg:if the input is "20120103", expected output is "tuesday" :wall:
Pls help (7 Replies)
Hi,
i unable to get the last month date in AIX.
current date - one month
Based on the forums tried but did not find the relevent information.
Any help grealy appriciated.
Thanks
Suri. (3 Replies)
How could we derive teh Next month in MON-RR format from current date ie sysdate in UNI AIX sheel script.I coould get a command but i supports only inLinux susse andnotin AIX.
I need for Unix AIX.Pls Help.
Regards
Shiv (2 Replies)
Hi,
I need help to display the yesterday date in format mentioned below:
2012-06-26-PMI tried this but it displays current date: `date +%Y-%m-%d-%p` (9 Replies)
Can you help in formating the date command in aix to get the following format
Oct 11 21:52
Fri Oct 11 21:52:01 PDT 2013
Required output:
Oct 11 21:52
Fri Oct 11 21:52:01 PDT 2013 (1 Reply)
I am very curious to find out how AIX admins keep up to date and refreshed with all of the options and features of AIX without having access to a test environment?
Usually going on a course requires practice otherwise the knowledge gained can get lost very quickly.
How do you practice for the... (5 Replies)
Discussion started by: Colin_Fearnley
5 Replies
LEARN ABOUT OPENSOLARIS
libbash
LIBBASH(7) libbash Manual LIBBASH(7)NAME
libbash -- A bash shared libraries package.
DESCRIPTION
libbash is a package that enables bash dynamic-like shared libraries. Actually its a tool for managing bash scripts whose functions you may
want to load and use in scripts of your own.
It contains a 'dynamic loader' for the shared libraries ( ldbash(1)), a configuration tool (ldbashconfig(8)), and some libraries.
Using ldbash(1) you are able to load loadable bash libraries, such as getopts(1) and hashstash(1). A bash shared library that can be loaded
using
ldbash(1) must answer 4 requirments:
1. It must be installed in $LIBBASH_PREFIX/lib/bash (default is /usr/lib/bash).
2. It must contain a line that begins with '#EXPORT='. That line will contain (after the '=') a list of functions that the library
exports. I.e. all the function that will be usable after loading that library will be listed in that line.
3. It must contain a line that begins with '#REQUIRE='. That line will contain (after the '=') a list of bash libraries that are
required for our library. I.e. every bash library that is in use in our bash library must be listed there.
4. The library must be listed (For more information, see ldbashconfig(8)).
Basic guidelines for writing library of your own:
1. Be aware, that your library will be actually sourced. So, basically, it should contain (i.e define) only functions.
2. Try to declare all variables intended for internal use as local.
3. Global variables and functions that are intended for internal use (i.e are not defined in '#EXPORT=') should begin with:
__<library_name>_
For example, internal function myfoosort of hashstash library should be named as
__hashstash_myfoosort
This helps to avoid conflicts in global name space when using libraries that come from different vendors.
4. See html manual for full version of this guide.
AUTHORS
Hai Zaar <haizaar@haizaar.com>
Gil Ran <ril@ran4.net>
SEE ALSO ldbash(1), ldbashconfig(8), getopts(1), hashstash(1)colors(1)messages(1)urlcoding(1)locks(1)Linux Epoch Linux