9
votes
Making `apt-get` read answers from stdin on graphical Ubuntu
This doesn’t answer your question as summarised in the title, but for well-designed packages that use debconf for configuration, the correct way to pick answers non-interactively is to set them ahead ...
1
vote
Is it possible to silence the initial call in xtrace, when BASH_XTRACEFD is set?
This is my current best effort to answer my own question. Thank you to everyone else, who answered, it's all based on your ideas!
#!/usr/bin/env bash
: shown 1
{
exec 2>&3 # restore ...
1
vote
one-liner vs script
Perl's one-liner is a kind or small art, where concision meet efficiency. They’re especially handy for quick file and text manipulations without writing boilerplate file‑handle code.
For sure, this ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
scripting × 4565bash × 1579
shell-script × 1187
shell × 743
linux × 677
text-processing × 287
awk × 284
sed × 185
files × 179
grep × 138
command-line × 137
ssh × 136
cron × 105
find × 89
variable × 84
ubuntu × 79
terminal × 74
python × 73
rename × 69
perl × 66
ksh × 64
debian × 62
networking × 56
zsh × 54
regular-expression × 54