20,037 reputation
34475
bio website
location United States
age
visits member for 3 years, 2 months
seen 28 mins ago

Debian user, GNU/Linux enthusiast, FLOSS supporter, hobby developer.


23h
comment Why is a here-string command substitution considered as a single line?
@MainMa The main point is that whitespace inside expansions gets lost if you don't double-quote the expansion. You may want to read this: mywiki.wooledge.org/Quotes. The ./b.sh | ... example does not use any expansions so doesn't have the quoting problem. I could have sworn there was already a question like this but I can't find one at the moment.
23h
comment Why is a here-string command substitution considered as a single line?
Try putting "" quotes around "`./b.sh`" and see what happens.
1d
comment How do back-references match in sed?
@slm Many thanks!
2d
comment Using find to search and report files that have one but not two keywords inside
@MarkPlotnick You could post that as an answer. Note that the -a is optional.
Oct
21
comment Transfer files between Windows and Linux machines?
You can use something like WinSCP or other Windows ssh / scp client to access the Linux machine after you set up an ssh server. Basic samba set-up is very simple as well. Perhaps you were looking at the wrong tutorials.
Oct
21
comment Is it possible to make a symbolic link of a file in other machine?
The only way would be to mount the remote directory somewhere locally.
Oct
20
comment Move to other end of paragraph in vim (not a visual block)
@TylerDurden There is no swap key. Just use {}.
Oct
17
revised How do I handle switches in a shell script?
Removed broken link that I can no longer find.
Oct
17
comment Optional arguments after or before the mandatory arguments?
@MichaelMrozek The POSIX standard getopts actually expects all option arguments to come before non-option arguments ("operands"). The script itself has to do extra work to support interleaving the two. I do not know about getopt since it is less standard and there are multiple (GNU and not GNU) versions out there.
Oct
17
answered Redirect output to stdout and pipe to a binary
Oct
17
revised Redirect output to stdout and pipe to a binary
Fix command typo
Oct
16
comment How can I link my C program against the Arb library?
Looks like you'll need to grab and install a library from the same website: fredrikj.net/arb
Oct
13
comment Linking a static library when compiling a C program
With static libraries you don't need to use -l. Try gcc abc.c libad.a, or whatever the actual static library name is. Just pretend the library is another object file.
Oct
11
comment What means a number of links > 1 for directories?
Remember that . and .. are hardlinks. In your case /etc has 161 subdirectories, all of whom contain a .. hardlink to it. See here and here.
Oct
11
comment What does && mean in cd “$OLDPWD” && pwd?
@Tim That is a history question that maybe someone else can answer. Post a new question as suggested instead of editing a closed one.
Oct
11
comment What does && mean in cd “$OLDPWD” && pwd?
@Tim Doesn't cd - mean the same as cd "$OLDPWD"? -- No. cd - doesn't print out the current dir after running cd "$OLDPWD", does it? -- Yes it does. This takes 2 seconds to verify for yourself. It is also in the definition.
Oct
11
comment What does && mean in cd “$OLDPWD” && pwd?
@Tim No. See my previous comment.
Oct
11
comment What does && mean in cd “$OLDPWD” && pwd?
@Tim && pwd is part of the definition. Why questions like this are hard to answer. Why is && pwd in the definition? Probably to be consistent with historical practice. Why is this historical practice? You'll have to ask someone who was there.
Oct
10
comment Why can't I install the midnight commander on Debian?
I don't think wheezy-updates is the same as wheezy, the main repository.
Oct
10
awarded  Good Answer