Sed (Stream EDitor) can be used to Find & Replace words and regular expressions within Files or Bash Variables / Arrays.
In this tutorial I cover the basics of Sed, including replacing letters, words, editing a file, and replacing a character at a specific position in a string.
Command:
sed ‘s/regexp/replacement/’ file
/g Global (multiple changes per line)
-i Edit file inline
-E Extended regular expression
Background from Charlie Henson:
Grungy Textured 05
Like my channel? Please help support it:
Patreon:
Paypal:
Follow me on Social Media
Google+
Twitter:
Minds:
Nguồn: https://ftlinuxcourse.com
Xem thêm bài viết khác: https://ftlinuxcourse.com/lap-trinh-linux
Xem thêm Bài Viết:
- Trải nghiệm mới hay ho với hướng dẫn cài Mac Os trên vmware
- Bật mí cách cài đặt ssl miễn phí lên Let’s Encrypt
- Tuyệt chiêu tạo usb boot kali linux đơn giản dành cho bạn
- Hướng dẫn chi tiết từ A – Z các bước cài đặt Python trên Windows 10
- Bật mí quy trình cài đặt Kali Linux trên Vmware đúng chuẩn và chi tiết