Re: how to us sed on multiple files ?

"Thierry Blanc [email protected] [sed-users]" <[email protected]> Mon, 11 Feb 2019 09:23:35 +0700
Newsgroups gmane.editors.sed.user
Message-ID <[email protected]>
Generally, it is the -i and -s option:
-i     for in place change
-s    treat files a single files

if you have your list of files in a file itself, you can use

while read -r file
do
.... sed ...  "$file"
done < your_file_with_filenames




On 10/02/2019 17:49, [email protected] [sed-users] wrote:
> hi everyone,
>
>  
>
>
>
>  i have many files and they all need a sed script to be applied and the filenames must stay the same. i was not able to find an example on the web or in the documentation so please help me out here.
>
>  
>
>
>
>  thanks in advance,
>
>  alex fessler
>
>
>
>  
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
> Posted by: [email protected]
> ------------------------------------
>



------------------------------------

------------------------------------

-- 

------------------------------------

Yahoo Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/sed-users/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/sed-users/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo Groups is subject to:
    https://info.yahoo.com/legal/us/yahoo/utos/terms/