Visit the LQ Articles and Editorials section
Go Back > Blogs
User Name


Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.

Make a bash script recognize bash aliases

Posted 05-12-2015 at 05:16 PM by the dsc (linux-related notes)
Updated 05-12-2015 at 05:22 PM by the dsc (mismatched tags)

Say, if you have a script that would take as a parameter something that you have aliased, it wouldn't work.

I mean:

$ ./ myalias whatever else
/home/dude/scripts/ line 3: myalias: command not found

In order to make it work, the said script must include:

shopt -s expand_aliases
source ~/.bash_aliases
(Or wherever your aliases are set, which would preferably be...
Posted in Uncategorized
Views 317 Comments 0 the dsc is offline

Pseudo-template noob hack that may apply for several situations

Posted 04-12-2012 at 05:10 PM by the dsc (linux-related notes)
Updated 04-12-2012 at 05:14 PM by the dsc

There's a painting software, "mypaint", which is very nice, but it does not support templates, at least not yet.

I've created a template (just a "blank" file with the correct resolution and whatnot) on GIMP, saved it as "ora", but instead of opening this file manually every time, and remembering to save it with a new name in order to not overwrite the template, I came up with a script that will create a new name automatically, with no risk of overwriting...
Posted in Uncategorized
Views 6985 Comments 2 the dsc is offline


All times are GMT -5. The time now is 01:56 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration