I want to use whiptail to generate a checkbox list based on the output from another program. Only the first word on each line of the output from the first program is necessary, so I extract it using ...

Bash is driving me nuts. I can't figure out why the following (nor any of the dozens of variations I've literally copied and pasted from examples) fails to work:
#!/bin/bash
echo $#
function main {
...

Why is a parameter in the POSIX find command added with a single hyphen for multi-character parameter names, while most other programs use single hyphen to indicate multiple single-character flags, ...

According to the documentation, use of the vga= kernel parameter is deprecated as of GRUB2. The fact that some newer kernels don't seem to support it anymore on certain adapters is of no concern as ...

I'm asking myself if I can use Grub 2 to tell the Operating System which actions to perform after boot.
Background:
I have a HTPC with Debian Wheezy installed. Sometimes I want to use the System as a ...

Given a program that requires some parameters, e.g. program -in file.in -out file.out, what would be the simple-most approach to write a bash script that could be called with or without any of these ...

Well, I think you can find dozens of questions on this platform how to pipe find output to sed, but I haven't found anything for the reverse direction so far. What I want to do is modify my input, and ...

I'm trying to write a shell script that will transform positional
arguments that are passed to it as follows.
The shell script passes these arguments to a binary executable
(ffigen) which is derived ...

I saw this in the end of an awesome shell script but I can't understand the login here because I think it's being short-handed for a longer command.
spark ${@:-`cat`}
This apears at the end of this ...