| Newsgroups |
gmane.editors.sed.user |
| Message-ID |
<[email protected]> |
Here is a related way to do it, from within a shell script:
file_list="file1.txt file2.txt file3.txt"
for file in $file_list; do
echo "Working on $file ..."
sed "s/\<hello\>/howdy/" $file > /tmp/temp.x
mv /tmp/temp.x $file
done
On 2/10/2019 2:49 AM, [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/