diff --git a/README.md b/README.md index 20cab5d..3237d2e 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/search.bat b/search.bat new file mode 100644 index 0000000..fe7a916 --- /dev/null +++ b/search.bat @@ -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 \ No newline at end of file diff --git a/search.sh b/search.sh new file mode 100755 index 0000000..eb515df --- /dev/null +++ b/search.sh @@ -0,0 +1,4 @@ +#!/bin/bash +echo Search string: +read inpt +grep -R -I -H "$inpt" . \ No newline at end of file