how to select a particular line from a file and assign it to a variable?
R 468bf89188632e67cd268d0b1a24833c10056b34 [13] 840 (13920) kind=7
R c7465b12162ae2c0a4601ba7895f154f38df1a69 17669
R 604775f0f7326e42e853359f64b2f5585d8f3551 24069
R df03a22135c735b59753cee0c8f4a8e4cac9f032 28528
R 5639c31a86ed9735a0c654510d1038620a85ab92 43007
R 519e896e36dff8dfd32a4bcfc2afac0d360ed1e4 67924
the above is how the file looks like. From the file i want 3rd row, 2nd column to be assigned to a variable.. can u let me know how to do it?
value=604775f0f7326e42e853359f64b2f5585d8f3551
thanks
Last edited by pdklinux79; 06-17-2008 at 02:15 PM.
|