Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:misc [2026/03/04 16:52] – [yq] tmadelinux:misc [2026/06/12 11:07] (current) – [Set variable] tmade
Line 83: Line 83:
 Foo Foo
 </code> </code>
 +
 +====Set variable====
 +Alternative to "sed":
 +
 +  var="oldvalue"
 +  var="${var/oldvalue/newvalue}"
 +  echo $var
 +  newvalue
 +
  
 ====awk==== ====awk====
linux/misc.1772639561.txt.gz · Last modified: by tmade
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki