Search Results

Search: Posts Made By: Newbie2012
1,885
Posted By fpmurphy
If you are using the ksh93 shell: exec...
If you are using the ksh93 shell:

exec 5<filename
read T1 <&5
read T2 <&5
exec 5<&-

E1=$( printf "%(%s)T" "${T1:0:8} ${T1:8:2}:${T1:10:2}:${T1:12:2}.${T1:14}" )
E2=$( printf "%(%s)T"...
1,885
Posted By Corona688
date -d saves you a lot of pain when you have it,...
date -d saves you a lot of pain when you have it, but is Linux-only.

I have in filename: 2010100912000145
2010100912000955

And the script:
#!/bin/bash

exec 5<filename # Open file into...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 12:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy