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...
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.