800 reputation
310
bio website github.com/dubiousjim
location
age
visits member for 2 years, 3 months
seen 2 days ago
stats profile views 62

Mar
19
awarded  Critic
Feb
16
awarded  Yearling
Feb
8
awarded  Revival
Jan
14
comment How to grep a text recursively on BusyBox 1.0?
Actually, my BusyBox find does accept -exec ... +, though it treats it the same as -exec ... \;. Not sure if this is a configurable option. Not very useful, but it does make some scripts written for other systems a bit more portable.
Jan
13
comment How can I get bash to exit on backtick failure in a similar way to pipefail?
"For example, all of ash, bash, pdksh, ksh93 and zsh exit without displaying foo on the following examples": BusyBox ash doesn't behave that way, it displays the output as per spec. (Tested with BusyBox 1.19.4.) Nor does it exit with set -e; (cd /nonexisting).
Jan
12
comment chmod - change permissions on a file
As is emphasized on the page you link to, chroot doesn't provide the security that BSD jails do, and it might help if we stopped talking informally of "chroot jails". (AFAIK no-one uses that phrase officially either.) If the code might be malicious and deliberately try to escape a chroot, this won't give you any protection. But there are many use cases where that's not a concern; you just want to protect against possibly broken code, etc. In those cases a chroot is a good solutions.
Jan
12
comment Suggested setup for an ultra-lightweight text-based programming environment in linux
@MichaelDurrant see the vim help topic "windows.txt".
Jan
11
comment What is `--` called?
I just pronounce it "--".
Jan
11
comment Having problem using sed | Trying to replace a line
Yes or you could also use single quotes on the inside, which would work better in some circumstances (and worse only in the circumstance that your working directory name includes single quotes).
Jan
6
answered How to diff two folders by inodes
Jan
6
comment Fixed mount point of external usb hdd
It will work fine for transient connections too. The device is just skipped if it's not available when init invokes mount -a. When the device is available, just do mount /mnt/point, using the mountpoint specified in /etc/fstab.
Dec
31
comment Suggested setup for an ultra-lightweight text-based programming environment in linux
Much of what you say here may be useful, but one thing is off: vim can readily split panes both horiz and vertically.
Dec
19
comment Storing a list in a variable
"... especially ls -r *": you mean ls -R *.
Dec
19
comment Where to find printf formatting reference?
Just to make it explicit: the shell printf command supports only a subset of the specifiers detailed in man 3 printf.
Dec
19
answered Storing a list in a variable
Dec
18
comment Copying only differences?
when I originally read the question, I thought the questioner wanted to manually segregate the newly copied data from the existing data. Now it sounds like he's content to copy the new data into the existing destination, and let the filesystem/snapshotting driver (e.g. zfs) sort them out. In that case, rsync is even more obviously the right tool; I suggest some flags to look at in a comment to one of the answers below.
Dec
18
comment Copying only differences?
Yes, rysnc is probably the right tool but the --archive flag doesn't (on its own) suffice to meet the questioner's needs. Look into the --size-only and --checksum and --update and --ignore-existing and --inplace options. Also --delete or a similar flag, which are often used together with --archive.
Dec
18
comment Copying only differences?
I believe you can do this with rsync but I can't give you the invocation off the top of my head. Search for rsync questions here, I expect this has already been discussed.
Dec
15
answered Problems installing Arch Linux: cannot mount the installation media
Dec
15
answered print a file in hex using awk