For I In Cat File Line By Line

























































We make it easy to resize photos without installing any software. $ cat somefile. Yesterday, I needed to extract the first line of a file, say named somefile. Customer service is the bottom line at C. Bash Read File line by line. We only accept online or phone applications for a Personal Loan or Line of Credit from customers who have an existing account with us. This function first determines the number of lines in the file, then uses sed to extract line after line, and passes each line as a single string argument to any given function. The following settings are supported in the config file. Complete a separate line for each firm. Call our toll-free phone number or chat online. The need to get/print a particular line of a file on the Linux shell is a common task. power from on high for our nation today. 0, the WinZip Command Line Add-On can be used to unzip any of the archive types that are supported by WinZip. Enter the result here and go to line 6: 5. Your Catholic Voice Foundation has been granted a recognition of tax exemption under Section 501(c)(3) of the Internal Revenue Code. The number of bytes actually returned to the user will be the lesser of:. To read from a file (or a URL), pass it a quoted string with the name of the file or URL you wish to read; to read from the terminal, call scan() with no arguments, and enter a completely blank line when you're done entering your data. Code, Example for drawing house line by line in C++ Programming. , now, 1st file will have 99 lines and 2nd file will have 100 lines, ifthe above 2nd condition does not repeats. Frozen 2 stars Jonathan Groff and Josh Gad take the WIRED Autocomplete Interview and answer the internet's most searched. Nov 18, 2019 · Power Line Systems was founded in 1984 to provide consulting services and develop engineering software for the structural and geometric design of electric power lines. foo ice two cat file2. The command-line switch used for this feature is +line,column (line determines the line number, whereas column determines the column number). Not until today did I understand the difference between readline() and readlines(). If you want maximum flexibility, sed or perl is your best bet. Line quality is the thickness or thinness of a line. In the following example code we have used the BufferedReader class which contains a method readLine() for reading one line of data one by one. Install Cygwin by running setup-x86_64. SKIP includes empty lines, but after the SKIP is complete, FOR /F ignores (does not iterate) empty lines. This SQL*Loader control file defines the columns to be loaded and instructs the loader to load the data line by line from loader2. Python is magically smart enough to understand that it should break files into lines. We and our partners use cookies to personalize your experience, to show you ads based on your interests, and for measurement and analytics purposes. Output is data that is produced by the program. a file a line at a time and bumps x by 1 for each line in file tmpstn: #!/bin/csh set x = 0 foreach line ("`cat tmpstn. Hello, I am trying to wrote multiple lines to a file, but I only seem to be able to write the last line. Two argument values read by the following script and prints the total number of arguments and the. Mar 26, 2009 · $ cat demo_file THIS LINE IS THE 1ST UPPER CASE LINE IN THIS FILE. Specify the INFILE statement before the FILE statement. Click on horse names for equineline. This utility can be used to delete expressions from a file which can be identified by a specifying. Nov 16, 2009 · Powershell – Part 2: Opening files, writing to the screen, the pipeline, and dot values 5 Comments Posted by Tome on November 16, 2009 I have found that a great place to start learning a scripting language is by writing scripts to solve word problems. -i --ignore-case Ignore case differences in file contents. Search for jobs, read career advice from Monster's job experts, and find hiring and recruiting advice. exe -l 'file with lines to count. path, and the file is executed as the __main__ module. Printing Lines from a File using sed. cat foodtypes. Nov 30, 2019 · A data breach at Mixcloud, a U. How to read complete line in 'for' loop with. The syntax is: while [ condition ] do command1 command2. txt This is an example of adding text to a new file using cat command. ) This will do the job. A discard file filename specified on the command line becomes the discard file associated with the first INFILE statement in the control file. Convert multi-page image file to multi-page PDF. In this form the next line read is stored in the named variable, and the length of the line is returned, or -1 or end of file. Our use of piping output to a while loop works the same way; the output of the cat command is used as input to the while loop and is read into the LINE variable on each loop iteration. CatAdjuster. MSC is a world leader in global container shipping and a company that prides itself on offering global service with local knowledge. txt 1 Protein 2 Carbohydrate 3 Fat cat foods. Learn More Free Pickup in 2 hours Online orders filled fast at any store Learn More Free & Easy Returns. Standard Aliases for Get-Content: cat, type, gc Get-Content gets the content of the item at the location specified, such as the text in a file. Contains new posts since last visit. How can I use Windows PowerShell to read only the first line of a file? Introduced in Windows PowerShell 3. Reset Password. --ignore-file-name-case Ignore case when comparing file names. Not until today did I understand the difference between readline() and readlines(). exe (32-bit installation) Use the setup program to perform a fresh install or to update an existing installation. On failure, file_get_contents() will return FALSE. To use cat, simply type cat and the file name: [email protected]:~$ cat my_file. Two argument values read by the following script and prints the total number of arguments and the. LINE is a new communication app which allows you to make FREE voice calls and send FREE messages whenever and wherever you are, 24 hours a day!. " The second line then reads the first line of that file object and assigns it to a string variable, "line. If you do wish to modify the file you can manually add line numbers to a text file via command line. sed - 10 examples to print lines from a file In this article of sed series , we will see how to print a particular line using the print(p) command of sed. Reading text file line by line and do some operations - Windows Batch File « on: June 12, 2017, 10:35:08 PM » What I am trying to do here is to parse every row in filename. The output may go to the screen, to a file or to another program. To get started, get to the Terminal and you'll want to do the following at the command line prompt: Using cat to Add Line Numbers to a Text File. I suppose this might get really inefficient with large files, but that hasn't been a problem for me so far (suggestions on how to improve this welcome of course). But if you for whatever reason wanted to read this file from a script and assign the whole release information line to a Unix variable, using cat output would not work as expected:. Africa, Middle-East. • If line 1 is more than line 4, subtract line 4 from line 1. KMODDL is the Kinematics Models for Design Digital Library developed at Cornell University. "Gross income from all sources" is a constant amount (that is, you will enter the same amount on line 3e of all Forms 1116 that you file). In the previous post, we talked about bash functions and how to use them from the command line directly and we saw some other cool stuff. This tutorial is available for download so you can work offline. com Report options Stakes results listed in order by the grade of the race and then by purse amount. I get as far as: file=`cat data. Why is cat or "for blah in cat xyz" doing this and how can I make it NOT do this? I know I can use a. $ cat sample. For commercial purposes, get our Single, Yearly, or Lifetime Commercial Licenses. Use a line chart if you have text labels, dates or a few numeric labels on the horizontal axis. Wrap your code ina try-except block to catch the FileNotFound error, and print a friendly message if a file is missing. txt","file2. Learn about the default text editor, vi, pronounced as ”vee eye”, in Unix, Linux and other Unix like systems. This is actually a perfectly valid regex. Secure Professional Online File Sharing, Storage, Editing for professionals. txt unix or linux os is unix good os is linux good os 1. We bring all your team’s content together while letting you use the tools you love. Here, you can see that it says “New File. Store at least three names of cats in the first file and three names of dogs in the second file. As a simple exercise you can replace this command with a call to the line counting script above. Two argument values read by the following script and prints the total number of arguments and the. With "Anonymous View" you can visit search results in full privacy, and keep on browsing: They’ll never know you were there. To view and print bus schedules, please click on calendar icon for each line. Additionally, version 4. For example, say my text file contains: Christmas Eve Christmas Morning New Years Eve So from my bash script I would like to be able to read eac. The syntax is: while [ condition ] do command1 command2. This command is designed to trap events on file descriptors (inputs and/or outputs, files, socket and/or net sockets). org/questions/programming-9/bash-read-entire-file-line-in-for-loop-240016/. It continues until the end-of-file condition is reached on file1, then it stops. Line of people (5) QUEUE: Waiting line (5) Wait in line (5) Netflix list (5) A line of people (5) Stand in line (5) Line of people (4) FILE: Put on record (4) Dossier; line of people (4) Computer menu heading (4) Submit one's taxes (4) Set of written records (4) Manicurist's tool (4) Folder; line (4) Arrange in a cabinet (4) Store in a folder (4) Do a clerical job (4). In Unix, to get the line, word, or character count of a document, use the wc command. Check out these code snippets that demonstrate how to read and write files with Tcl programming language. which will eventually render into a table. If you can't pre-determine where the blocks will be, just don't try. Simply replace “file” with the file name you want to add line numbers to, and change “file_name” to the exported name. Then: It displays the values of each line after the line number. Your trusted destination for welding resources, helpful support and high-performance products for all of your welding projects. Linux Curl command is very amazing. These options include sub-categories, file formats and data extent. Here we can print 4th line. hey all, im new at shell scripting and need to find out a simple way to create text files, with random words in them. RDF data can be stored in XML and JSON, among other serializations. FREE with a 30 day free trial. Next, as we are looping through each line of the file we use myList. A command-line installer, with optional GUI front-end, (mingw-get) for MinGW and MSYS deployment on MS-Windows A GUI first-time setup tool (mingw-get-setup), to get you up and running with mingw-get. This is only counting the lines of a text file as input and it does not modify the file at all. MIT OpenCourseWare makes the materials used in the teaching of almost all of MIT's subjects available on the Web, free of charge. The program below starts the unix program ‘cat’ and the second parameter is the argument. txt" file under the same directory with your script. The for loop first creates i variable and assigned a number to i from the list of number from 1 to 5. The site provides information and resources through a collaborative effort from the membership, adjuster to adjuster. Does anyone know of a simple one liner to read the first line of a file in bash? Stack Exchange Network Stack Exchange network consists of 175 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. Writing a Perl replacement of the Unix grep command does not have much value, unless you do something much better , or if you want to reimplement the Unix commands in Perl. file = open("testfile. Each line in loader2. GET_LINE specifies the requested number of bytes of character data. exe to read from standard input until it sees my special designated string "EOF" at which point sort. With AT&T you’ll also enjoy 99% reliability 2 and experience fast speeds, even at peak times, when you need it most. txt This is sample file This is normal text file Source: $ cat readfile. One difference between using this command and the cat command we covered in the last section is that, while the cat command lets you enter text into your file immediately, using the touch command does not. txt # Wrong way to read the file. And here it is using Select-String in PowerShell: sls the. Echo commands as they are executed. Python Tips – Reading Text Files, Working with dates, the command line In this post let’s talk about two Python tutorials I put together. , grep, and cat. The foreach loop at the end of the script calls Dos2Unix with each file given on the command line:. If you specify multiple input files, the name of the current file precedes each output line. Examples on how to use the command line tools in Avro Tools to read and write Avro files. May 19, 2019 · H ow do I read a text file line by line under a Linux or UNIX-like system using KSH or BASH shell? How do I read a file line by line in bash script? You can use while. Reading the file using OS will see a row like this and stop reading at the crlf. txt" and to put in destination MONTHLY_YYYYMM. Not sure how to do this exactly. Viewing the contents of tar files Often you will see software distributed as a gzipped tar file. Nov 16, 2009 · Powershell – Part 2: Opening files, writing to the screen, the pipeline, and dot values 5 Comments Posted by Tome on November 16, 2009 I have found that a great place to start learning a scripting language is by writing scripts to solve word problems. Append PDF to an existing PDF file. I Insert text at the beginning of the cursor line. This is by far the easiest method: cat -n file > file_new. We cater to dogs of all sizes and carry all the goodies your dog will love. To read a file line by line, output into a list: w ith open(“hello. If you wanted to create a new file that contained just the username (field 1) and the user ID (UID), which is the third field in each line, running "cut -f 1,3 /etc/passwd" would not accomplish this since the cut command is using the default field delimiter (the tab character). If any line has more than. I have a file with lines of data I'm looping through. cat command allows us to create single or multiple files, view contain of file, concatenate files and redirect output in terminal or files. Interactive Map CatTracks Updates. Snow Line: Gameplay; Help Santa Claus collect the presents ready for delivery on Christmas Eve. In the following article, you’ll find an information about how to add some text, character or comma to the beginning or to the end of every line in a file using sed and awk. Specify the same fileref or physical filename in each statement. It includes open access, multimedia resources for learning and teaching about kinematics – the geometry of pure motion – and the history and theory of machines. sh” and add the following script. done bash loop to read file line by line on a Linux, OSX, *BSD, or Unix-like system. ” Lastly, the final two rows at the bottom are what make this program very user-friendly: the shortcut lines. Sep 01, 2019 · Unix utility SED provides an effective and versatile way of deleting one or more lines from a designated file to match the needs of the user. The next steps in the wood RetroTread stair remodel are: Remove the carpet, underlayment, tack strips and staples. Get the line, word, or character count of a document in Unix. Writing text to file $ cat > sample. The process. Otherwise, it returns the line of text, including the trailing newline character. And here it is using Select-String in PowerShell: sls the. § 1212(F) by increasing the reinstatement fee for a sus-pended corporation from $15. Input is any data that is read by the program, either from a keyboard, file or other programs. power from on high for our nation today. Parts that works as hard as you do. I want to to extract only "file_size=8452858 rows_count=29339" from the below line. LoveSVG offers daily unique SVG cut files for your personal DIY projects. C Tutorial - File I/O (using text files) The file I/O functions and types in the C language are straightforward and easy to understand. a file a line at a time and bumps x by 1 for each line in file tmpstn: #!/bin/csh set x = 0 foreach line ("`cat tmpstn. File a claim for disability compensation for conditions related to your military service, and manage your benefits over time. Mar 26, 2009 · $ cat demo_file THIS LINE IS THE 1ST UPPER CASE LINE IN THIS FILE. Below I will show 5 example for loops that are run on the command line without being placed into a shell script. We offer a fast yet easy way to deliver and receive any file size in the cloud. Skype for Xbox One makes. sh #!/bin/bash i=1; FILE=sample. Aug 23, 2015 · Ksh Read a File Line By Line ( UNIX Scripting ) last updated August 23, 2015 in Categories AIX , HP-UX Unix , KSH Shell , Linux , OpenBSD , Solaris-Unix , UNIX H ow do I read a file line by line using KSH shell scripting under UNIX like operating systems?. This tutorial provides few practical examples of cut command that you can use in your day to day command line activities. It's an interactive Unix filter for command-line that can be used with any list; files, command history, processes, hostnames, bookmarks, git commits, etc. The file name will be test_201602. In this short config we will show a multiple options on how to remove a first line from a text file. Using -synchwindow 0 will cause the differences to be emitted as they occur but stops it from trying to re-synchronise so if one file has an extra line then subsequent line comparisons can fail even though the files are otherwise identical (until there is a compensatory extra line in the other file thereby realigning the matching lines). Since then Power Line Systems has become the world-wide leader in software for transmission lines. Press Ctrl+d on a newline to save and quit. The Home Depot Delivers Just say when, where and how. How to quickly remove line breaks in Excel? Sometimes, when you copy some data from the website or you separate your values with Alt + Enter keys, you will get some line breaks or carriage returns, if you want to quickly remove multiple line breaks in Excel as following screenshots shown, you can get it done as follows:. The right foods, products, and accessories increase their physical, mental, and emotional well-being. This article is about finding certain strings in a file, just as the command-line grep does. GET_LINE specifies the requested number of bytes of character data. grep ^foo file); or you might want to use file redirection (eg. Writing text and output from analyses to a file Problem. Nov 18, 2019 · Power Line Systems was founded in 1984 to provide consulting services and develop engineering software for the structural and geometric design of electric power lines. This select set of Linux commands can help you master the command line and speed up your use of the operating system. Why is cat or “for blah in cat xyz” doing this and how can I make it NOT do this? I know I can use a. Below are three great ways to get the nth line of a file in Linux. Browse by alphabetical listing, by style, by author or by popularity. txt file is:. Does anyone know of a simple one liner to read the first line of a file in bash? Stack Exchange Network Stack Exchange network consists of 175 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. A Perl script that shows how to print one specific line from a text file. One this page you can find a simple guide to reading and writing files in the Java programming language. At the Unix shell prompt, enter: wc filename. FTP uses the Telnet protocol on the control connection. There's some fixed items that will always be there, name, age, etc, and then the final item(s) is their pets which can have a varying amount of items. o Open up a new line following the current line and add text there. As you can see, there's only one line in the /etc/redhat-release file, and we see what this line is. Reading text file line by line and do some operations - Windows Batch File « on: June 12, 2017, 10:35:08 PM » What I am trying to do here is to parse every row in filename. Online image resize utility to resize pictures or photos and images quickly for free. Below I will show 5 example for loops that are run on the command line without being placed into a shell script. Writing text to file $ cat > sample. Input: $ cat sample. Direct Line general insurance policies are underwritten by U K Insurance Limited. On my test machine, using a 10 megabyte sample text file, this script reads about 32,000 lines per second. 7 There are at least three different ways to go to a particular line (line 42 for example): 42G 42gg :42CRif you have a command that execute the line under the cursor as vim command, then. Line can also indicate shadow and form through the use of cross contour lines. Specifying Preferences at the Command Line In addition to the command-line switches described above, the value of any IDL preference can be specified at the command line using the following syntax:. (In this code, the variable FILES_FOUND contains a list of filenames which I found earlier in my script, and those filenames can contain spaces. Merge Multiple files into One in Order. If you do wish to modify the file you can manually add line numbers to a text file via command line. Oct 26, 2016 · SQL – How to insert new line/line break in string Wednesday, 26 October 2016 Wednesday, 26 October 2016 by Adrian Gordon If you’re building a string using an SQL statement, you can use CHAR() to insert the ASCII character for a line break into your string. Example: In May 2016 it has to read Apr 2016 and on Jan 2016 it will be Dec 2015. Read file from command line. The < sample-input is file redirection. , grep , and cat. Thingiverse is a universe of things. Empty a text file from the command line. In Unix, to get the line, word, or character count of a document, use the wc command. One benefit of using double quotes is that the string can have a single quote character in it. Create custom t-shirts, personalized shirts and other customized apparel at Spreadshirt. In the following example, the sed command removes the first line in a file. If a chunk/line-block is less, just do it sequentially. Ksh Read a File Line By Line ( UNIX Scripting ) last updated August 23, 2015 in Categories AIX , HP-UX Unix , KSH Shell , Linux , OpenBSD , Solaris-Unix , UNIX H ow do I read a file line by line using KSH shell scripting under UNIX like operating systems?. " There is nothing unusual here, only a set of commands that could just as easily have been invoked one by one from the command-line on the console or in a terminal window. If any line has more than. This function first determines the number of lines in the file, then uses sed to extract line after line, and passes each line as a single string argument to any given function. If you live in an apartment or condo, Google Fiber’s ability to construct and provide Fiber is subject to the continued agreement between Google Fiber and the property owner. Drive Types: List all drives connected and corresponding types, i. Bash Read File line by line. How can I write a here doc to a file. When the checkbox next to the dataset name is checked, more options appropriate for each dataset are displayed under "Product Search Filter". with the cursor, and the line above for a filename and line number. exe (64-bit installation) or setup-x86. Welcome to Ohio’s Regional Income Tax Agency — RITA — with a website designed to make your municipal tax administration service more easily accessible and navigable online. grep -n "my string" file_name will do for your particular query. Headliners are KISS, Iron Maiden & System Of A Down plus Deftones, Gojira, Korn, Volbeat, Babymetal and many more. We will cover mostly the cat command in this post. New TWD Spinoff's. Double-click on the downloaded archive to expand the contents. Wufoo's online form builder helps you create custom HTML forms without writing code. Fiverr's mission is to change how the world works together. txt file is:. A Append text to the end of current line. C program to copy contents of one file to another file; Program to print last 10 lines; Program to delete a line given the line number from a file; C program to count number of vowels and consonants in a String; C++ program to create a file; C program to delete a file; LEX program to add line numbers to a given file; C Program to print contents. Orange button select item for download. The cat command in Linux concatenate files and displays the output to the standard output (usually, the shell). For example, the H atom line list is in file c001001. txt This is an example of adding text to a new file using cat command. In this part of the Ruby tutorial, we will talk about input & output operations in Ruby. This line is read as "open or die," which sums up how you will usually want your program to handle the situation when a file can't be. -i --ignore-case Ignore case differences in file contents. By default PowerShell will read the content one line at a time and return a collection of System. Tagged - The social network for meeting new people The social network for meeting new people :). Here are some examples of how to read text files in Java using long method and also shortcuts in recent Java version. The process. The latest from PS Audio, an all discrete FET phono preamplifier that will change the way you listen to vinyl. For our program, we want to pass the names of the files to process on the UNIX command line (i. Sep 17, 2009 · 1) cat. To know History is to know life. Below is batch file content having nested FOR loop. Note: if the file is very large or is not a plain text file, cat will try to print it to the screen anyway, sometimes with undesirable results. In the following example, the sed command removes the first line in a file. I showed previously how to do it using sed and perl. Save 61% on UK Rail Search train times Get the app 200+ operators. Displays your current location in the file system cat: Displays the. Great prices and Fast Shipping!. txt", "r") print file. In this short config we will show a multiple options on how to remove a first line from a text file. This tutorial is available for download so you can work offline. Top Ten Reasons not to use the C shell Csh problems Csh Programming Considered Harmful. com deliverance manual. Pipes allow you to redirect output from one command into another. In-line definition is - having the parts or units arranged in a straight line; also : being so arranged. Hi All, I need small help on for loop syntax in C shell. Weekly Resource and Activity sections - learn then put into practice. The order in which the file names are specified in the command line dictates the order in which the files are merged or combined. Feb 19, 2012 · How do I tell the standard sort. This tutorial is available for download so you can work offline. Server would be any server like end point URL, ftp endpoint, etc. This is the concept that is used in the above for5. This is raised when an unrecognized option is found in the argument list or when an option. Welcome to Microsoft Support Welcome to Microsoft Support What do you need help with? Windows. cat command allows us to create single or multiple files, view contain of file, concatenate files and redirect output in terminal or files. Aug 15, 2018 · I think best example of find command in unix is finding files by modified time, creation time etc. How about a great name for your Burmese Cat, Bantam or Python? Our own list of terrific Burmese Names! JAPANESE NAMES Our own on-line list of Japanese male, female & family names plus a whole lot of links to thousands more names! JAPANESE PLACE NAMES Our on-line great list of names of Cities and Districts in Japan. If your file is small, you can simply read all of the file synchronously and split the result string like this: [code] require('fs'). Go to File/Line. If IFS is set to a non-default, non-whitespace value, there would be no trimming. With more than 2,400 courses available, OCW is delivering on the promise of open sharing of knowledge. This command will open the syslog log file to the top. In this tutorial we will go over how to read file line by line and then perform curl operation to get HTTP. Upload your documents in any format. How To Read a File Line by Line Common Errors with For Loops One of the most common errors when using scripts bash on GNU/Linux is to read a file line by line by using a for loop (for line in $ (cat file. To begin with, consider a file cuttest. The files are free for personal use. The first line opens it and initiates a file object, "fileIN. In this part of the Perl tutorial we are going to see how to read from a file in Perl. Select desired options. Parts that works as hard as you do. txt' > 'file where line count is written. org/questions/programming-9/bash-read-entire-file-line-in-for-loop-240016/. net demonstrates how to remove the contents of a plain text file on Windows, Linux. Sep 23, 2013 · This uses the Unix pipe (|) symbol to connect the output of the cat program, which just prints the contents of the file, to the sed program, which we use to delete the first line. Output redirection of your shell is used (>) to write it to a new file. First, we opened source file c:\temp\test3. Walgreens is your home for Pharmacy, Photo and Health & Wellness products. Immediately, you have solved problem #1 and can avoid using the up arrow repeatedly, looking for your last compile command. Following is the syntax of the command:. You can also use wc to count lines of any data piped into it, for example from cat or ls:. In the following article, you'll find an information about how to add some text, character or comma to the beginning or to the end of every line in a file using sed and awk. I want to output a text file assembeld from various soruces within r ( actually as a. Sort command by default treat each line as string and then sort it depending upon dictionary occurrence of alphabets (Numeric preferred; see rule - 1) until otherwise specified. ) AT&T Internet is #1 in customer satisfaction over other major cable Internet providers 1. Press Ctrl+d on a newline to save and quit. Note : When more than file name is specified in argument then command will display four-columnar output for all individual files plus one extra row displaying total number of lines, words and characters of all the. The Best Disney Cupcakes. While Read Line - Processing a single file containing ~3 million lines, took over 50 hours (ended up giving up after that point). Jan 18, 2013 · Reading CSV Files. Dec 12, 2006 · Adopt 10 good habits that improve your UNIX(R) command line productivity -- and break away from bad usage patterns in the process. Reading text file line by line and do some operations - Windows Batch File « on: June 12, 2017, 10:35:08 PM » What I am trying to do here is to parse every row in filename. $ cat testfile even number odd number odd number $ sed -e "2,3 s/number/1/" -e "1 s/number/2/" < testfile > testchangedfile $ cat testchangedfile even 2 odd 1 odd 1. txt file and then run 2nd FOR loop to output it into another text file.