User Tools

Site Tools


info:linuxcommands

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
info:linuxcommands [2010-11-10 17:23]
sam whatprovides
info:linuxcommands [2010-12-09 20:09] (current)
sam
Line 154: Line 154:
  
 Both should show if you have a 1000 Mbps / gigabit connection. ''​mii-tool''​ won't show gigabit. Both should show if you have a 1000 Mbps / gigabit connection. ''​mii-tool''​ won't show gigabit.
 +
 +===== Use '​perl'​ like '​sed'​ =====
 +Perl can be used for one-liners like a more powerful sed. For example:
 +
 +<​code>​
 +perl -p -i.bak -e 's/; / \&​\&​ /g' <INPUT FILE>
 +</​code>​
 +
 +The -i makes it make the changes in-place. Remove the '​.bak'​ to forgo making a backup.
 +
info/linuxcommands.txt · Last modified: 2010-12-09 20:09 by sam