[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



I'd add a couple of more mods:

sed -e 's/^\(..\)\(....\)/\2\1/' in-file > out-file

There's no need to match the rest of the line, as it'll stay in place.

Anchoring to the beginning of the line is a paranoia setting.

BAJ


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00250" href="msg00250.html">[ale] Need help with a sed script</a></strong>
<ul><li><em>From:</em> greg.freemyer at gmail.com (Greg Freemyer)</li></ul></li>
<li><strong><a name="00254" href="msg00254.html">[ale] Need help with a sed script</a></strong>
<ul><li><em>From:</em> jimpop at yahoo.com (Jim Popovitch)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00281.html">[ale] Reading hard drive errors</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00283.html">[ale] How to burn a bootable Debian Sarge cd</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00257.html">[ale] Need help with a sed script</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00269.html">[ale] Window Chopping</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00282"><strong>Date</strong></a></li>
<li><a href="threads.html#00282"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>