Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Michaeljc70

    Unknow number of parameters for batch file

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

    Remove all lines that start with #

    I found a version of SED and used that. Worked and I can use wildcards. Thanks
  3. Michaeljc70

    Remove all lines that start with #

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

    Remove all lines that start with #

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

    Remove all lines that start with #

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

Part and Inventory Search

Back
Top