replacing linein with sed