1
vote
1answer
22 views

realpath (GNU coreutils 8.22) does resolve “.” symlink regardless of “-s”

I'm trying to use realpath in a script which has to ensure that it is located under a certain (possibly symlinked) path. Also the script has to be runnable from any location, so it cannot presume that ...
0
votes
1answer
13 views

less -S server.log (unix)

For a better understanding I prefer to read the logs with no wrap lines. In less I can get this with the -S option. The problem is that I can not select and copy rows that go beyond the right side ...
2
votes
3answers
254 views

Using find, xargs, etc. to output similarly named files

I have a folder full of HTML files: 001.htm 002.htm 003.htm … I want to run Pandoc on them to convert them to similarly named Markdown files: 001.md 002.md 003.md This command works on one of ...
5
votes
2answers
160 views

Differences in bash scripts between $@ and $*

Which are the differences between $@ and $* ? For example I see no differences here: #! /bin/bash echo with star: $* echo with at sign: $@
2
votes
2answers
90 views

Why do many CLI apps take a “--” argument?

I've seen many command line tools that take a "--" argument. For example: gem install mysql -- —–with-mysql-config=/usr/local/mysql/bin/mysql_config What does it stand for? Does it have a special ...
2
votes
1answer
212 views

why do *NIX commands have such “insane” (counterintuitive) defaults (philosophical pondering)? [closed]

Why do most *NIX commands my (experience is Linux mostly and rare encounter with FreeBDS) have such "insane" (unintuitive) default, behaviours, i.e. VERY different from what the "equivalent" GUI ...