10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
i have to check the file whether it is created today. here is the ls -l o/p
-rw-r----- 20000 50000 130 Dec 12 10:21 file.txt
im able to check if file is created today or not if the timestamp is in 2014-12-12 format by comparing $(date +Y-%m-%d)
but stuckup as it is of format Dec 12... (6 Replies)
Discussion started by: JSKOBS
6 Replies
2. Shell Programming and Scripting
Hello ,
I have a record in below format
Hostname | Query: 0 | Release: 0 | files: 2 | Files_examined: 2 | SET timestamp=1396778638; | select * from test
I need output in below format
Hostname | 0 | 0 | 2 | 2 | 04/06/2014|03:03:58 | select * from test
I was able to get above output... (1 Reply)
Discussion started by: Tomlight
1 Replies
3. Shell Programming and Scripting
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)
Discussion started by: vivek d r
2 Replies
4. Shell Programming and Scripting
Hi All,
Can someone please let me know how can i convert the date format in unix as follow:
From: 24 Oct 2011
i.e $(date +'%d %b %Y')
To: 111024
i.e $(date +%y%m%d)
Thanks in advance (3 Replies)
Discussion started by: davidtd
3 Replies
5. Shell Programming and Scripting
I have a file which consist of some class 4 IP address as
172.16.112.50
172.16.112.50
172.16.112.50
172.16.112.100
192.168.1.30
172.16.112.100
172.16.112.50
172.16.112.50
172.16.112.50
i want to store them in pure decimal notations instead of the given dotted decimal formats
e.g.... (2 Replies)
Discussion started by: vaibhavkorde
2 Replies
6. UNIX for Dummies Questions & Answers
hi,
i have a file in which i get date format as 22/APR/2010...
now i want the date format to be in 22-04-2010
if the month changes to may the file should also have 05 as month....
pls help (3 Replies)
Discussion started by: siva_nagarajan
3 Replies
7. Shell Programming and Scripting
Is there any direct way in shell to convert exponential to other formats. For example 1.5e-07 to 0.150u. Or does shell support this microns, nano meter notations? (1 Reply)
Discussion started by: abhijanvt
1 Replies
8. Shell Programming and Scripting
Hi All,
I want to convert Scientific number format into normal number format using unix script or using any command of unix.
e.g 1.55397e+09 into 1553970000
Thanks in advance
Kamal (1 Reply)
Discussion started by: kamal_418
1 Replies
9. UNIX for Advanced & Expert Users
Hi all,
I've a flat file in this format:
=
"
Record 1
Field1 -> XXXX
Field2 -> 9558
Field3 -> 55AA
Record 2
Field1 -> YYYY
Field2 -> 12345
Field3 -> aa23
"
And i want to convert it to (4 Replies)
Discussion started by: Loobian
4 Replies
10. Programming
Hi,
Please can any one tell me how to convert binary data to text format and vice versa.
If possible give me the algorithm or C program.
Thanks in advance
Waiting for reply
Bye:o (5 Replies)
Discussion started by: manjunath
5 Replies