Windows 10: start line - end line to output file (BAT script)

Discus and support start line - end line to output file (BAT script) in Windows 10 Support to solve the problem; input.txt it is a text file with 10 lines in it one two three four five six seven eight nine ten i want to create a text file from line 3 to 7 it... Discussion in 'Windows 10 Support' started by Feuer, Sep 30, 2020.

  1. Feuer Win User

    start line - end line to output file (BAT script)


    input.txt
    it is a text file with 10 lines in it
    i want to create a text file from line 3 to 7
    it will be output.txt

    i want to know, how i can create a file that getting lines from another file with start line and end line arguments with a batch script?

    it was just an example
    i have a file with over 200 lines in it, i want to get 54 lines from it and make an output file

    more command; you can skip lines so you can set a start line, i will skip 2 lines with this command, the output file starts with 3rd line, but i do not know how i can give an end line

    more /e +2 input.txt > output.txt

    :)
     
    Feuer, Sep 30, 2020
    #1

  2. BAT file/Script to find and replace files

    Hey all....

    Can someone help me make the BAT script in the 2nd post above to be able to use MORE than "1" file?
    As it currently is, you can only replace one particular file.

    For example, I want in the command line to be able to write two files or more, and the script will find and replace all those 2 or more named files.
    Thanks much.

    P.S.... Is there a GUI that does file searching and replacing?
    I've spent hours searching on the net, and the only thing I can find are "text" search/replace and this BAT command, not actual "file" replacing. I find this amazing. *Frown start line - end line to output file (BAT script) :(
     
    leeuniverse, Sep 30, 2020
    #2
  3. BulldogXX Win User
    I want to add a comma at the end of every line

    • Click anywhere in the first line.
    • Press the End button on your keyboard.
    • Press the comma button on your keyboard.
    • Press the downward pointing arrow on your keyboard.
    • Press the End button on your keyboard.
    • Press the comma button on your keyboard.
    • Repeat steps 4 - 6 over and over until you reach the last line.
    If adding a comma at the end of a line causes the line to wrap, adjust the number of words in the line.
     
    BulldogXX, Sep 30, 2020
    #3
  4. Lucasonas Win User

    start line - end line to output file (BAT script)

    BAT file/Script to find and replace files

    FordGT90Concept!!!

    Your attachment is very close, it kept all the 5 numerals intact, but like you said: "it will rename them all from "#_Example_720p.zip" to "RAT_Example_#_24f_ONO.zip"...

    Greetings, Streetfighter 2

    I can't seem to get the BAT to work, but I'll still keep on trying.


    Any other suggestions, or BAT scripts Streetfighter & FordGT90Concept?
     
    Lucasonas, Sep 30, 2020
    #4
Thema:

start line - end line to output file (BAT script)

Loading...
  1. start line - end line to output file (BAT script) - Similar Threads - start line end

  2. Change the Proxy script address with command line

    in Windows 10 BSOD Crashes and Debugging
    Change the Proxy script address with command line: I would like to change the Proxy script address value with command lineI have a script address , sometime I need to change this address . I want to write a bat file to change this value. but I don't know the command of about value . Thank you....
  3. White line at end of taskbar removal

    in Windows 10 Customization
    White line at end of taskbar removal: Is there anyway to remove the "Peek" line on the taskbar image below that doesn't involve scaling? I have an LG CX OLED so burn in is a minor concern. When I have the taskbar set to hidden I can still see the line, it never goes away. I tried removing it with scaling but this...
  4. Bat script to select a folder and update the path in a bat file

    in Windows 10 Support
    Bat script to select a folder and update the path in a bat file: How do I combine this scripts? i want the highlighted folder path to been passed in to the script that's been generated (rensa_datafiler.bat) Its begins with you select a folder: @Echo off Title Folder Selection echo( Select folder . . . call:FolderSelection "%SourcePath%",...
  5. BAT output

    in Windows 10 Software and Apps
    BAT output: Hey guys! I want to get a reg output file from a bat file I will run x.bat it will give me x.reg Everything seems to be ok. But i want double \\ character for path entry and it gives me one \ character and i dont want the last \ character too bat script and the outputs...
  6. *.bat -files not starting!

    in Windows 10 Gaming
    *.bat -files not starting!: I have a friend that wants to host a Minecraft server for a few friends, and we put "java -Xmx1024M -Xms1024M -jar server.jar nogui" in "Start.bat" in a folder, but nothing happens when we start the file server.jar is also in that folder! He has Java installed and Windows 10...
  7. Script to add the contents clipboard on a particular line of ini file

    in Windows 10 Support
    Script to add the contents clipboard on a particular line of ini file: I have O&O Registry Editor. It uses an ini file, to remember the last opened registry key. I would like to have a script that would copy the contents of the clipboard to the line called: LastAddress= I've researched modifying ini files, but don't know the way to copy &...
  8. How to compare files with different line endings

    in Windows 10 Network and Sharing
    How to compare files with different line endings: I have two versions of a software package. These are php files so normally I compare them with the directory compare function of Winmerge. However, in this case on of the two has Windows line endings crlf and the other unix lf. So Winmerge concludes that every line is...
  9. Line in is outputting to both rear line out and front line out

    in Windows 10 Ask Insider
    Line in is outputting to both rear line out and front line out: How do I prevent it from outputting to both? I want to switch outputs based on the current output device selected. Muting line in under speaker properties mutes it for both. I had "Listen to this device" checked before and muted the speaker and manually changed the output...
  10. Windows 10 taskbar refresh from command line or BAT file.

    in Windows 10 Performance & Maintenance
    Windows 10 taskbar refresh from command line or BAT file.: So, I have a task that I run that restarts a program every time I log on, switch to a user, etc. I notice that it leaves the icon from the previous instance of the program in the Taskbar Notification area. When I click on the arrow, and mouse over the icon, it quickly...