# Replace string in file with another in multiple ads.txt files

**URL:** <https://community.unix.com/t/replace-string-in-file-with-another-in-multiple-ads-txt-files/395116>\
**Category:** Ubuntu\
**Created:** [August 24, 2024, 8:59pm UTC](https://community.unix.com/t/replace-string-in-file-with-another-in-multiple-ads-txt-files/395116 "2024-08-24T20:59:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nosaj](https://community.unix.com/letter_avatar/nosaj/32/6_22734026db12803ebb3e059622ac3534.png) [@nosaj](https://community.unix.com/u/nosaj)\
**Post date:** [August 24, 2024, 8:59pm UTC](https://community.unix.com/t/replace-string-in-file-with-another-in-multiple-ads-txt-files/395116/1 "2024-08-24T20:59:29Z")

</div>

I have a website where i need to replace a string in ads .txt i have ssh access but it seems there are multiple ads .txt  
How might i best accomplish this?

Thanks,  
Jason

---

<div class="post-metadata">

**Author:** ![Neo](https://community.unix.com/user_avatar/community.unix.com/neo/32/22838_2.png) [@Neo](https://community.unix.com/u/Neo)\
**Post date:** [August 25, 2024, 2:23am UTC](https://community.unix.com/t/replace-string-in-file-with-another-in-multiple-ads-txt-files/395116/2 "2024-08-25T02:23:14Z")

</div>

> [@nosaj](#):
>
> but it seems there are multiple ads .txt

Only one `ads.txt` file is used per web site at the root directory of the web site.

So, please be exact on what you mean by the following statements:

- "I have a website"..... this means "one website", correct?
- "there are multiple ads .txt" .... what does this mean exactly? You cannot have multiple `ads.txt` files in the same directory, that is not possible since you cannot have two files with the same name in the same directory.
