Vcoderz Community

Vcoderz Community (http://forum.vcoderz.com/index.php)
-   Computers & Information Technologies (http://forum.vcoderz.com/forumdisplay.php?f=6)
-   -   Linux terminal help (http://forum.vcoderz.com/showthread.php?t=21230)

Adam 12-22-2011 07:13 AM

Linux terminal help
 
I have a school assignment that I have been stuck on for a couple of days.
What I need is a command that takes a sequence of letters and pairs them in a way that each pair has another adjacent pair next to it.
For example:
Code:

abcdefgh
Should give me:
Code:

ab cd
bc de
cd ef
de fg
ef gh

I'm familiar with awk, sed and grep, which I think are the tools I'm supposed to use. But I'm still not getting it.


All times are GMT +1. The time now is 04:12 PM.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger