Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Shell 

My >> turns into a 1>

Has been fixed, the solution is at the end of the OP, or refer to Sir-TeaBags post Thank you, Sir-TeaBag for helping me fix this

So, i'm trying to decipher the meaning of certain typedef definitions inside of header files and to do this I decided to use the FIND command to trace their meanings, but since it only looks in one directory at a time, I have to re-write the command in order for it to look inside of other directories. I wrote a bash script to automate this, but i keep getting a weird error i cant fix. Basically, the pipe symbols ( >> ) turn into (1>) so:

find \i "moneyTree" C:\Users\John\Desktop\MyHouse >> myWallet.txt

Turns into:

find \i "moneyTree" C:\Users\John\Desktop\MyHouse 1> myWallet.txt

After trying a few things and looking in google, I decided to make a thread hopefully I can get some help here:

=-=-=-=      START - CODE     -=-=-=-=-=-=-

SET KEYWORD=PASCAL
SET SEARCH_PATH=C:\MingGW\Include\*
SET ALT_SEARCH_PATH=C:\MingGW\Include\
SET OUTPUT_FILE=C:\users\john\desktop\output.txt

FIND \I "%KEYWORD%" %SEARCH_PATH% >>  %OUTPUT_FILE%

PAUSE

=-=-=-=      END - CODE     -=-=-=-=-=-=-

🎉


-=-=-=-=-  FIX -=-=-=-=-=-=-=-=-
For some reason, I have to add carets before each "greater than" symbol. So the correct code would be:

find \i "moneyTree" C:\Users\John\Desktop\MyHouse ^>^> myWallet.txt
Using >> shouldn't turn in to a 1 since i use that all the time...

Did you try adding carets?
Tell me if this works for you

Code
FIND \I "%KEYWORD%" %SEARCH_PATH% ^>^> %OUTPUT_FILE%
(Jun 10, 2018 11:30 AM)Sir-Teabag Wrote:  Using >> shouldn't turn in to a 1 since i use that all the time...

Did you try adding carets?
Tell me if this works for you

Code
FIND \I "%KEYWORD%" %SEARCH_PATH% ^>^> %OUTPUT_FILE%

Thank you so much!! That was it
(Jun 10, 2018 11:41 AM)Salacity Wrote:  Thank you so much!! That was it

Awesome! Glad I could help ✌ 🎉


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by MalentorJul 14, 2017 10:27 AM 16 516 Jul 14, 2017 10:27 AM
Last Post: Malentor
[C] by Deathskully66Jan 25, 2016 08:40 AM 2 264 Jan 25, 2016 08:40 AM
Last Post: Zakhaev11katona
[.NET] by FộrcədAug 10, 2013 06:43 AM 30 1,821 Aug 10, 2013 06:43 AM
Last Post: Drug ballad