i want to read just the second line from a file and replace it other. Basically updating the file if needed.
i am replacing using 'sed'.
But i need to check the condition whether there is a need to update.for that i need to read the 2nd line frm the file...how do i do it????