Removed submodules

This commit is contained in:
2026-05-31 14:34:00 -04:00
commit 46c36b11da
352 changed files with 14792 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
$ ./bin/cat cut_data/data.csv
hello,world,me
later,gator
$ ./bin/cat cut_data/data.csv | ./bin/cut -d , -f 2
world
gator
$ ./bin/cat cut_data/data.csv | tail -n 1
later,gator
$ quit
+17
View File
@@ -0,0 +1,17 @@
$ export A=5
$ ./bin/env ./bin/repeat 1 A
A=5
$ ./bin/env B=6 C=7 ./bin/repeat 1 A 2 B 3 C
A=5
B=6
B=6
C=7
C=7
C=7
$ ./bin/env C=7 ./bin/repeat 1 A 2 B 3 C | head -n 4
A=5
B=
B=
C=7
$ quit
+17
View File
@@ -0,0 +1,17 @@
$ ./bin/ls -a data | ./bin/head -n 1
empty.txt
$ ./bin/ls -a data | ./bin/head -n 2000
empty.txt
FIRST.txt
.hidden.txt
pwd.txt
subdir
yat.txt
$ ./bin/head -n 1 cut_data/data.spaces | ./bin/cut -f 2
world
$ ./bin/head -n 1 cut_data/data.csv | ./bin/cut -d , -f 1
hello
$ ./bin/head -n 1 cut_data/data.csv | ./bin/cut -d , -f 3
me
$ quit
+6
View File
@@ -0,0 +1,6 @@
$ which ./bin/rm
./bin/rm
$ which ./bin/cat
./bin/cat
$ quit
+18
View File
@@ -0,0 +1,18 @@
$ export A=5
$ ./bin/repeat 2 A
A=5
A=5
$ ./bin/env B=6 ./bin/repeat 1 A
A=5
$ ./bin/env C=10 ./bin/repeat 2 A 3 B 4 C
A=5
A=5
B=
B=
B=
C=10
C=10
C=10
C=10
$ quit
+9
View File
@@ -0,0 +1,9 @@
$ which export
export: dukesh built-in command
$ echo N=${NUM}
N=
$ export NUM=5
$ echo N=${NUM}
N=5
$ quit
+9
View File
@@ -0,0 +1,9 @@
$ export SHELL=/bin/bash
$ export USER=me
$ ./bin/repeat 1 USER
USER=me
$ ./bin/repeat 2 SHELL
SHELL=/bin/bash
SHELL=/bin/bash
$ quit
+13
View File
@@ -0,0 +1,13 @@
$ ./bin/ls data
empty.txt
FIRST.txt
pwd.txt
subdir
yat.txt
$ echo $?
0
$ ./bin/ls asldfkjasldfkj
$ echo $?
1
$ quit
+14
View File
@@ -0,0 +1,14 @@
$ ./bin/env A=5 ./bin/repeat 2 A
A=5
A=5
$ ./bin/env A=5 B=6 C=7 ./bin/repeat 1 A 2 B 3 C
A=5
B=6
B=6
C=7
C=7
C=7
$ ./bin/env A=10 ./bin/repeat 1 B
B=
$ quit
+14
View File
@@ -0,0 +1,14 @@
$ ./bin/ls data
empty.txt
FIRST.txt
pwd.txt
subdir
yat.txt
$ ./bin/head Makefile
#
# Simple Test Makefile
# Mike Lam, James Madison University, August 2016
#
# This version of the Makefile includes support for building a test suite. The
$ quit
@@ -0,0 +1,4 @@
$ ./bin/ls -l
$ ./bin/head -c 5 Makefile
$ quit
+6
View File
@@ -0,0 +1,6 @@
$ ./bin/ls -l
./bin/ls: invalid option -- 'l'
$ ./bin/head -c 5 Makefile
./bin/head: invalid option -- 'c'
$ quit
+35
View File
@@ -0,0 +1,35 @@
$ /usr/bin/chmod 751 data/subdir
$ /usr/bin/chmod 640 data/empty.txt
$ /usr/bin/chmod 640 data/FIRST.txt
$ /usr/bin/chmod 400 data/.hidden.txt
$ /usr/bin/chmod 640 data/pwd.txt
$ /usr/bin/chmod 640 data/yat.txt
$ ./bin/ls -a data
empty.txt
FIRST.txt
.hidden.txt
pwd.txt
subdir
yat.txt
$ ./bin/ls -s data
0 empty.txt
6 FIRST.txt
9 pwd.txt
22 yat.txt
$ ./bin/ls -sa data
0 empty.txt
6 FIRST.txt
5 .hidden.txt
9 pwd.txt
22 yat.txt
$ ./bin/ls -ap data
-rw-r----- empty.txt
-rw-r----- FIRST.txt
-r-------- .hidden.txt
-rw-r----- pwd.txt
drwxr-x--x subdir
-rw-r----- yat.txt
$ ./bin/head -n 1 Makefile
#
$ quit
+7
View File
@@ -0,0 +1,7 @@
$ cd /usr/bin
$ pwd
/usr/bin
$ which ls
/usr/bin/ls
$ quit
+35
View File
@@ -0,0 +1,35 @@
$ ./bin/ls -a data
empty.txt
FIRST.txt
.hidden.txt
pwd.txt
subdir
yat.txt
$ ./bin/ls -s data
0 empty.txt
6 FIRST.txt
9 pwd.txt
22 yat.txt
$ ./bin/ls -sa data
0 empty.txt
6 FIRST.txt
5 .hidden.txt
9 pwd.txt
22 yat.txt
$ ./bin/chmod rw- rw- --- data/empty.txt
$ ./bin/chmod r-- --- --x data/FIRST.txt
$ ./bin/chmod rw- rw- rw- data/pwd.txt
$ ./bin/chmod r-x r-x r-x data/yat.txt
$ ./bin/chmod rwx --- --- data/.hidden.txt
$ ./bin/chmod r-x --x r-- data/subdir
$ ./bin/ls -ap data
-rw-rw---- empty.txt
-r-------x FIRST.txt
-rwx------ .hidden.txt
-rw-rw-rw- pwd.txt
dr-x--xr-- subdir
-r-xr-xr-x yat.txt
$ ./bin/head -n 1 Makefile
#
$ quit
+17
View File
@@ -0,0 +1,17 @@
$ ./bin/cut cut_data/data.spaces
hello
later
$ ./bin/cut -f 2 cut_data/data.spaces
world
gator
$ ./bin/cut cut_data/data.csv
hello,world,me
later,gator
$ ./bin/cut -d , cut_data/data.csv
hello
later
$ ./bin/cut -d , -f 2 cut_data/data.csv
world
gator
$ quit
+15
View File
@@ -0,0 +1,15 @@
$ ./bin/cut -f -1 cut_data/data.spaces
cut, splits each line based on a delimiter
usage: cut [FLAG] FILE
FLAG can be:
-d C split each line based on the character C (default ' ')
-f N print the Nth field (1 is first, default 1)
If no FILE specified, read from STDIN
$ ./bin/cut -f 3 cut_data/data.spaces
me
$ ./bin/cut -d , -f 5 cut_data/data.csv
$ quit
+7
View File
@@ -0,0 +1,7 @@
$ echo goodbye
goodbye
$ echo hello\nworld
hello
world
$ quit
+8
View File
@@ -0,0 +1,8 @@
$ echo this has extra spaces
this has extra spaces
$ echo this\nhas\nnewlines
this
has
newlines
$ quit
+18
View File
@@ -0,0 +1,18 @@
$ which cd
cd: dukesh built-in command
$ which echo
echo: dukesh built-in command
$ which pwd
pwd: dukesh built-in command
$ which which
which: dukesh built-in command
$ which ./bin/ls
./bin/ls
$ which ./bin/head
./bin/head
$ which ls
/usr/bin/ls
$ which head
/usr/bin/head
$ quit
+6
View File
@@ -0,0 +1,6 @@
$ echo hello
hello
$ echo goodbye
goodbye
$ quit
+2
View File
@@ -0,0 +1,2 @@
$ quit