I wan to convert any field having date in the file from the follwoing format 5/1/2003 to 2003-05-01. This file is tab delimited. Please help. (2 Replies)
Hello,
I could not find the exactly same post here.. so I will explain what I did to get the last month using date command.
I used
date +%Y-%m -d "-1 months"
to get the last month. However, the returned value of above command on 2009/10/31 was 2009 10 and not 2009 09.. and the... (9 Replies)
Hello all,
I'm trying to substract 1 minute from the current date and take the hour and minute (for filename purpose).
1) If I want hour an minute from current time I can use:
timetmp=$(date +"%H:%M")
2) To substract 1 minute from current time I can use:
timetmp=$(date --date "$dte -1... (8 Replies)
Hi,
in my script, i take the last month by
a=$(date --date '1 month ago' +%Y%m)
i expect that it give me in this month "March" as result 201402,
but linux gave me 201403.
IMPe@ABC123:> ~/date --date '1 month ago' +%Y%m
201403
i'm reasonably confused. Any idea?
Thanks in advance,
... (2 Replies)
Hi all,
Need an urgent help on the below scenario.
script:
awk -F","
'BEGIN { #some variable assignment}
{ #some calculation and put values in array}
END {
year=#getting it from array and assume this will be 2014
month=#getting it from array and this will be 05
date=#... (7 Replies)
Hi Experts,
I have a date validation script in that i will validate the date for a given format and search in the logs for that date. The script logic is very simple like below.
Validate_Date()
{
is_valid=1
while
do
date_format=$(date "+$1")
echo -e "Please enter the $2 date like... (6 Replies)
Problem : we need a command that will give previous day date and previous day should be mon-fri only.
Example :if we are running a command on Monday , it will give Friday ‘s date not Sunday’s .
Few more restrictions :
Command should be working in NM n/w.
Hard coding of date should be avoided.... (11 Replies)
HI,
Can anyone tell me how to pull the date and file name separated by a space using the find command or any other command. I want to look through several directories and based on a date timeframe (find -mtime -7), output the file name (without the path) and the date(in format mmddyyyy) to a... (2 Replies)
current date command runs well
awk -v t="$(date +%Y-%m-%d)" -F "'" '$1 < t' myname.dat
subtract 30 days fails
awk -v t="$(date --date="-30days" +%Y-%m-%d)" -F "'" '$1 < t' myname.dat
awk command in hp unix subtract 30 days automatically from current date without date illegal option error... (20 Replies)
Discussion started by: kmarcus
20 Replies
LEARN ABOUT OSF1
iprsetup
iprsetup(8) System Manager's Manual iprsetup(8)NAME
iprsetup - Internet Protocol router setup
SYNOPSIS
/usr/sbin/iprsetup -s
/usr/sbin/iprsetup -sd
/usr/sbin/iprsetup -r
/usr/sbin/iprsetup -rd
/usr/sbin/iprsetup -fvalue
/usr/sbin/iprsetup -fvalued
/usr/sbin/iprsetup -d
OPTIONS
Sets ipforwarding and ipgateway to one, which means the system functions as an IP router. This option cannot be combined with the -r
option. Resets ipforwarding and ipgateway to zero, which means the system does not function as an IP router. This option cannot be com-
bined with the -s and -f options. Sets ipforwarding and ipgateway to one (like the -s option), and also sets ipfirewall to one, which
means the system functions as an IP firewall. Additionally, sets ipsrcroute and ipchkredirects according to the specified value. The fol-
lowing table shows the valid values and their meaning:
----------------------------------------------------------
Value Meaning
----------------------------------------------------------
0 Sets both ipsrcroute and ipchkredirects to zero
1 Sets ipsrcroute to zero and ipchkredirects to one
2 Sets ipsrcroute to one and ipchkredirects to zero
3 Sets both ipsrcroute and ipchkredirects to one
----------------------------------------------------------
This option cannot be combined with the -r option. Only application gateways for firewall services use this option. Displays the
values of ipforwarding and ipgateway. The values are displayed after the values are changed when combined with the -s, -r, and -f
options.
DESCRIPTION
The iprsetup command sets the ipgateway and ipforwarding variables in the running kernel allowing your system to function as an Internet
Protocol router.
When ipfirewall variable is set to one, the following variables are also set: Indicates whether IP source-routed packets are accepted (1)
or dropped immediately (0). Indicates whether ICMP Redirect messages are authenticated (1) or accepted with no authentication (0).
The iprsetup command is automatically executed by netsetup when you configure your network daemons. It is also executed by the
/sbin/init.d/inet script when you reboot your system or restart the network on your system.
FILES
Contains the /usr/sbin/iprsetup command Contains the /usr/sbin/iprsetup command
SEE ALSO
Network Administration
iprsetup(8)