How to store standard error in a variable

Let’s say I have a script like the following: useless.sh echo “This Is Error” 1>&2 echo “This Is Output” And I have another shell script: alsoUseless.sh ./useless.sh | sed ‘s/Output/Useless/’ I want to capture “This Is Error”, or any other stderr from useless.sh, into a variable. Let’s call it ERROR. Notice that I am using … Read more

SQL variable to hold list of integers

I’m trying to debug someone else’s SQL reports and have placed the underlying reports query into a query windows of SQL 2012. One of the parameters the report asks for is a list of integers. This is achieved on the report through a multi-select drop down box. The report’s underlying query uses this integer list … Read more

Adding variable for post title so post template can include auto-generated link to view on external website.com/{post title}

There’s an external website that I’ll be referencing within my posts that uses the same static format for their pages. Let’s say it’s website.com/view/1111, website.com/view/1112, etc. What I want to do is create a post template that will automatically append a link to that external site above the post content. So, for example, if my … Read more

How to pass data around?

I have different menu items. When the user clicks on a menu item, I want them to go to a particular destination. Each menu’s destination has a different background color. I’m thinking that I can pass a variable around and based on the value, I can set the bgcolor. This is just one example of … Read more