Circular Shifts on Strings in Bash

Posted by Kyle Van Koevering on Stack Overflow See other posts from Stack Overflow or by Kyle Van Koevering
Published on 2010-04-05T12:23:06Z Indexed on 2010/04/05 12:33 UTC
Read the original article Hit count: 393

Filed under:
|
|

I have a homework assignment where I need to take input from a file and continuously remove the first word in a line and append it to the end of the line until all combinations have been done. I really don't know where to begin and would be thankful for any sort of direction. The part that has me confused is that this is suppose to be performed without the use of arrays. I'm not just fishing for someone to solve the problem for me, I'm just looking for some direction. Thank you very much for your time and help.

SAMPlE INPUT:

Pipes and Filters

Java Swing

Software Requirements Analysis

SAMPLE OUTPUT:

Analysis Software Requirements

Filters Pipes and

Java Swing

Pipes and Filters

Requirements Analysis Software

Software Requirements Analysis

Swing Java

© Stack Overflow or respective owner

Related posts about bash

Related posts about circular