Search Results

Search: Posts Made By: Adolf1994
6,709
Posted By Adolf1994
@bakunin, I decided to use groups again instead....
@bakunin, I decided to use groups again instead. The mobile stuff removal works fine. The first backreference is created to capture the part before the id starting with pim, i.e. the container of...
6,709
Posted By Adolf1994
But that's not in the pattern, so square brackets...
But that's not in the pattern, so square brackets are literal.
# echo a | sed 's/a/[nope]/'
[nope]
#
6,709
Posted By Adolf1994
Thanks for pointing out these, bakunin. I use...
Thanks for pointing out these, bakunin.
I use the {n,m} format to reduce the number of the backtracks.
I actually found problems where I have to use the S1 and S2 variables.
I'll be...
6,709
Posted By Adolf1994
I'll explain the regex'es then. It'll take some...
I'll explain the regex'es then. It'll take some time

---------- Post updated at 10:30 PM ---------- Previous update was at 10:10 PM ----------

Reverse engineered:

# removes a script tag
-e...
6,709
Posted By Adolf1994
This one thread could be an input: (name of...
This one thread could be an input:
(name of the script you save it as, i like to call it threaddl) http://boards.4chan.org/tg/res/20218467 1This way it will exit once everything is done.
...
6,709
Posted By Adolf1994
This script serves the sole purpose of making...
This script serves the sole purpose of making threads work offline and getting rid of junk not needed there.
Anyway, is there a character that indicates the end of a command in groups?
awk is...
6,709
Posted By Adolf1994
Well, I've looked into the grymoire sed page and...
Well, I've looked into the grymoire sed page and decided to use groups and such tasty stuff: sed -e '1 s/.\{1,31\}$//' -e '2,10 d' -e '/^<meta / {
...
6,709
Posted By Adolf1994
okokok, I now realized I can do this with sed....
okokok, I now realized I can do this with sed. The things I've got in my head:
- move the last line I'm working on into a new file
- merge sed commands with alternate swith wherever possible
- get...
6,709
Posted By Adolf1994
Hmmm, afaik there's a thing called super sed that...
Hmmm, afaik there's a thing called super sed that doesn't have any dependencies. Maybe if I try and compile that with an Android NDK toolchain?

I'll try first with dividing that big sed...
6,709
Posted By Adolf1994
I haven't noticed that it would have problems...
I haven't noticed that it would have problems with -e
As you can see there are plenty of them and most of them works except for these three.
I haven't looked into anything but sed so far.
...
6,709
Posted By Adolf1994
[SOLVED] sed fails to apply substitute commands
I've made a shell script for archiving HTML pages, i.e. making them work offline plus add some features.
Here is it:
#!/bin/sh

if [ $1 = "" ] || [ $(echo "$1" | egrep...
Showing results 1 to 11 of 11

 
All times are GMT -4. The time now is 03:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy