Hi
I have file like the below mentioned example. Need some kind of unix script to achive the output.
Input:
Code:
PA|23|2013-01-23|252
PA|23|2013-01-23|264
PA|25|2013-01-22|200
PA|23|2013-01-27|156
PA|23|2013-01-27|002
PA|23|2013-01-27|014
Output:
Code:
PA|23|2013-01-23|264
PA|25|2013-01-22|200
PA|23|2013-01-27|156
PA|23|2013-01-27|014
I am debugging a android framework.
I pull out dropbox logs from device and it's created in /data/system/dropbox.
Log file name is printed like this format.
event_data@1362451303699
1362451303699 is timestamp and i want to change it like 05/03/2013 16:00 for legibility.
How can i convert this timestamp?
Is there any code needs to be changed?
Any help will be much appreciated.
From this answer I have reduced a log file to this:
Timestamp:1359021601 2013-01-17 15:00:01
size: 10G /mnt/SolrFiles/solr/api/
Timestamp:1359025201 2013-01-17 16:00:01
size: 11G /mnt/SolrFiles/solr/api/
...snip hundreds of lines...
Timestamp:1359021601 2013-01-24 10:00:01
size: 11G /mnt/SolrFiles/solr/api/
Timestamp:1359025201 2013-01-24 11:00:01
size: 11G /mnt/SolrFiles/solr/api/
Timest
I need to write to a file and then get the last_modified date and update a table.
How would I do the following:
echo 'new file' > /tmp/file.txt
stat /tmp/file.txt
16777218 16641883 -rw-r--r-- 1 david wheel 0 6 "Feb 19 16:48:21 2013"
"Feb 19 16:48:21 2013" "Feb 19 16:48:21 2013" "Feb 19 16:48:21 2013"
4096 8 0 hello.txt
How would I get the last_modified time in the format of "YYYY-MM-DD HH
I have two files and i want to arrange rows of 2nd file in the same order of rows in 1st file. where column no 2 and 5 of 2nd files have same values as 1st file only the difference is their order is different. considering that complete rows should rearrange not only 2nd and 3rd columns .
I have a shell script that runs on Linux and uses this call to get yesterday's date in YYYY-MM-DD format:
date -d "1 day ago" '+%Y-%m-%d'
It works most of the time, but when the script ran yesterday morning at 2013-03-11 0:35 CDT it returned "2013-03-09" instead of "2013-03-10".
Presumably daylight saving time (which started yesterday) is to blame.
I need to change password of a non-root user on HPUX. Due to some local policy, it is not allowing me to do so. I need to keep same (previous) password, as that is application user. Can I bypass policy for this time, for this user somehow ?
I have a dell inspiron 1100 with the latest firmware and running F11 and when I try to open any movie and some games all I get are a bunch of crazy blocks all over the screen. I can surf the web just fine but I can't get any video that way either.
Dell inspiron 1100
Intel 845G chipset
A32 BIOS
Fedora 11
Hi i have a log file
Code:
P12345_15728710[01/03/2013 18:16:35]:DEBUG:Begin
P12345_15728710[01/03/2013 18:16:35]:DEBUG:Being
P12345_15729310[01/03/2013 18:48:35]:DEBUG:GetAgen
P12345_15726510[01/03/2013 18:49:35]:DEBUG:end
i want to trim this file and i want like this
Code:
15728710[01/03/2013 18:16:35]
15728710[01/03/2013 18:16:35]
15729310[01/03/2013 18:48:35]
15726510[01/03/2