package com.dw.lib.cli;

import java.util.List;

import com.dw.lib.FileUtils;

public class CatCLI {

	public static void main(String[] args) {
		try {
			if (args.length != 1){
				System.out.println("jcat to view a text file");
				System.out.println("jcat <text file>");
				return;
			}
			
			FileUtils utils = new FileUtils();
			List<String> result = utils.fileToList(args[0]);
			for(String s : result) {
				System.out.println(s);
			}
		} catch(Exception e) {
			e.printStackTrace();
		}
	}

}

@@ -168,10 +168,9 @@
 gth 
-!=
+%3C
  1)%7B
@@ -325,16 +325,92 @@
 tils();%0A
+%09%09%09for(int i=0;i%3Cargs.length;i++) %7B%0A%09%09%09%09System.out.println(args%5Bi%5D + %22:%22);%0A%09
 %09%09%09List%3C
@@ -452,13 +452,14 @@
 rgs%5B
-0
+i
 %5D);%0A
+%09
 %09%09%09f
@@ -478,32 +478,33 @@
 : result) %7B%0A%09%09%09%09
+%09
 System.out.print
@@ -513,17 +513,27 @@
 (s);%0A%09%09%09
-%7D
+%09%7D%0A%09%09%09%7D%0A%09%09%09
 %0A%09%09%7D cat

make jcat print out multiple files