Happy New Year 2024
Monday Jan 1 8:03:17 2024
------------------------------
Once again 'pharc' worked truly well. All posts were successfully
archived. This means that I will not have any need to update the code
this year. There is not any more option in sight that needs to be
implemented.
I am not a coder anyway, I write several scripts throughout the year
but they are basically text manipulation for a private website we
have in an internet association. Sometimes people ask me to implement
something and I try to do my best.
Most of the time the script function is to read the .html files to
get data.
Something like:
cat *.html | grep -i whatever | awk print $something | sed 'do this'
This kind of pipe can come out in any order depending on the desired
effect. But you get the idea, right?
The lastest script I wrote last year (a couple of days ago) ordered
all the items in the homepage. What I did was writing a script like
this:
sed '1,11d' index.php | awk '{ print $2 }' | sort > ordereditems.html
This line did the trick, (although the script is a bit longer as you
can imagine)
That's it for today. Have lots of fun this year!!!