linux:bash:cat-grep-get-part-string
Cat Grep Get Part of String
Cat dan grep mendapatkan sebagian dari string
Contoh string
2022-03-11 14:08:08 1nSZNf-0007Dn-So <= ardi@xxxdg.co.id H=xxx2.srv.mailku.net (smtp.mailku.net) [xxx.xxx.248.152] P=esmtpa A=plain:ardi@xxxx.co.id S=19395 id=202203111408057154306@xxxxg.co.id T="NPE 1X40" from <ardi@xxxxxx.co.id> for firman@xxxx.co.id
Kita ingin mendapatkan string dari from dan for sampai akhir
maka kita bisa gunakan
cat file | grep -i -o 'from.*.for.*'
Layanan
Harga Domain .COM | Harga Domain .ID | Shared Hosting | Email Hosting | MySQL Hosting |linux/bash/cat-grep-get-part-string.txt · Last modified: 2022/03/11 02:33 by kbadmin