Preferred Terminal Scripting Language

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?

+3
source share
13 answers

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..),

+4

... bash - ?

, Bourne Shell (sh, bash) + * n * x.

sh vi telnet/ssh

( ) python/perl/ruby ​​ . , , " " , : sh + vi

.

+4

Unix , . - . Shell scripting , .

, " , , ":)

+3

script. ruby ​​ sysadmin, bash - . bash, , .

. 200 , .

bash, , , zcat , grep, , . awk, , .

, bash script, , for , .

bash, .., script, script ..

+3

G'day,

. , bash, Perl .

Ruby, , OO-, .

,

+1

Perl . * nix, Perl.

+1

Python , python, , script , perl .

+1

Bash, sh- unix. Unix (Solaris, HP/UX, AIX ..) ; perl python. , , . -, , , , sh/sed/awk.

Bash , , . , , Perl Python , - .

, bash script cron, , . -, , , , perl python.

+1

Bash . , , , .

0

Ruby . nuanaces/gotchas Bash.

0

Ruby, . , , . ++ Perl, . Ruby, . Ruby .

0

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.

0
source

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.

0
source

Source: https://habr.com/ru/post/1711164/


All Articles