Id like to convert a date string in the form of sun aug 19 09:03:10 EDT 2012, to unixtime timestamp using awk.
I tried
This is how each line of the file looks like, different date and time in this format
Sun Aug 19 08:33:45 EDT 2012, user1(108.6.217.236) all: test on the 17th
Through some help here, I was able to add delimiter and make it the way I want
Sun Aug 19 08:33:45 EDT 20
hi,
I have a file named user.cfg under /var/member/
Code:
#user.cfg file under /var/member/
login user: root #how are you
login pass: admin #where are you
M: user1 pass1 #20121008
M: user2 pass2 #20111230
M: user3 pass3 #20091220
M: user4 pass4 #20070210
M: user5 pass5 #20130708
M: user6 pass6 #20141008
M: user7 pass7 #20101008
.
.
.
.
M: user90 pass90 #20121222
M: user91 pass91 #201212
Hello Everyone,
I have the following codes that only works for the first login element. I can't get it work with the second and third login credentials. Can anyone here see the problem?
I ran the code with host1, it works as expect.
On SPARC Solaris 10. I set the app account so it's expired. I also want it
so not required to change password at first login, I can do this by
removing the numbers after the password in /etc/shadow.
example using user1
The /etc/shadow file looks like this:
Code:
user1:kOmcVXAImRTAY:0::::90::
Want it to be like this:
Code:
user1:kOmcVXAImRTAY:::::::
How can I do that via a script?
I want to create a script that will zip the previous log.
hi guys im trying to write a bash script that grabs expired domain names it leaves me with the following outpiut in a text file
Quote:
1, test.com Expiration Date:17-jun-2013
2, test.net Expiration Date:29-mar-2013
3, test.org Expiration Date:26-Jul-2012 04:00:00
4, .test.biz Expiration Date:Mar 26 23:59:59 2012
5, test.info Expiration Date:27-Jul-2012 07:56:43
Hi Am Using Unix ksh...
I have file name called FILE1
Have a content in a FILE as
Code:
11/01/2012
12/07/2012
--
--
I have used one variable
Code:
DATE=12/11/2012
I wants to insert DATE variable value at last line in a file
I need Output as cat FILE1
Code:
11/01/2012
12/07/2012
--
--
12/11/2012
Can you please help me....
hi
i have this file (teste.cfg) with this information
Code:
##
#======== User Subscribers ========
F: user1 221145689 1 0 0 { 0:0:1 } # 24-12-2012 ; Comment
F: user2 224458710 1 0 0 { 0:0:1 } # 11-11-2012 ; Comment
F: user3 325478901 1 0 0 { 0:0:1 } # 24-12-2013 ; Comment
F: user4 325478963 1 0 0 { 0:0:1 } # 08-02-2014 ; Comment
F: user5 201445252 1 0 0 { 0:0:1 } # 02-08-2012 ; Comment
F:
I have a CSV file with date time formatted like this:
8/2/2012 1:34:01 PM
I need to find all the occurrences (probably regex) of such date and convert it (in file) to mysql default datetime format (2012-08-02 13:34:01).
I found that
date --date="8/2/2012 1:34:01 PM" +"%F %T"
is working properly and I'm getting correct result.