[usuario]: ~$ sudo apt-get install sed
[usuario]: ~$ sed --versión
sed (GNU sed)
4.2. Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<
http://gnu.org/licenses/gpl.html
>
.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Jay Fenlason, Tom Lord, Ken Pizzini, and Paolo Bonzini.
GNU sed home page:
<
http://www.gnu.org/software/sed/
>
.
General help using GNU software:
<
http://www.gnu.org/gethelp/
>
.
E-mail bug reports to:
<
[email protected]
>
[user]: ~$ vi text.txtPrograms must be written for people to read, and only incidentally for machines to execute.” ― Harold Abelson, Structure and Interpretation of Computer Programs
[user]: ~$ sed ‘’ text.txtPrograms must be written for people to read, and only incidentally for machines to execute.” ― Harold Abelson, Structure and Interpretation of Computer Programs
[user]: ~$ sed ‘’Programs must be written for people to read, and only incidentally for machines to execute.” ― Harold Abelson, Structure and Interpretation of Computer ProgramsPrograms must be written for people to read, and only incidentally for machines to execute.” ― Harold Abelson, Structure and Interpretation of Computer Programs
[user]: ~$ sed ‘1d’ text.txt
[user]: $ sed '22 w text2.txt' text.txt
[user]: ~$ cat text2.txt
Harold Abelson, Structure and Interpretation of Computer Programs
[user]: ~$ sed '2 a The Append example' text.txt[user]: ~$ cat text.txtPrograms must be written for people to read, and only incidentally for machines to execute.” ― Harold Abelson, Structure and Interpretation of Computer ProgramsThe Append example'
[user]: ~$ sed '3 r text.txt' text2.txt
[user]: ~$ cat text2.txt
Programs must be written for people to read, and only incidentally for machines to execute.” ― Harold Abelson, Structure and Interpretation of Computer Programs
The Append example'
Programs must be written for people to read, and only incidentally for machines to execute.” ― Harold Abelson, Structure and Interpretation of Computer Programs