[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Is perl still the No.1 language for sysadmin?



Greg Wooledge (12023-04-05):
> bash has that, too -- you just have to enable it (shopt -s globstar),
> as it's not enabled by default.

Ah, bash has recursive globbing, that is good to know. It does not have
glob qualifiers nor temp file process substitution, AFAICS, though.

Glob qualifiers is when you write:

command *(.) for only regular files,

command *.c(mh-1) for only C files modified less than one hour ago,

command .*(@-@) for dotfiles that are broken links.

Temp file process substitution is when you cannot write

vimdiff reference.txt <(command)

because <(…) uses a pipe and vim doesn't like pipes, so you write

vimdiff reference.txt =(command)

to use a temporary file instead.

Regards,

-- 
  Nicolas George


Reply to: