[Typo3-UG CH] deleting a line in a file with script

Chris Zurlinden typo3 at zurli.ch
Fri Apr 16 10:10:50 CEST 2004


Iam looking for a simple script, deliting a whole line from a file
the idea

i got a file test

content of test is
hello word
how are you today
not bad

now i would like to delete the line how are you today
but i would like to search first for a string like " you"

so i would start the script like this

#!/bin/bash
echo -n "searchstring : "
read name
grep $name /tmp/test
?delete the line?

thanks for any help





More information about the TYPO3-ch mailing list