Created
February 7, 2019 01:33
-
-
Save spotdemo4/1995444103c1493f443309399af51a58 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Enter command file name(s): cmd1.txt non-existant-file cmd2.txt | |
|-|-|-|-|- RUNNING COMMAND FILE: cmd1.txt -|-|-|-|-| | |
----- RUNNING COMMAND: ? ----- | |
Commands: | |
help | |
createFile (filename) | |
printFile (filename) | |
lastModified (filename) | |
size (filename) | |
rename (filename) | |
mkdir (directory) | |
delete (filename/directory) | |
list (directory) | |
quit | |
----- RUNNING COMMAND: createFile file1.txt a b c d e f g ----- | |
Created file1.txt with text: | |
a | |
b | |
c | |
d | |
e | |
f | |
g | |
----- RUNNING COMMAND: printFile file1.txt ----- | |
Contents of file1.txt: | |
a | |
b | |
c | |
d | |
e | |
f | |
g | |
----- RUNNING COMMAND: lastModified file1.txt ----- | |
file1.txt was last modified 02/06/2019 20:21:10 | |
----- RUNNING COMMAND: size file1.txt ----- | |
file1.txt size is 21 bytes | |
----- RUNNING COMMAND: rename file1.txt newFile1.txt ----- | |
Contents of file1.txt: | |
a | |
b | |
c | |
d | |
e | |
f | |
g | |
Created newFile1.txt with text: | |
a | |
b | |
c | |
d | |
e | |
f | |
g | |
Deleted file1.txt | |
Successfully renamed file1.txt to newFile1.txt | |
----- RUNNING COMMAND: mkdir dir ----- | |
Created directory dir | |
----- RUNNING COMMAND: createFile dir/file2.txt 1 2 3 4 5 6 7 8 9 ----- | |
Created dir/file2.txt with text: | |
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
----- RUNNING COMMAND: printFile dir/file2.txt ----- | |
Contents of dir/file2.txt: | |
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
----- RUNNING COMMAND: rename dir/file2.txt dir/newFile2.txt ----- | |
Contents of dir/file2.txt: | |
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
Created dir/newFile2.txt with text: | |
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
Deleted dir/file2.txt | |
Successfully renamed dir/file2.txt to dir/newFile2.txt | |
----- RUNNING COMMAND: list . ----- | |
Files in directory .: | |
.idea | |
.metadata | |
.recommenders | |
blackBishop.gif | |
blackChecker.jpg | |
blackKing.gif | |
blackKnight.gif | |
blackPawn.gif | |
blackQueen.gif | |
blackRook.gif | |
cmd1.txt | |
cmd2.txt | |
dictionary.txt | |
dir | |
f.txt | |
f2.txt | |
f3.txt | |
file.dat | |
file2.txt | |
file3.txt | |
files.dat | |
graphing.txt | |
JH1_chtrallen | |
JH1_chtrallen.zip | |
JH2_chtrallen | |
JH3_chtrallen | |
JH3_chtrallen.zip | |
JH4_chtrallen | |
JH4_chtrallen.zip | |
JH5_chtrallen | |
JH5_chtrallen.zip | |
JH6_chasselb | |
JH6_chtrallen | |
JH6_chtrallen.zip | |
JH7_chtrallen | |
JH8_chtrallen | |
jing.txt | |
MyOutput1.txt | |
newFile1.txt | |
niceJob.txt | |
OneLastOutput.txt | |
out | |
redChecker.jpg | |
russia.txt | |
snake.jpg | |
t.txt | |
t2.txt | |
Testing | |
whiteBishop.gif | |
whiteKing.gif | |
whiteKnight.gif | |
whitePawn.gif | |
whiteQueen.gif | |
whiteRook.gif | |
----- RUNNING COMMAND: list dir ----- | |
Files in directory dir: | |
newFile2.txt | |
|-|-|-|-|- RUNNING COMMAND FILE: non-existant-file -|-|-|-|-| | |
ERROR: Command file not found. Exiting. | |
|-|-|-|-|- RUNNING COMMAND FILE: cmd2.txt -|-|-|-|-| | |
----- RUNNING COMMAND: createFile file2.txt x y z ----- | |
Created file2.txt with text: | |
x | |
y | |
z | |
----- RUNNING COMMAND: printFile file2.txt ----- | |
Contents of file2.txt: | |
x | |
y | |
z | |
----- RUNNING COMMAND: list . ----- | |
Files in directory .: | |
.idea | |
.metadata | |
.recommenders | |
blackBishop.gif | |
blackChecker.jpg | |
blackKing.gif | |
blackKnight.gif | |
blackPawn.gif | |
blackQueen.gif | |
blackRook.gif | |
cmd1.txt | |
cmd2.txt | |
dictionary.txt | |
dir | |
f.txt | |
f2.txt | |
f3.txt | |
file.dat | |
file2.txt | |
file3.txt | |
files.dat | |
graphing.txt | |
JH1_chtrallen | |
JH1_chtrallen.zip | |
JH2_chtrallen | |
JH3_chtrallen | |
JH3_chtrallen.zip | |
JH4_chtrallen | |
JH4_chtrallen.zip | |
JH5_chtrallen | |
JH5_chtrallen.zip | |
JH6_chasselb | |
JH6_chtrallen | |
JH6_chtrallen.zip | |
JH7_chtrallen | |
JH8_chtrallen | |
jing.txt | |
MyOutput1.txt | |
newFile1.txt | |
niceJob.txt | |
OneLastOutput.txt | |
out | |
redChecker.jpg | |
russia.txt | |
snake.jpg | |
t.txt | |
t2.txt | |
Testing | |
whiteBishop.gif | |
whiteKing.gif | |
whiteKnight.gif | |
whitePawn.gif | |
whiteQueen.gif | |
whiteRook.gif | |
----- RUNNING COMMAND: delete newFile1.txt ----- | |
Deleted newFile1.txt | |
----- RUNNING COMMAND: delete file2.txt ----- | |
Deleted file2.txt | |
----- RUNNING COMMAND: delete dir/newFile2.txt ----- | |
Deleted dir/newFile2.txt | |
----- RUNNING COMMAND: delete dir ----- | |
Deleted dir | |
----- RUNNING COMMAND: printFile unknown.txt ----- | |
WARNING: Unable to find file unknown.txt | |
----- RUNNING COMMAND: size unknown.txt ----- | |
WARNING: Unable to find file unknown.txt | |
----- RUNNING COMMAND: lastModified unknown.txt ----- | |
WARNING: Unable to find file unknown.txt | |
----- RUNNING COMMAND: rename unknown.txt newUnknown.txt ----- | |
WARNING: Unable to find file unknown.txt | |
----- RUNNING COMMAND: list . ----- | |
Files in directory .: | |
.idea | |
.metadata | |
.recommenders | |
blackBishop.gif | |
blackChecker.jpg | |
blackKing.gif | |
blackKnight.gif | |
blackPawn.gif | |
blackQueen.gif | |
blackRook.gif | |
cmd1.txt | |
cmd2.txt | |
dictionary.txt | |
f.txt | |
f2.txt | |
f3.txt | |
file.dat | |
file3.txt | |
files.dat | |
graphing.txt | |
JH1_chtrallen | |
JH1_chtrallen.zip | |
JH2_chtrallen | |
JH3_chtrallen | |
JH3_chtrallen.zip | |
JH4_chtrallen | |
JH4_chtrallen.zip | |
JH5_chtrallen | |
JH5_chtrallen.zip | |
JH6_chasselb | |
JH6_chtrallen | |
JH6_chtrallen.zip | |
JH7_chtrallen | |
JH8_chtrallen | |
jing.txt | |
MyOutput1.txt | |
niceJob.txt | |
OneLastOutput.txt | |
out | |
redChecker.jpg | |
russia.txt | |
snake.jpg | |
t.txt | |
t2.txt | |
Testing | |
whiteBishop.gif | |
whiteKing.gif | |
whiteKnight.gif | |
whitePawn.gif | |
whiteQueen.gif | |
whiteRook.gif | |
----- RUNNING COMMAND: quit ----- | |
Quitting... | |
Process finished with exit code 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment