Forum archive
Trivial question about sed command for a TKLPatch
Students are working on TKLPatch bundle for Ampache. We're stuck on what we think should be accomplished with sed: We want to insert a line in usage.txt with "Samba: \\$ipaddr\media."
I'm using two reference books and not finding a solution that works.
I'm pretty sure we start sed -i - I then need a regular expression to direct it to a line number maybe?
sed -i '3 /Samba:....' \a usage.txt
Is the closest I can get, and it seems far off. How do I direct it to a blank line? Do I need to escape blank spaces backslashes?
Our original draft had us placing a revised usage.txt in the overlay folder, but I figured a bash manipulation would be the preferred method.
Any feedback would be appreciated...