Hello,
Is there any easy way to write a script to display the date for the previous day? I have a script which queries a sybase database, and pull the data for certain time period. I'd like to know how you can get the day for previous day, something like: date - 1!
Thanks,
Frank (2 Replies)
Well guys,
I know the right syntax for displaying the current date is $(date). However, I am planning to send emails to some customers which displays their subscription date, and then the expiry. The expiry being 30 days from the current date.
What would the right syntax be? (6 Replies)
Hi All,
I Have written a script through that i am calling sql file
Sqlfile.sql
set time on
set timing on
set echo on
set head off
set scan on
set feedback on
set serveroutput on
set linesize 1000
DECLARE
v_acc_no NUMBER(10);
v_product_no NUMBER(10);
BEGIN... (3 Replies)
i have a file with below contents
Mg_Message_count,1-Aug-12,46
Mg_Message_count,2-Aug-12,48
Mg_Message_count,3-Aug-12,48
Mg_Message_count,4-Aug-12,48
Mg_Message_count,5-Aug-12,48
Mg_Message_count,6-Aug-12,48
Mg_Message_count,7-Aug-12,42
Mg_Message_count,20-Aug-12,24... (10 Replies)
Hello,
I have a file like this:
2012112920121130
12345620121130msABowwiqiq
34477420121129amABamauee
e7748420121130ehABeheheei
in case the content of the file has the date of yesterday within the lines containing pattern AB this should be replaced by the current date. But if I use... (3 Replies)
Below is my Scenario.
I wrote one script to search the specific log files for Yesterdays date and gives the result.
I need a script like
1. Once I run the Script, The script should ask me which date I want to search.
2. Once i enter the date, That script should search the log files for... (3 Replies)
Hi Gurus,
I would like to get the date for the previous year based on the date I specify.
For e.g. If I input today's date (i.e. 20130422) I need to get 20120422.
We don't have GNU and use K Shell. Any help is highly appreciated.
Thanks
Shash (4 Replies)
Hi all,
I've searched through the forum and can't find a thread specific to this question:
I have a CSV file with a date column, the dates I'm given from the original file look like: "m/dd/yyyy" (UNLESS it's a double digit month, like October, where it would then show up as "mm/dd/yyyy"). Is... (8 Replies)
I have a need to grep a large number of files, but only display the first result from each file. I have tried to use grep, but am not limited to it. I can use perl and awk as well. Please help! (9 Replies)
I have came across a few websites stating some custom actions for Thunar -
crunchbang
ubuntu
I tried inputting the stated commands to Thunar, but it doesn't display at all in mine.
I tried "gksu thunar %f" ( Opens current folder with root permissions.) , but when I right click in a... (0 Replies)
Discussion started by: Hijanoqu
0 Replies
LEARN ABOUT OSX
locale
LOCALE(1) BSD General Commands Manual LOCALE(1)NAME
locale -- display locale settings
SYNOPSIS
locale [-a|m]
locale [-ck] name [...]
DESCRIPTION
locale displays information about the current locale, or a list of all available locales.
When locale is run with no arguments, it will display the current source of each locale category.
When locale is given the name of a category, it acts as if it had been given each keyword in that category. For each keyword it is given,
the current value is displayed.
OPTIONS -a Lists all public locales.
-c name ...
Lists the category name before each keyword, unless it is the same category as the previously displayed keyword.
-k name ...
Displays the name of each keyword prior to its value.
-m Lists all available public charmaps. Darwin locales do not support charmaps, so list all CODESETs instead.
OPERANDS
The following operand is supported:
name is the name of a keyword or category to display. A list of all keywords and categories can be shown with the following command:
locale -ck LC_ALL
ENVIRONMENT
LANG Used as a substitute for any unset LC_* variable. If LANG is unset, it will act as if set to "C". If any of LANG or LC_* are
set to invalid values, locale acts as if they are all unset.
LC_ALL Will override the setting of all other LC_* variables.
LC_COLLATE Sets the locale for the LC_COLLATE category.
LC_CTYPE Sets the locale for the LC_CTYPE category.
LC_MESSAGES Sets the locale for the LC_MESSAGES category.
LC_MONETARY Sets the locale for the LC_MONETARY category.
LC_NUMERIC Sets the locale for the LC_NUMERIC category.
LC_TIME Sets the locale for the LC_TIME category.
SEE ALSO localedef(1), localeconv(3), nl_langinfo(3), setlocale(3)STANDARDS
The locale utility conforms to IEEE Std 1003.1-2001 (``POSIX.1'').
HISTORY
locale appeared in Mac OS X 10.4
Darwin August 27, 2004 Darwin