NGS scrap
scrap for NGS tools & tips, Linux, programming languages
page
Home
Jul 11, 2019
Sed Command in Linux
Replacing all the occurrence of the pattern in a line :
The substitute flag /g (global replacement) specifies the sed command to replace all the occurrences of the string in the line.
$sed 's/apple/lemon/g' test.txt
https://www.tecmint.com/linux-sed-command-tips-tricks/
https://www.geeksforgeeks.org/sed-command-in-linux-unix-with-examples/
https://likegeeks.com/sed-linux/
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment