[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: SED help........



Incoming from Ralph Crongeyer:
> 
> I need some help with SED. I'm trying  to insert a "command"/text at the 
> beginning of every line from one file and output to a new file like this:
> 
> sed 's/.*/clamscan -ri -l /var/log/clamav/clamav-"$1".log 
> /var/log/clamav/virus_scan

BTW, this is _debian-user_, not sed-user.

Try something simpler, and work up from there:

  sed 's/^/blah/g' < infile > outfile


-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)               http://www.spots.ab.ca/~keeling 
- -



Reply to: