What is the 'touch' command equivalent in Windows Terminal?

I’m trying to make a new folder in the directory I just created and in the tutorial video they told me to use ‘touch example.js’ but I get the error ‘touch: The term "touch" is not recognized as the name of a cmdlet, function, script file, or operable program. I haven’t tried anything else but… Read More What is the 'touch' command equivalent in Windows Terminal?

Awk/sed command to print pattern1 only if patterm 2 macthes

Trying to get the "Log" line printed only if "ref1" is present in the text following the "Log" line sample text : Log 0102 ………… …..ref1……. ……ref1…. Log 0103 ………… …..ref1……. …. Log 0104 ………… …..ref2……. …… expected result : Log 0102 Log 0103 result i am getting: Log 0102 Log 0102 Log 0103 i… Read More Awk/sed command to print pattern1 only if patterm 2 macthes