#!/bin/bashitem=while read -r first second _; do if [[ $first = REQUIRES ]]; then printf '%s REQUIRES %s\n' "$item" "$second" else item=$first fidone
Y REQUIRES Z A REQUIRES B C REQUIRES D REQUIRES E REQUIRES F G REQUIRES H I REQUIRES J
Y REQUIRES Z A REQUIRES B C REQUIRES D C REQUIRES E C REQUIRES F G REQUIRES H
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!