Results 1 to 3 of 3
I have a file containing n table names and corresponding column name separated by white space(tablename fieldname).I want to traverse line by line taking each table name and corresponding field ...
- 12-06-2007 #1Just Joined!
- Join Date
- Dec 2007
- Posts
- 4
Shell Script for file manipulation
I have a file containing n table names and corresponding column name separated by white space(tablename fieldname).I want to traverse line by line taking each table name and corresponding field name and then execute an update query in the database.All I need is how do I read the file line by line.When I echo'ed the file in a for loop it seems it displays all the tables in one iteration.Can anybody help on this.
- 12-06-2007 #2
sed '52q;d' replace 52 with the line number you want. other combination is possible to loop other the file.
let me now if you need more information.Linux is not only an operating system, it's a philosophy.
Archost.
- 12-07-2007 #3Just Joined!
- Join Date
- Dec 2007
- Posts
- 4
thx
Thanks I used "awk" to accomplish the task.thx for the help


Reply With Quote