Posts by Rakiz • 105 points
4 posts
-
1
votes2
answers2307
viewsQ: Delete all lines that have a specific string
I would like to delete all lines that have the string Excluído, searching from one specific string to the end of another. Example: <p class="FolderPath"> <table class="DiffTable">…
-
1
votes2
answers1858
viewsQ: Shell script Sed read one file and write to another only on the first occurrence of a string
Good afternoon, I am trying to read from an X file and write to a Y file when a specific String appears. But I only want to include it once. Example I’m trying to make: sed -i '/, pasta/r teste.txt'…
-
1
votes1
answer97
viewsQ: Script to swap place string with another string
I have the file /etc/udev/rules.d/70-persistent-net.rules that have such interfaces: SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="1c:af:f7:e7:a4:3c", ATTR{dev_id}=="0x0",…
-
7
votes2
answers623
viewsQ: Script to find and replace words in multiple files
I need to make a command that finds and replaces a directory path by another path, in several HTML files, example of part of the HTML file: <DIV STYLE="margin-top:6pt;margin-left:36pt;" ><…