cut command top remove seconds from time. shell scripting
Advertisements Lets say we got date and time to a log in the format of 2022-05-18-11:57:140100 I need to remove seconds from this time. It means the final output should be like 2022-05-18-11:57 I tried the following echo "2022-05-18-11:57:140100" | rev | cut -d/ -f6- | rev`:" this was not successful and I have no… Read More cut command top remove seconds from time. shell scripting