Hi,
i have log like this :
Actually i want to change the time stamp, and the rule is like this :
and My script is like this :
I know the script will loop and loop again after 07:00
like this:
Can somebody help me ??
Thanks in advance..
Hi,
i have log like this :
Actually i want to change the time stamp, and the rule is like this :
and My script is like this :
I know the script will loop and loop again after 07:00
like this:
Can somebody help me ??
Thanks in advance..
try awk
awk -F':' '{ z=$1+8; $1=sprintf("%02d", z % 24); print $0}' filename > newfile
thanks jim i modify a bit put ":"
help ton convert a file of number.
Hello ,
I have this problem. Can somebody can help me ?
my input file is like this:
1225
1254
4567
7895
4565
I want to have in output something like this:
'1225',
'1254',
'4567',
'7895',
'4565'
Thanks for your help.
sed -e "s/^/\'/" -e "s/$/\',/" file
You can try:
sed "s/\(.*\)/\'&\',/" file