Skip to content

Commit 34635bc

Browse files
authored
Update example.hacker
1 parent e1c6054 commit 34635bc

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

example/example.hacker

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,16 @@
1-
1+
! Example Hacker Lang script
2+
// sudo ! For privileged commands
3+
// apt ! Package manager
4+
@USER=admin ! Set USER
5+
@LOG_DIR=/var/log/hacker
6+
=3 > echo "Run by $USER" ! Loop 3 times
7+
? [ -d /tmp ] > echo "Temp exists" ! Conditional
8+
# util ! Include util library
9+
> sudo apt update ! Update packages
10+
> mkdir -p $LOG_DIR
11+
> echo "Updated at $(date)" >> $LOG_DIR/update.log
12+
[
13+
Configuration
14+
Author: Hacker Lang User
15+
Purpose: System update
16+
]

0 commit comments

Comments
 (0)