From c82c6f0c88f98cf88fc95f98269ef7aa3a17928b Mon Sep 17 00:00:00 2001 From: okgabe Date: Wed, 3 Feb 2021 12:28:49 -0600 Subject: [PATCH 1/2] Branch-specific README --- README.md | 5 +++++ 1 file changed, 5 insertions(+) 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 From 0762481041f2c09f6cc971fe5fbf047d3dafaceb Mon Sep 17 00:00:00 2001 From: okgabe Date: Wed, 3 Feb 2021 12:54:16 -0600 Subject: [PATCH 2/2] Add search scripts --- search.bat | 15 +++++++++++++++ search.sh | 4 ++++ 2 files changed, 19 insertions(+) create mode 100644 search.bat create mode 100755 search.sh 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