I need to write a batch file that can be passed one to many parameters. I need to call another program with those parameters, plus one other possibly (based on some other logic) and than add on the last parameter (which is a filename really).
For example:
The batch file is called with -i:abc...
I am running it from CMD.
I was trying not to install anything. That is why I liked mawk- it is just the .exe.
I guess I could try another variant and see if that works.
Using the > , seems to put a wrench in using wildcards, or is there a way around that? I suppose a batch file could loop...
I tried all 3 of those (the first one I had tried before) and all leave the file the same.
I am wondering if it is the implementation I am using. I am using MAWK for Windows.
As for the file, it is just m3u playlist. Some of my devices don't like the # tags.
I am looking to do this in...
Let me start by saying I am a programmer, but don't know awk. I need to remove all lines from a txt file that start with #.
I searched high and low and tried about 6 different things, but none worked.
An example of what I tried was awk '!/#/' file.txt > newfile.txt
In all cases, the file...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.