hi ,
This function actually gives me the last month but as a numeric value what should i do to get it as suppose :Jul
date '+%b %Y' |
{
read MONTH YEAR
MONTH=`expr "$MONTH" - 1`
echo $MONTH
}
Thanks.
Rooh (2 Replies)
Dear friends,
I am new to Unix/Linux. I am trying to run following query but getting an error msg... Please can u people help me in this?
Query:
echo "select status_ac from db_acct where acct_num=AAA000337" | dbaccess elstest
Error:
217: Column (amd000337) not found in any table in the... (2 Replies)
i have an variable mydate=2008Nov07
i want o/p as in variable mymonth=11 (i.e nov comes on 11 number month)
i want some command to do this for any month without using any loop.
plz help me (1 Reply)
Hi All,
I have 1 million records file. Using awk, I am counting the number of records. But as the number is huge, after crossing a number, awk is displaying it in exponential format.
At the end, I need to verify this count given by awk with expected count.
But as it is in exponential format,... (3 Replies)
Request if some one could provide me shell script that converts the below "input file" to "CSV format file" given
Name Domain Contact Phone Email Location
----------------------- ------------------------------------------------ ------- ----- ---------------------------------... (7 Replies)
Hello All,
I am trying to come up with a shell script to count a specific word in a logfile on each day of this month, last month and the month before. I need to produce this report and email it to customer.
Any ideas would be appreciated! (5 Replies)
Hi guys
I am having this strange issue.Well my requirement is like below
Compare two values between flat file and oracle DB
Via perl script I am easily getting the rowcount
Now I connect sql plus via perl and the column value that returns is string
my $sqlplus_settings = '';
my... (7 Replies)
Hi,
I know this must be very simple and stupid question
but I could not find a proper answer anywhere else,
My script generates numeric values in the following format
3.01234567891E+03
I use %.11E in printf formatting, but I need to list my numbers as
0.30123456789E+04
basicly I... (14 Replies)
hi i want to convert date procured from sone operation which will be in 24hr format to 12 hr format displaying AM and PM
# date -d @1362545068
Tue Mar 5 23:44:28 EST 2013
#
this Tue Mar 5 23:44:28 EST 2013
i want to convert it so that output is as below
Tue... (2 Replies)