What language do you prefer to write scripts for common tasks (backup, synchronization, etc.) and why? I'm not talking about programming web pages or applications.
I came up with this question, thinking about why bash is still popular. For example, Python looks more comfortable to me. Do you use it only because you know it or for some special reason?
If it "creates this directory, run this command, if it works, run this" level ", I just use bash shell scripts ..
- , -, , Python script - , , (bash script Python..),
... bash - ?
, Bourne Shell (sh, bash) + * n * x.
sh vi telnet/ssh
( ) python/perl/ruby . , , " " , : sh + vi
.
Unix , . - . Shell scripting , .
, " , , ":)
script. ruby sysadmin, bash - . bash, , .
. 200 , .
bash, , , zcat , grep, , . awk, , .
, bash script, , for , .
bash, .., script, script ..
G'day,
. , bash, Perl .
Ruby, , OO-, .
,
Perl . * nix, Perl.
Python , python, , script , perl .
Bash, sh- unix. Unix (Solaris, HP/UX, AIX ..) ; perl python. , , . -, , , , sh/sed/awk.
Bash , , . , , Perl Python , - .
, bash script cron, , . -, , , , perl python.
Bash . , , , .
Ruby . nuanaces/gotchas Bash.
Ruby, . , , . ++ Perl, . Ruby, . Ruby .
I use perl as a rule. The module library in CPAN simplifies many tasks. Net :: SSH is a great tool for automating system administration tasks.
After using different flavors of Linux and BSD, I tend to prototype in Bash or Korn Shell and subsequently convert to Bourne Shell for portability. Never let me down.
Source: https://habr.com/ru/post/1711164/More articles:Loader object does not dispatch Event.COMPLETE - flashhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1711160/how-do-i-submit-suggestions-to-the-css-spec&usg=ALkJrhhoE3Hru0wcwyOXy9E4hbHeEPqq1wProgrammatically install a font on Windows - fontsIYO: Worst Subversive Mistakes? - svnrails accepts_nested_attributes_for: reject_if does not work - ruby-on-railsEvaluation of the effort: using C / Win32 or learning C # /. NET - cParts in pdflatex Content - pdflatexSQL Server 2008 login error - sqlCan I use a SELECT statement inside an INSERT value? - performanceНасколько эффективнее Postgres, чем MYSQL при полнотекстовом поиске? - performanceAll Articles