Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ Welcome to the Introduction to GitHub Competition! You have been tasked with loc
The team has identified some information about the issue. This information is listed in issue #2 on this repository (repo).

Locate the issue and send the flag to a PIP captain via Discord. If you're the first to find it, you'll win a prize!

---

#### Branch-specific info:
This branch is for fixing issue #2
15 changes: 15 additions & 0 deletions search.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@echo off

set /p input=Search string:
echo Searching for %input%
echo.
findstr /m /l /s %input% *.js >> results.txt
findstr /m /l /s %input% *.scss >> results.txt
findstr /m /l /s %input% *.txt >> results.txt
findstr /m /l /s %input% *.css >> results.txt

echo Found the input string at the following locations:
for /F "tokens=*" %%A in (results.txt) do echo %%A

del results.txt
pause
4 changes: 4 additions & 0 deletions search.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
echo Search string:
read inpt
grep -R -I -H "$inpt" .