mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-27 08:37:36 +02:00
[bash] move documentation link to the end
This commit is contained in:
4
bash.md
4
bash.md
@@ -28,8 +28,6 @@ for the GNU operating system and as the default shell on most Linux distros.
|
|||||||
Nearly all examples below can be a part of a shell script
|
Nearly all examples below can be a part of a shell script
|
||||||
or executed directly in the shell.
|
or executed directly in the shell.
|
||||||
|
|
||||||
[Read more here.](https://www.gnu.org/software/bash/manual/bashref.html)
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# First line of the script is the shebang which tells the system how to execute
|
# First line of the script is the shebang which tells the system how to execute
|
||||||
@@ -526,3 +524,5 @@ info bash 'Bash Features'
|
|||||||
info bash 6
|
info bash 6
|
||||||
info --apropos bash
|
info --apropos bash
|
||||||
```
|
```
|
||||||
|
|
||||||
|
For more, see the [Bash documentation](https://www.gnu.org/software/bash/manual/bashref.html).
|
||||||
|
@@ -9,8 +9,6 @@ translators:
|
|||||||
Bash ist der Name der Unix-Shell, die als Shell des GNU-Betriebssystems und auch als Standard-Shell von Linux und macOS ausgeliefert wurde.
|
Bash ist der Name der Unix-Shell, die als Shell des GNU-Betriebssystems und auch als Standard-Shell von Linux und macOS ausgeliefert wurde.
|
||||||
Beinahe alle der folgenden Beispiele können als Teile eines Shell-Skripts oder direkt in der Shell ausgeführt werden.
|
Beinahe alle der folgenden Beispiele können als Teile eines Shell-Skripts oder direkt in der Shell ausgeführt werden.
|
||||||
|
|
||||||
[Weitere Informationen \(Englisch\)](http://www.gnu.org/software/bash/manual/bashref.html)
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Die erste Zeile des Scripts nennt sich Shebang, dies gibt dem System an,
|
# Die erste Zeile des Scripts nennt sich Shebang, dies gibt dem System an,
|
||||||
@@ -277,3 +275,5 @@ info bash 'Bash Features'
|
|||||||
info bash 6
|
info bash 6
|
||||||
info --apropos bash
|
info --apropos bash
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[Weitere Informationen \(Englisch\)](https://www.gnu.org/software/bash/manual/bashref.html)
|
||||||
|
@@ -9,8 +9,6 @@ contributors:
|
|||||||
προγράμματος τερματικού (shell script) ή να εκτελεσθούν απευθείας από τον
|
προγράμματος τερματικού (shell script) ή να εκτελεσθούν απευθείας από τον
|
||||||
τερματικό.
|
τερματικό.
|
||||||
|
|
||||||
[Διαβάστε περισσότερα εδώ.](http://www.gnu.org/software/bash/manual/bashref.html)
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Η πρώτη γραμμή του προγράμματος είναι το shebang που υποδεικνύει στο σύστημα
|
# Η πρώτη γραμμή του προγράμματος είναι το shebang που υποδεικνύει στο σύστημα
|
||||||
@@ -195,7 +193,7 @@ then
|
|||||||
fi
|
fi
|
||||||
# Να σημειωθεί πως ο τελεστής `=~` δουλεύει μόνο με διπλές αγκύλες [[ ]],
|
# Να σημειωθεί πως ο τελεστής `=~` δουλεύει μόνο με διπλές αγκύλες [[ ]],
|
||||||
# που είναι ωστόσο διαφορετικές από τις μονές [ ].
|
# που είναι ωστόσο διαφορετικές από τις μονές [ ].
|
||||||
# Δείτε το http://www.gnu.org/software/bash/manual/bashref.html#Conditional-Constructs
|
# Δείτε το https://www.gnu.org/software/bash/manual/bashref.html#Conditional-Constructs
|
||||||
# για περισσότερες πληροφορίες σχετικά με αυτό.
|
# για περισσότερες πληροφορίες σχετικά με αυτό.
|
||||||
|
|
||||||
# Επαναπροσδιορισμός της εντολής `ping` ως alias (ψευδώνυμο) για την αποστολή 5
|
# Επαναπροσδιορισμός της εντολής `ping` ως alias (ψευδώνυμο) για την αποστολή 5
|
||||||
@@ -522,3 +520,5 @@ info bash 'Bash Features'
|
|||||||
info bash 6
|
info bash 6
|
||||||
info --apropos bash
|
info --apropos bash
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[Διαβάστε περισσότερα εδώ.](https://www.gnu.org/software/bash/manual/bashref.html)
|
||||||
|
@@ -17,8 +17,6 @@ el shell del sistema operativo GNU. También es el shell
|
|||||||
por defecto de Linux y macOS. Casi todos los ejemplos abajo pueden
|
por defecto de Linux y macOS. Casi todos los ejemplos abajo pueden
|
||||||
ser parte de un script shell o ser ejecutados directamente en la terminal.
|
ser parte de un script shell o ser ejecutados directamente en la terminal.
|
||||||
|
|
||||||
[Leer más aquí.](http://www.gnu.org/software/bash/manual/bashref.html)
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
@@ -190,3 +188,5 @@ uniq -d file.txt
|
|||||||
# imprime sólo la primera columna antes de cada ',' en el archivo|
|
# imprime sólo la primera columna antes de cada ',' en el archivo|
|
||||||
cut -d ',' -f 1 file.txt
|
cut -d ',' -f 1 file.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[Leer más aquí.](https://www.gnu.org/software/bash/manual/bashref.html)
|
||||||
|
@@ -18,8 +18,6 @@ d’exploitation GNU et est le shell par défaut sur Linux et macOS.
|
|||||||
Presque tous les exemples ci-dessous peuvent être écrits dans un script shell
|
Presque tous les exemples ci-dessous peuvent être écrits dans un script shell
|
||||||
ou exécutés directement dans le terminal.
|
ou exécutés directement dans le terminal.
|
||||||
|
|
||||||
[Plus d’informations ici.](http://www.gnu.org/software/bash/manual/bashref.html)
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# La première ligne du script s’appelle le « shebang », elle indique au système
|
# La première ligne du script s’appelle le « shebang », elle indique au système
|
||||||
@@ -314,3 +312,5 @@ grep -c "^foo.*bar$" fichier.txt
|
|||||||
# l’expression rationnelle, utilisez fgrep (ou grep -F)
|
# l’expression rationnelle, utilisez fgrep (ou grep -F)
|
||||||
fgrep "^foo.*bar$" fichier.txt
|
fgrep "^foo.*bar$" fichier.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[Plus d’informations ici.](https://www.gnu.org/software/bash/manual/bashref.html)
|
||||||
|
@@ -21,8 +21,6 @@ translators:
|
|||||||
Bash è il nome della shell di unix, la quale è stata distribuita anche come shell del sistema oprativo GNU e la shell di default su Linux e macOS.
|
Bash è il nome della shell di unix, la quale è stata distribuita anche come shell del sistema oprativo GNU e la shell di default su Linux e macOS.
|
||||||
Quasi tutti gli esempi sottostanti possono fare parte di uno shell script o eseguiti direttamente nella shell.
|
Quasi tutti gli esempi sottostanti possono fare parte di uno shell script o eseguiti direttamente nella shell.
|
||||||
|
|
||||||
[Per saperne di più.](http://www.gnu.org/software/bash/manual/bashref.html)
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# La prima riga dello script è lo shebang il quale dice al sistema come eseguire
|
# La prima riga dello script è lo shebang il quale dice al sistema come eseguire
|
||||||
@@ -145,7 +143,7 @@ fi
|
|||||||
# L'operatore =~ funziona solo dentro alle doppie parentesi quadre [[ ]],
|
# L'operatore =~ funziona solo dentro alle doppie parentesi quadre [[ ]],
|
||||||
# che hanno un comportamento leggermente diverso rispetto alle singole [ ].
|
# che hanno un comportamento leggermente diverso rispetto alle singole [ ].
|
||||||
# Se vuoi approfondire, visita questo link (in inglese):
|
# Se vuoi approfondire, visita questo link (in inglese):
|
||||||
# http://www.gnu.org/software/bash/manual/bashref.html#Conditional-Constructs
|
# https://www.gnu.org/software/bash/manual/bashref.html#Conditional-Constructs
|
||||||
|
|
||||||
# Usando `alias`, puoi definire nuovi comandi o modificare quelli già esistenti.
|
# Usando `alias`, puoi definire nuovi comandi o modificare quelli già esistenti.
|
||||||
# Ad esempio, così puoi ridefinire il comando ping per inviare solo 5 pacchetti
|
# Ad esempio, così puoi ridefinire il comando ping per inviare solo 5 pacchetti
|
||||||
@@ -387,3 +385,5 @@ info bash 'Bash Features'
|
|||||||
info bash 6
|
info bash 6
|
||||||
info --apropos bash
|
info --apropos bash
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[Per saperne di più.](https://www.gnu.org/software/bash/manual/bashref.html)
|
||||||
|
@@ -12,8 +12,6 @@ Bash はunixシェルの1つです。GNUオペレーションシステムのシ
|
|||||||
LinuxやMac OS Xの、デフォルトシェルにもなっています。
|
LinuxやMac OS Xの、デフォルトシェルにもなっています。
|
||||||
以下にある例は、ほぼ全部シェルスクリプトの一部として使えます。また、一部はそのままシェルから実行できます。
|
以下にある例は、ほぼ全部シェルスクリプトの一部として使えます。また、一部はそのままシェルから実行できます。
|
||||||
|
|
||||||
[ちゃんとした説明は、こちらをどうぞ](http://www.gnu.org/software/bash/manual/bashref.html)
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# 最初の行はShebang(シェバング、シバン)というもので、システムに対して何を使って実行するのかを教えるためのものです
|
# 最初の行はShebang(シェバング、シバン)というもので、システムに対して何を使って実行するのかを教えるためのものです
|
||||||
@@ -165,3 +163,5 @@ uniq -d file.txt
|
|||||||
# 1行ごとに、','が最初に出てくる前の部分を表示します
|
# 1行ごとに、','が最初に出てくる前の部分を表示します
|
||||||
cut -d ',' -f 1 file.txt
|
cut -d ',' -f 1 file.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[ちゃんとした説明は、こちらをどうぞ](https://www.gnu.org/software/bash/manual/bashref.html)
|
||||||
|
@@ -20,8 +20,6 @@ translators:
|
|||||||
Bash는 유닉스 셸의 이름이며, 리눅스와 맥 OS X의 기본 셸로 그리고 GNU 운영체제를 위한 셸로서 배포되었습니다.
|
Bash는 유닉스 셸의 이름이며, 리눅스와 맥 OS X의 기본 셸로 그리고 GNU 운영체제를 위한 셸로서 배포되었습니다.
|
||||||
이하의 거의 모든 예시들은 셸 스크립트의 일부이거나 셸에서 바로 실행할 수 있습니다.
|
이하의 거의 모든 예시들은 셸 스크립트의 일부이거나 셸에서 바로 실행할 수 있습니다.
|
||||||
|
|
||||||
[(영어) 이곳에서 더 알아보세요.](http://www.gnu.org/software/bash/manual/bashref.html)
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# 스크립트의 첫 줄은 시스템에게 스크립트의 실행법을 알려주는 '셔뱅'입니다.
|
# 스크립트의 첫 줄은 시스템에게 스크립트의 실행법을 알려주는 '셔뱅'입니다.
|
||||||
@@ -376,3 +374,5 @@ info bash 'Bash Features'
|
|||||||
info bash 6
|
info bash 6
|
||||||
info --apropos bash
|
info --apropos bash
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[(영어) 이곳에서 더 알아보세요.](https://www.gnu.org/software/bash/manual/bashref.html)
|
||||||
|
@@ -15,8 +15,6 @@ translators:
|
|||||||
|
|
||||||
Bash adalah nama daripada unix shell, yang mana telah diagihkan sebagai shell untuk sistem operasi GNU dan sebagai shell lalai pada Linux dan macOS. Hampir semua contoh di bawah boleh menjadi sebahagian daripada skrip shell atau dijalankan terus dalam shell.
|
Bash adalah nama daripada unix shell, yang mana telah diagihkan sebagai shell untuk sistem operasi GNU dan sebagai shell lalai pada Linux dan macOS. Hampir semua contoh di bawah boleh menjadi sebahagian daripada skrip shell atau dijalankan terus dalam shell.
|
||||||
|
|
||||||
[Baca lebih lanjut di sini.](http://www.gnu.org/software/bash/manual/bashref.html)
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Baris pertama daripada skrip ialah shebang yang mana memberitahu sistem bagaimana untuk melaksana
|
# Baris pertama daripada skrip ialah shebang yang mana memberitahu sistem bagaimana untuk melaksana
|
||||||
@@ -278,3 +276,5 @@ info bash 'Bash Features'
|
|||||||
info bash 6
|
info bash 6
|
||||||
info --apropos bash
|
info --apropos bash
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[Baca lebih lanjut di sini.](https://www.gnu.org/software/bash/manual/bashref.html)
|
||||||
|
@@ -16,8 +16,6 @@ translators:
|
|||||||
Bash is de naam van de unix shell, deze wordt gebruikt voor het GNU operating system en is de standaard shell op Linux en macOS.
|
Bash is de naam van de unix shell, deze wordt gebruikt voor het GNU operating system en is de standaard shell op Linux en macOS.
|
||||||
Bijna alle voorbeelden hieronder kunnen deel uitmaken van een shell script of kunnen uitgevoerd worden in de shell.
|
Bijna alle voorbeelden hieronder kunnen deel uitmaken van een shell script of kunnen uitgevoerd worden in de shell.
|
||||||
|
|
||||||
[Lees er meer over hier.](http://www.gnu.org/software/bash/manual/bashref.html)
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# De eerste lijn in het schript is shebang, deze laat het systeem weten hoe
|
# De eerste lijn in het schript is shebang, deze laat het systeem weten hoe
|
||||||
@@ -229,3 +227,5 @@ info bash 'Bash Features'
|
|||||||
info bash 6
|
info bash 6
|
||||||
info --apropos bash
|
info --apropos bash
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[Lees er meer over hier.](https://www.gnu.org/software/bash/manual/bashref.html)
|
||||||
|
@@ -11,12 +11,11 @@ contributors:
|
|||||||
translators:
|
translators:
|
||||||
- ["Andreas Lindahl Flåten", "https://github.com/anlif"]
|
- ["Andreas Lindahl Flåten", "https://github.com/anlif"]
|
||||||
---
|
---
|
||||||
|
|
||||||
Bash er navnet på unix skallet, som også var distribuert som skallet for GNU
|
Bash er navnet på unix skallet, som også var distribuert som skallet for GNU
|
||||||
operativsystemet og som standard skall på de fleste Linux distribusjoner og
|
operativsystemet og som standard skall på de fleste Linux distribusjoner og
|
||||||
macOS.
|
macOS.
|
||||||
|
|
||||||
[Les mer her.](http://www.gnu.org/software/bash/manual/bashref.html)
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Den første linjen i et bash skript starter med '#!' (shebang)
|
# Den første linjen i et bash skript starter med '#!' (shebang)
|
||||||
@@ -262,3 +261,5 @@ info bash 'Bash Features'
|
|||||||
info bash 6
|
info bash 6
|
||||||
info --apropos bash
|
info --apropos bash
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[Les mer her.](https://www.gnu.org/software/bash/manual/bashref.html)
|
||||||
|
@@ -17,8 +17,6 @@ operacional GNU e como shell padrão para Linux e macOS. Praticamente todos
|
|||||||
os exemplos abaixo podem fazer parte de um shell script e pode ser executados
|
os exemplos abaixo podem fazer parte de um shell script e pode ser executados
|
||||||
diretamente no shell.
|
diretamente no shell.
|
||||||
|
|
||||||
[Leia mais sobre](http://www.gnu.org/software/bash/manual/bashref.html)
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# A primeira linha do script é o shebang, que conta para o sistema como executar
|
# A primeira linha do script é o shebang, que conta para o sistema como executar
|
||||||
@@ -276,3 +274,5 @@ info bash 'Bash Features'
|
|||||||
info bash 6
|
info bash 6
|
||||||
info --apropos bash
|
info --apropos bash
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[Leia mais sobre](https://www.gnu.org/software/bash/manual/bashref.html)
|
||||||
|
@@ -11,8 +11,6 @@ translators:
|
|||||||
Bash este numele shell-ului UNIX, care a fost de asemenea distribuit drept shell pentru sistemul de operare GNU și ca shell implicit pentru Linux si macOS.
|
Bash este numele shell-ului UNIX, care a fost de asemenea distribuit drept shell pentru sistemul de operare GNU și ca shell implicit pentru Linux si macOS.
|
||||||
Aproape toate exemplele de mai jos pot fi parte dintr-un script sau pot fi executate direct in linia de comanda.
|
Aproape toate exemplele de mai jos pot fi parte dintr-un script sau pot fi executate direct in linia de comanda.
|
||||||
|
|
||||||
[Citește mai multe:](http://www.gnu.org/software/bash/manual/bashref.html)
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Prima linie din script se numeste "shebang"
|
# Prima linie din script se numeste "shebang"
|
||||||
@@ -176,3 +174,5 @@ uniq -d file.txt
|
|||||||
cut -d ',' -f 1 file.txt
|
cut -d ',' -f 1 file.txt
|
||||||
# printează doar prima coloană inainte de caracterul ","
|
# printează doar prima coloană inainte de caracterul ","
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[Citește mai multe:](https://www.gnu.org/software/bash/manual/bashref.html)
|
||||||
|
@@ -26,8 +26,6 @@ Bash — это командная оболочка unix, которая рас
|
|||||||
Почти все нижеприведённые примеры могут быть частью shell-скриптов
|
Почти все нижеприведённые примеры могут быть частью shell-скриптов
|
||||||
или исполнены напрямую в shell.
|
или исполнены напрямую в shell.
|
||||||
|
|
||||||
[Подробнее.](http://www.gnu.org/software/bash/manual/bashref.html)
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Первая строка скрипта — это шебанг, который сообщает системе, как исполнять
|
# Первая строка скрипта — это шебанг, который сообщает системе, как исполнять
|
||||||
@@ -197,7 +195,7 @@ fi
|
|||||||
# Обратите внимание, что =~ работает только внутри
|
# Обратите внимание, что =~ работает только внутри
|
||||||
# двойных квадратных скобок [[ ]],
|
# двойных квадратных скобок [[ ]],
|
||||||
# которые несколько отличаются от одинарных скобок [ ].
|
# которые несколько отличаются от одинарных скобок [ ].
|
||||||
# Для более подробной информации см. http://www.gnu.org/software/bash/manual/bashref.html#Conditional-Constructs.
|
# Для более подробной информации см. https://www.gnu.org/software/bash/manual/bashref.html#Conditional-Constructs.
|
||||||
|
|
||||||
# Переопределить команду «ping» как псевдоним для отправки только пяти пакетов
|
# Переопределить команду «ping» как псевдоним для отправки только пяти пакетов
|
||||||
alias ping='ping -c 5'
|
alias ping='ping -c 5'
|
||||||
@@ -477,3 +475,5 @@ info bash 'Bash Features'
|
|||||||
info bash 6
|
info bash 6
|
||||||
info --apropos bash
|
info --apropos bash
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[Подробнее](https://www.gnu.org/software/bash/manual/bashref.html).
|
||||||
|
@@ -19,8 +19,6 @@ shell pre Linux a macOS.
|
|||||||
Takmer všetky príklady uvedené nižšie môžu byť súčasťou shell skriptu alebo
|
Takmer všetky príklady uvedené nižšie môžu byť súčasťou shell skriptu alebo
|
||||||
vykonané priamo v shelli.
|
vykonané priamo v shelli.
|
||||||
|
|
||||||
[Viac informácií tu.](http://www.gnu.org/software/bash/manual/bashref.html)
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Prvý riadok skriptu je tzv. shebang, ktorý systému povie ako skript vykonať:
|
# Prvý riadok skriptu je tzv. shebang, ktorý systému povie ako skript vykonať:
|
||||||
@@ -280,3 +278,5 @@ info bash 'Bash Features'
|
|||||||
info bash 6
|
info bash 6
|
||||||
info --apropos bash
|
info --apropos bash
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[Viac informácií tu.](https://www.gnu.org/software/bash/manual/bashref.html)
|
||||||
|
@@ -20,8 +20,6 @@ Bash - командна оболонка unix (unix shell), що також ро
|
|||||||
Майже всі приклади, що наведені нижче можуть бути частиною shell-скриптів або
|
Майже всі приклади, що наведені нижче можуть бути частиною shell-скриптів або
|
||||||
виконані в оболонці
|
виконані в оболонці
|
||||||
|
|
||||||
[Більш детально тут.](http://www.gnu.org/software/bash/manual/bashref.html)
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Перший рядок скрипта - це shebang, який вказує системі, як потрібно виконувати
|
# Перший рядок скрипта - це shebang, який вказує системі, як потрібно виконувати
|
||||||
@@ -289,3 +287,5 @@ info bash 'Bash Features'
|
|||||||
info bash 6
|
info bash 6
|
||||||
info --apropos bash
|
info --apropos bash
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[Більш детально тут.](https://www.gnu.org/software/bash/manual/bashref.html)
|
||||||
|
@@ -17,8 +17,6 @@ translators:
|
|||||||
Bash 是一个为 GNU 计划编写的 Unix shell,是 Linux 和 macOS 下的默认 shell。
|
Bash 是一个为 GNU 计划编写的 Unix shell,是 Linux 和 macOS 下的默认 shell。
|
||||||
以下大多数例子可以作为脚本的一部分运行,也可直接在 shell 下交互执行。
|
以下大多数例子可以作为脚本的一部分运行,也可直接在 shell 下交互执行。
|
||||||
|
|
||||||
[更多信息](http://www.gnu.org/software/bash/manual/bashref.html)
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# 脚本的第一行叫 shebang,用来告知系统如何执行该脚本:
|
# 脚本的第一行叫 shebang,用来告知系统如何执行该脚本:
|
||||||
@@ -271,3 +269,5 @@ info bash 'Bash Features'
|
|||||||
info bash 6
|
info bash 6
|
||||||
info --apropos bash
|
info --apropos bash
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[更多信息](https://www.gnu.org/software/bash/manual/bashref.html)
|
||||||
|
@@ -22,8 +22,6 @@ translators:
|
|||||||
Bash 是一個爲 GNU 計劃編寫的 Unix shell,是 Linux 和 macOS 下預設的 shell。
|
Bash 是一個爲 GNU 計劃編寫的 Unix shell,是 Linux 和 macOS 下預設的 shell。
|
||||||
以下大多數例子可以作爲腳本的一部分運行,也可直接在 shell 下互動執行。
|
以下大多數例子可以作爲腳本的一部分運行,也可直接在 shell 下互動執行。
|
||||||
|
|
||||||
[更多資訊](http://www.gnu.org/software/bash/manual/bashref.html)
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# 腳本的第一行叫 shebang,用來告知系統如何執行該腳本:
|
# 腳本的第一行叫 shebang,用來告知系統如何執行該腳本:
|
||||||
@@ -371,3 +369,5 @@ info bash 'Bash Features'
|
|||||||
info bash 6
|
info bash 6
|
||||||
info --apropos bash
|
info --apropos bash
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[更多資訊](https://www.gnu.org/software/bash/manual/bashref.html)
|
||||||
|
Reference in New Issue
Block a user