Reputation
2,062
Top tag
Next privilege 2,500 Rep.
Create tag synonyms
Badges
5 18
Impact
~36k people reached

Apr
22
comment Joining bash arguments into single string with spaces
@Schwagmister: You can save it into a (string) variable if you want, but, if you don't specifically need to do that, I think cd "$*" will be good enough.
Apr
22
answered Adding vertical space after command in bash
Apr
22
answered Getting “Protocol Error” when trying to create a symlink in Docker
Apr
22
revised Getting “Protocol Error” when trying to create a symlink in Docker
Fixed formatting and typos; added tag.
Apr
22
comment How to retrive a file from a prompt?
You say “retrieve a file”, “prompt for a file”, and “What file …”.   Are you talking about a file (or filename) or a list of them?  If just one, why are you using for … in?  That’s a loop construct, used for doing something multiple times (with different values).
Apr
21
comment Simplest way to send files over network
Obligatory XKCD.
Apr
21
awarded  Autobiographer
Apr
21
comment Convert underscore to PascalCase, ie UpperCamelCase
(Cont’d again) …  (5) In the spirit of not causing collisions, it seems to me that “foo_bar” and “FOO_BAR” should not map to the same thing, so therefore I object to “FOO_BAR” → “FooBar”.  (6) I think the bigger issue is namespaces.  I haven’t programmed in Pascal since Blaise was alive, but in C/C++, by convention, identifiers that are primarily in lower case (to include snake_case and CamelCase) are generally the domain of the compiler, while identifiers in upper case are the domain of the pre-processor.  So that’s why I think that the OP didn’t want ALL_CAPS identifiers to be considered.
Apr
20
comment How is a directory a “special type of file”?
Related: How does one inspect the directory structure information of a Unix/Linux file? and When did directories stop being readable as files?
Apr
20
comment Can I use permissions or facls to limit the creation of files in a directory without limiting the creation of directories?
First of all, I said it could be setuid or setgid, and, as @Gilles points out, setgid is better.  Secondly, are setgid programs off the table, or only setgid scripts?  Because I wasn't suggesting a script; I was suggesting a program, in a language such as C, that can be compiled to a binary executable.
Apr
20
comment Process starts from inittab but stops by itself at the same time
Try putting sh -c '/opt/share/pyload/pyLoadCore.py >> /some/log.file 2>&1' into "inittab".  Or, perhaps, a pyLoadCore.sh script that would do that.
Apr
20
comment Process starts from inittab but stops by itself at the same time
The "dumb" question: does the command /opt/share/pyload/pyLoadCore.py work?  Even if you aren't in that directory when you run it?
Apr
19
comment tty problem: binary mess instead of “text good data”
If that's the problem, then (stty ispeed 9600; cat) < /dev/ttyUSB0 should work.  Optionally, specify /dev/ttyUSB0 as an argument to either or both commands.
Apr
19
comment Bash: Access parameter passed to last command
OK, I added one like that.
Apr
19
comment Bash: Access parameter passed to last command
possible duplicate of Is there a one-liner that allows me to create a directory and move into it at the same time?  ... or How do you recall the last (n-th?) passed argument of the previous command you used with bash?
Apr
19
revised Echo command with AND operator doesn't exit
Improved formatting, punctation, wording, etc.
Apr
19
comment When does one need to export a variable?
Related: What are PATH and other environment variables, and how can I set or use them?
Apr
19
comment awk ifs and variables - cannot pass a variable from one line towards subsequent lines
It is simple, but it's an easy mistake to make.  Note that, if path were equal to 3, then $path would be $3.
Apr
19
comment awk ifs and variables - cannot pass a variable from one line towards subsequent lines
This is not an answer to the question.  The question is not “How do I produce the desired output?”; the question is “What is wrong with my attempt at a solution?”  Yes, your answer fixes his problem, but your suggestions are so different from the OP’s that the absence of the $ is very hard to perceive.  And you didn’t explain any of it!
Apr
18
comment Bash script won't work on current directory
@Barmar "Backtrack" is the previous generation of Kali.