« first day (2 days earlier)      last day (2038 days later) » 

01:40
3
Q: Why no ";" after "do" in sh loops?

keithpjolleyAnyone know why there's no ; character after do in shell loops when written on a single line? Here's what I mean. When written on a multiple lines a for loop looks like: $ for i in $(jot 2) > do > echo $i > done And on a single line: $ for i in $(jot 2); do echo $i; done All the collap...

01:59
1
Q: Passing lines from the text file of a list of files to or as arguments

The69ErI have a file that on it has the names of two different files that come each in the same line like this file1.fastq.gz file2.fastq.gz ... file9fastq.ga file10fastq.gz How can I get to be able to parse this two names as arguments for an script?

02:59
4
Q: What is the difference between $path and $PATH (lowercase versus uppercase) with zsh?

Basil BourqueIn FreeBSD 12, using the zsh shell, I noticed this difference when looking at $path (lowercase) versus $PATH (uppercase). echo $path /sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin /usr/home/freebsd/bin echo $PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/...

 
8 hours later…
10:58
3
Q: How to copy a file transactionally?

Evan BennI want to copy a file from A to B, which may be on different filesystems. There are some additional requirements: The copy is all or nothing, no partial or corrupt file B left in place on crash; Do not overwrite an existing file B; Do not compete with a concurrent execution of the same command...


« first day (2 days earlier)      last day (2038 days later) »