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.
Script to Read a .CSV file
Name: Marupilla Date: April 19, 2007 at 17:52:12 Pacific OS: UNIX CPU/Ram: 512
Comment:
I am looking for a simple script for reading the contents of a file (.CSV) for a Specific String and if it finds, it shuld rename the File accordingly.
2. The script shuld be able to get the number of new line or record count on the .CSV file
Name: ghostdog Date: April 21, 2007 at 19:59:02 Pacific
Reply:
what have you tried? if its just looking for a specific string, you can use the normal tools like grep,sed,awk etc. to get line count, you can use wc -l
0
Response Number 2
Name: thepubba1 Date: April 23, 2007 at 19:18:46 Pacific
Reply:
A couple of weeks ago, I posted a script to compare the contents of 2 files and to print out the line number of any entry that was not in the second file. Using that logic, you should be able to develop a script to do what you want. Take a look at the script, modify it, and if you can't get something to work, post what you've created and the people on this forum will help you finish it.
Summary: Hi, I am trying to read a file which has two fields i.e tab seperated. Each line has an OldImage Name and a NewImage Name. Can anyone help me to write a shell script which reads the file and changes t...
Summary: Hi! I would like to get some help with my script which will read a command file,execute each command and send output to a file. My problem is how to get the script to search for a specific line in the...
Summary: Hi Gurus, I have 2 files--1.txt & 2.txt both have lots of filenames. Ex:1.txt has (a.txt b.txt c.txt,...as separate lines) 2.txt has (d.txt,f.txt,... as separate lines). Both won't have same names....