technosaurus' blog
- technosaurus
- Posts: 4853
- Joined: Mon 19 May 2008, 01:24
- Location: Blue Springs, MO
- Contact:
technosaurus' blog
http://bashismal.blogspot.com/
I have begun to share my best coding tricks on my blog.
Script optimization and compile tricks will be te main focus, but feel free to ask questions ... even the ones that have been done to death, my answers aren't always what you'd expect (see my bash localization post)
I have begun to share my best coding tricks on my blog.
Script optimization and compile tricks will be te main focus, but feel free to ask questions ... even the ones that have been done to death, my answers aren't always what you'd expect (see my bash localization post)
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].
- technosaurus
- Posts: 4853
- Joined: Mon 19 May 2008, 01:24
- Location: Blue Springs, MO
- Contact:
Thanks for the support.
The whole purpose is to support you.
My goal is to bring together all of the little obscure tidbits that are easily overlooked by the untrained eye. Things that reduce bloat, increase speed and usability or are otherwise interesting.
Things in the queue:
Porting an applet to busybox
Making your own multicall binary
Making your own multicall scripts (a shell function tutorial)
Using a wrapper script (using a gcc wrapper that scrubs bloated CFLAGS)
Fast replacements for sed, grep, cut, tr.
Recursion (on data and down directories)
Building simple GUIs
Parsing files.
...
What would you like to see?
The whole purpose is to support you.
My goal is to bring together all of the little obscure tidbits that are easily overlooked by the untrained eye. Things that reduce bloat, increase speed and usability or are otherwise interesting.
Things in the queue:
Porting an applet to busybox
Making your own multicall binary
Making your own multicall scripts (a shell function tutorial)
Using a wrapper script (using a gcc wrapper that scrubs bloated CFLAGS)
Fast replacements for sed, grep, cut, tr.
Recursion (on data and down directories)
Building simple GUIs
Parsing files.
...
What would you like to see?
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].
I am looking forward to read your new tipstechnosaurus wrote:Things in the queue:
Porting an applet to busybox
Making your own multicall binary
Making your own multicall scripts (a shell function tutorial)
Using a wrapper script (using a gcc wrapper that scrubs bloated CFLAGS)
Fast replacements for sed, grep, cut, tr.
Recursion (on data and down directories)
Building simple GUIs
Parsing files.
...
Thank you
Sigmund
Re: technosaurus blog
Superb ... Thanks !!technosaurus wrote:http://bashismal.blogspot.com/
I have begun to share my best coding tricks on my blog.
Script optimization and compile tricks will be te main focus, but feel free to ask questions ... even the ones that have been done to death, my answers aren't always what you'd expect (see my bash localization post)
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
localizing shell scripts without bashisms, gettext or ... an
Technosaurus,
thank you very much!
And now I have found the simple solution for using variables in the translatable texts, better than here:
variables in translatable messages
Copying from console:
Sorry if I have derailed your thread, but your explanation has caused it, so take it as a big compliment please
thank you very much!
And now I have found the simple solution for using variables in the translatable texts, better than here:
variables in translatable messages
Copying from console:
# cat hello
#!/bin/sh
# localization using a variable
LANGPATH=locale/${LANG%_*}/hello
home="woof" # a variable for demo only
[ -f $LANGPATH ] && . $LANGPATH
echo ${VAR:-Hello $home World}
# cat locale/es/hello
VAR="Hola Mundo del $home"#
# cat locale/de/hello
VAR="Hallo $home Welt"#
# ./hello
Hallo woof Welt
#
# LANG=es ./hello
Hola Mundo del woof
#
# LANG=en ./hello
Hello woof World
#
Sorry if I have derailed your thread, but your explanation has caused it, so take it as a big compliment please
Puppy Linux Blog - contact me for access