Skip to content

Commit e53baeb

Browse files
Merge pull request #1 from botsarefuture/master
added stuffet
2 parents 24bfb3d + 1fc18ea commit e53baeb

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

clear-content-deb.deb

822 Bytes
Binary file not shown.

clear-content-deb/bin/clear_content

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
# Check if a filename is provided
4+
if [ -z "$1" ]; then
5+
echo "Usage: $0 <filename>"
6+
exit 1
7+
fi
8+
9+
# Extract filename from command-line argument
10+
filename="$1"
11+
12+
# Check if the file exists
13+
if [ ! -f "$filename" ]; then
14+
echo "Error: File '$filename' not found."
15+
exit 1
16+
fi
17+
18+
# Clear the content of the file
19+
echo -n > "$filename"
20+
21+
echo "Content of '$filename' cleared."

0 commit comments

Comments
 (0)