yüksek çözünürlüklü bash script uygulama görseli

How to Strip White Space, Dash And Colons From Bash

Pipe a timestamp string into sed combined to remove the -, : and white space to get a string which is suitable for a log file

echo -n "10-09-2020 09:00:00" | sed 's/-\|:\|\s//g'

It is very useful for dates or slice strings

Share this article
Shareable URL
Prev Post

Linkedin Microsoft Word Assessment Cevapları

Next Post

Linkedin Microsoft Excel Assessment Cevapları

Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir

Read next
1
Share