Search Results

Search: Posts Made By: LavanyaP
2,765
Posted By frans
If they must be exactly the same ...
If they must be exactly the same
systime=2011-05-13:18:45
shubtime=2011-05-13:18:30
if [ "$systime" = "$shubtime" ]
then
echo" OK"
else
echo "NOK"
fi
Or shorter:[ "$systime" =...
2,765
Posted By ctsgnb
ksh systime=2011-05-13:18:45 ...
ksh
systime=2011-05-13:18:45
shubtime=2011-05-13:18:45
echo $systime $shubtime | tr -d ':-' | read a b
[[ $a -eq $b ]] && echo OK || echo KO
3,769
Posted By ctsgnb
paste -d " " file1 file2
paste -d " " file1 file2
1,130
Posted By ahamed101
Was just curious to create one with awk awk...
Was just curious to create one with awk

awk -F"[.]1[.]" '{$NF=":"$NF;gsub(/ /,".1.");sub(".1.:",":")}1' infileregards,
Ahamed
Showing results 1 to 4 of 4

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