Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
extracting data from ascii files
Name: gavram Date: January 18, 2008 at 06:37:07 Pacific OS: linux/fedora CPU/Ram: ? Product: dell
Comment:
i have ~100 data files which contain ~10000 rows - the files are slightly different size. each row contains various data values including a unique number (id) in column x which identifies the source which the data refers to. I want to extract a whole row if id= a specific number. i then want to do that for all 100 files to get a file which gives all the data for that id. any idea how i do this using a combination of, say, cshell, awk and sed commands?
Name: jefro Date: January 18, 2008 at 15:37:21 Pacific
Reply:
When I have to do that I try to write it down in plain words such as you have above and then try to break it down in parts. I then use those parts for the commands.
Important parts of what you said.
Be sure you know your shell be it bash or what not.
-from files (or create file that contains all the file names if you wish.) -ascii -search each line using delimiter. Save delimiter in holding area of like delimiter being id= if changes. -take line to some working area or even the final file.
I could do it maybe but it sounds like too much work.
I read it wrong and answer it wrong too. So get off my case you peanut.
Summary: Hello, I have a text file on the disk. The contents of the file are all characters from ascii value 33 to 250 (except the numbers 0..9). I have a Java program which reads this file and displays the co...
Summary: Hello, The problem that i've got is that i need to read an IP adress from a file. The structure of this file is made so that each line has got one IP-adress. I need to read the IP-adresses line by lin...