Translations by Pekka Niemi
Pekka Niemi has submitted the following strings to this translation. Contributions are visually coded: currently used translations, unreviewed suggestions, rejected suggestions.
481. |
for (( exp1; exp2; exp3 )); do COMMANDS; done
|
|
2010-01-04 |
for (( lause1; lause2; lause3 )); do KOMENNOT; done
|
|
482. |
select NAME [in WORDS ... ;] do COMMANDS; done
|
|
2010-01-04 |
select NIMI [in ARVOT ... ;] do KOMENNOT; done
|
|
483. |
time [-p] pipeline
|
|
2010-01-04 |
time [-p] komentoputki
|
|
484. |
case WORD in [PATTERN [| PATTERN]...) COMMANDS ;;]... esac
|
|
2010-01-04 |
case SANA in [MALLINE [| MALLINE]...) KOMENNOT ;;]... esac
|
|
485. |
if COMMANDS; then COMMANDS; [ elif COMMANDS; then COMMANDS; ]... [ else COMMANDS; ] fi
|
|
2010-01-04 |
if KOMENNOT; then KOMENNOT; [ elif KOMENNOT; then KOMENNOT; ]... [ else KOMENNOT; ] fi
|
|
486. |
while COMMANDS; do COMMANDS; done
|
|
2010-01-04 |
while KOMENNOT; do KOMENNOT; done
|
|
487. |
until COMMANDS; do COMMANDS; done
|
|
2010-01-04 |
until KOMENNOT; do KOMENNOT; done
|
|
488. |
coproc [NAME] command [redirections]
|
|
2010-01-04 |
coproc [NIMI] komento [uudelleenohjaukset]
|
|
489. |
function name { COMMANDS ; } or name () { COMMANDS ; }
|
|
2010-01-04 |
function nimi { KOMENNOT ; } tai nimi () { KOMENNOT ; }
|
|
490. |
{ COMMANDS ; }
|
|
2010-01-04 |
{ KOMENNOT ; }
|
|
491. |
job_spec [&]
|
|
2010-01-04 |
työtunniste [&]
|
|
492. |
(( expression ))
|
|
2010-01-04 |
(( lauseke ))
|
|
493. |
[[ expression ]]
|
|
2010-01-04 |
[[ lauseke ]]
|
|
494. |
variables - Names and meanings of some shell variables
|
|
2010-01-04 |
muuttujat - eräiden komentotulkin muuttujien nimet ja merkitykset
|
|
495. |
pushd [-n] [+N | -N | dir]
|
|
2010-01-04 |
pushd [-n] [+N | -N | hakemisto]
|
|
496. |
popd [-n] [+N | -N]
|
|
2010-01-04 |
popd [-n] [+N | -N]
|
|
497. |
dirs [-clpv] [+N] [-N]
|
|
2010-01-04 |
dirs [-clpv] [+N] [-N]
|
|
498. |
shopt [-pqsu] [-o] [optname ...]
|
|
2010-01-04 |
shopt [-pqsu] [-o] [valitsinnimi ...]
|
|
499. |
printf [-v var] format [arguments]
|
|
2010-01-04 |
printf [-v muuttuja] muoto [argumentit]
|
|
504. |
readarray [-n count] [-O origin] [-s count] [-t] [-u fd] [-C callback] [-c quantum] [array]
|
|
2010-01-04 |
readarray [-n lukumäärä] [-O alkuperä] [-s laskuri] [-t] [-u tiedostokahva]
[-C paluukutsu] [-c määrä] [taulukko]
|
|
508. |
Exit for, while, or until loops.
Exit a FOR, WHILE or UNTIL loop. If N is specified, break N enclosing
loops.
Exit Status:
The exit status is 0 unless N is not greater than or equal to 1.
|
|
2010-01-04 |
Exit for, while- tai until-silmukoista
Poistu FOR-, WHILE- tai UNTIL-silmukasta. Jos N on annettu, poistu
N:stä sisäkkäisestä silmukasta.
Paluuarvo:
Paluuarvo on 0 jollei N ole suurempi tai yhtäsuuri kuin 1.
|
|
509. |
Resume for, while, or until loops.
Resumes the next iteration of the enclosing FOR, WHILE or UNTIL loop.
If N is specified, resumes the Nth enclosing loop.
Exit Status:
The exit status is 0 unless N is not greater than or equal to 1.
|
|
2010-01-04 |
Jatko for-, while tai until-silmukoille.
Jatkaa seuraavaa FOR-, WHILE- tai UNTIL-silmukan kierrosta.
Jos N on annettu, jatkaa N:ttä silmukkaa.
Paluuarvo:
Paluuarvo on 0 ellei N ole suurempi tai yhtäsuuri kuin 1.
|
|
510. |
Execute shell builtins.
Execute SHELL-BUILTIN with arguments ARGs without performing command
lookup. This is useful when you wish to reimplement a shell builtin
as a shell function, but need to execute the builtin within the function.
Exit Status:
Returns the exit status of SHELL-BUILTIN, or false if SHELL-BUILTIN is
not a shell builtin..
|
|
2010-01-04 |
Suorita komentotulkin sisäänrakennettuja komentoja.
Suorita KOMENTO argumentein ARGs ilman komennon etsimistä.
Tämä on hyödyllistä silloin, kun haluat tehdä komentotulkin komennosta
funktion, mutta haluat suorittaa komennon funktiosta käsin.
Paluuarvo:
Palauttaa KOMENNON paluuarvon, tai epätoden jos KOMENTO ei ole
sisäänrakennettu komento.
|
|
511. |
Return the context of the current subroutine call.
Without EXPR, returns "$line $filename". With EXPR, returns
"$line $subroutine $filename"; this extra information can be used to
provide a stack trace.
The value of EXPR indicates how many call frames to go back before the
current one; the top frame is frame 0.
Exit Status:
Returns 0 unless the shell is not executing a shell function or EXPR
is invalid.
|
|
2010-01-04 |
Palauta tämänhetkisen alirutiinikutsun konteksti.
Ilman parametria, palauttaa ”$line $filename”. Parametrilla palauttaa
”$line $subroutine $filename”; saatua lisätietoa voidaan käyttää kutsupinon
kuvaamiseksi.
Parametrin arvo määrää, montako kutsukehystä taaksepäin siirrytään;
ylin kehys on numero 0.
Paluuarvo:
Palauttaa 0 ellei komentotulkki ole funktion ulkopuolella tai parametri
on virheellinen.
|
|
514. |
Null command.
No effect; the command does nothing.
Exit Status:
Always succeeds.
|
|
2010-01-04 |
Tyhjä komento.
Ei vaikutusta; komento ei tee mitään.
Paluuarvo:
Onnistuu aina.
|
|
515. |
Return a successful result.
Exit Status:
Always succeeds.
|
|
2010-01-04 |
Palauttaa onnistuneen paluuarvon.
Paluuarvo:
Onnistuu aina.
|
|
516. |
Return an unsuccessful result.
Exit Status:
Always fails.
|
|
2010-01-04 |
Palauttaa epäonnistuneen paluuarvon.
Paluuarvo:
Epäonnistuu aina.
|
|
522. |
Write arguments to the standard output.
Display the ARGs on the standard output followed by a newline.
Options:
-n do not append a newline
Exit Status:
Returns success unless a write error occurs.
|
|
2010-01-04 |
Tulosta argumentit vakiotulosteeseen.
Tulosta ARGUMENTIT vakiotulosteeseen päättäen rivinvaihdolla.
Valitsimet:
-n älä lisää rivinvaihtoa
Paluuarvo:
Palauttaa onnistuneen ellei tapahdu virhettä.
|
|
523. |
Enable and disable shell builtins.
Enables and disables builtin shell commands. Disabling allows you to
execute a disk command which has the same name as a shell builtin
without using a full pathname.
Options:
-a print a list of builtins showing whether or not each is enabled
-n disable each NAME or display a list of disabled builtins
-p print the list of builtins in a reusable format
-s print only the names of Posix `special' builtins
Options controlling dynamic loading:
-f Load builtin NAME from shared object FILENAME
-d Remove a builtin loaded with -f
Without options, each NAME is enabled.
To use the `test' found in $PATH instead of the shell builtin
version, type `enable -n test'.
Exit Status:
Returns success unless NAME is not a shell builtin or an error occurs.
|
|
2010-01-04 |
Ottaa käyttöön tai poistaa käytöstä komentotulkin sisäänrakennettuja komentoja.
Ottaa käyttöön tai poistaa komentotulkin sisäänrakennettuja komentoja
käytöstä. Käytöstäpoisto sallii sinun käyttävän sisäisen komennon kanssa
samannimisiä, levyllä olevia komentoja käyttämättä koko polkua.
Valitsimet:
-a listaa komennot ja tiedot, mitkä on otettu käyttöön
-n poistaa NIMET käytöstä tai näyttää listan poistetuista
-p tulosta lista komennoista hyödynnettävässä muodossa
-s tulosta ainoastaan Posix-komennot
Valitsimet, jotka kontrolloivat dynaamista lataamista:
-f lataa komento NIMI jaetusta objektista TIEDOSTO
-d poista -f:llä ladattu komento
Jollei valitsimia anneta, kukin NIMI otetaan käyttöön.
Jos haluat käyttää $PATHista löytyvää ”test”-komentoa sisäänrakennetun
sijaan, kirjoita ”enable -n test”.
Paluuarvo:
Palauttaa onnistuneen, paitsi jos NIMI ei ole komentotulkin sisäänrakennettu
komento tai tapahtuu virhe.
|
|
524. |
Execute arguments as a shell command.
Combine ARGs into a single string, use the result as input to the shell,
and execute the resulting commands.
Exit Status:
Returns exit status of command or success if command is null.
|
|
2010-01-04 |
Suorita argumentit komentotulkin komentona.
Yhdistä ARGUMENTIT yhdeksi merkkijonoksi, käytä tulosta komentotulkin
syötteenä ja suorita saadut komennot.
Paluuarvo:
Palauttaa komennon paluuarvon tai onnistuneen jos komento on tyhjä.
|
|
525. |
Parse option arguments.
Getopts is used by shell procedures to parse positional parameters
as options.
OPTSTRING contains the option letters to be recognized; if a letter
is followed by a colon, the option is expected to have an argument,
which should be separated from it by white space.
Each time it is invoked, getopts will place the next option in the
shell variable $name, initializing name if it does not exist, and
the index of the next argument to be processed into the shell
variable OPTIND. OPTIND is initialized to 1 each time the shell or
a shell script is invoked. When an option requires an argument,
getopts places that argument into the shell variable OPTARG.
getopts reports errors in one of two ways. If the first character
of OPTSTRING is a colon, getopts uses silent error reporting. In
this mode, no error messages are printed. If an invalid option is
seen, getopts places the option character found into OPTARG. If a
required argument is not found, getopts places a ':' into NAME and
sets OPTARG to the option character found. If getopts is not in
silent mode, and an invalid option is seen, getopts places '?' into
NAME and unsets OPTARG. If a required argument is not found, a '?'
is placed in NAME, OPTARG is unset, and a diagnostic message is
printed.
If the shell variable OPTERR has the value 0, getopts disables the
printing of error messages, even if the first character of
OPTSTRING is not a colon. OPTERR has the value 1 by default.
Getopts normally parses the positional parameters ($0 - $9), but if
more arguments are given, they are parsed instead.
Exit Status:
Returns success if an option is found; fails if the end of options is
encountered or an error occurs.
|
|
2010-01-04 |
Selaa valitsimien argumentit.
Getoptsia käytetään komentotulkin proseduureissa käsiteltäessä
komentoriviparametreina annettuja valitsimia.
OPTSTRING sisältää tunnistettavat valitsinkirjaimet; jos kirjainta
seuraa kaksoispiste, valitsimella odotetaan olevan argumentti, joka
pitäisi erottaa siitä tyhjämerkillä.
Getopts sijoittaa joka kutsukerralla seuraavan valitsimen muuttujaan
$nimi, alustaen sen tarvittaessa, ja seuraavan käsiteltävän argumentin
OPTIND-ympäristömuuttujaan. OPTIND alustetaan 1:ksi jokaisella
komentotulkin tai komentotiedoston käynnistyskerralla. Kun valitsin
vaatii argumentin, getopts sijoittaa sen muuttujaan OPTARG.
Getopts ilmoittaa virheistä jommallakummalla tavalla kahdesta. Jos
OPTSTRINGIN ensimmäinen merkki on kaksoispiste, getopts ilmoittaa
virheistä hiljaisesti. Tällöin ei tulosteta virheilmoitusta. Jos löydetään
virheellinen valitsinmerkki, se sijoitetaan OPTARGIIN. Jos vaadittua
argumenttia ei löydetä, getopts sijoittaa ”:”:n NAMEEN ja asettaa
löydetyn optiomerkin OPTARGIIN. Jos getopts ei ole hiljaisessa tilassa
ja löydetään virheellinen valitsin, getopts sijoittaa ”?”:n NAMEEN ja
tyhjentää OPTARGIN. Jos vaadittua argumenttia ei löydetä, NAMEEN
sijoitetaan ”?”, OPTARG tyhjennetään ja tulostetaan virheilmoitus.
Jos OPTERR-ympäristömuuttujassa on arvo 0, getopts jättää virheilmoitukset
tulostamatta, vaikka OPTSTRINGIN ensimmäinen merkki ei ole kaksoispiste.
OPTERRin oletusarvo on 1.
Getopts selaa normaalisti positioparametrit ($0 - $9), mutta jos
argumentteja annetaan enemmän, ne selataan sen sijaan.
Paluuarvo:
Palauttaa onnistuneen jos valitsin löytyy; epäonnistuneen jos valitsimet
loppuvat tai tapahtuu virhe.
|
|
527. |
Exit the shell.
Exits the shell with a status of N. If N is omitted, the exit status
is that of the last command executed.
|
|
2010-01-04 |
Poistu komentotulkista.
Poistuu komentotulkista paluuarvolla N. Jos N:ää ei anneta, paluuarvo
on viimeisen komennon paluuarvo.
|
|
528. |
Exit a login shell.
Exits a login shell with exit status N. Returns an error if not executed
in a login shell.
|
|
2010-01-04 |
Poistu sisäänkirjautumiskomentotulkista.
Poistuu sisäänkirjautumiskomentotulkista paluuarvolla N. Palauttaa
virheen jos ei olla sisäänkirjautumiskomentotulkissa.
|
|
529. |
Display or execute commands from the history list.
fc is used to list or edit and re-execute commands from the history list.
FIRST and LAST can be numbers specifying the range, or FIRST can be a
string, which means the most recent command beginning with that
string.
Options:
-e ENAME select which editor to use. Default is FCEDIT, then EDITOR,
then vi
-l list lines instead of editing
-n omit line numbers when listing
-r reverse the order of the lines (newest listed first)
With the `fc -s [pat=rep ...] [command]' format, COMMAND is
re-executed after the substitution OLD=NEW is performed.
A useful alias to use with this is r='fc -s', so that typing `r cc'
runs the last command beginning with `cc' and typing `r' re-executes
the last command.
Exit Status:
Returns success or status of executed command; non-zero if an error occurs.
|
|
2010-01-04 |
Näytä tai suorita komentoja komentohistoriasta.
Fc:tä käytetään historialistassa olevien komentojen tulostamiseen tai
muokkaamiseen ja uudelleensuoritukseen. ALKU ja LOPPU voivat olla
rajaavia numeroita, tai ALKU voi olla merkkijono, joka tarkoittaa viimei-
sintä sillä alkavaa komentoa.
Valitsimet:
-e ENIMI valitse käytettävä editori. Oletus on FCEDIT, sitten EDITOR
sitten vi
-l listaa rivit editoinnin sijaan
-r listaa käänteisessä järjestyksessä
Käytettäessä muotoa ”fc -s [malline=korvaus] [komento]”, komento
suoritetaan kun korvaus MALLINE=KORVAUS on suoritettu.
Eräs käyttökelpoinen alias on r='fc -s', jolloin ”r cc” ajaa viimeisen cc-
alkuisen komennon ja ”r” suorittaa viimeisen komennon.
Paluuarvo:
Palauttaa onnistuneen tai suoritetun komennon paluuarvon; nollasta
poikkeava virhetilanteessa.
|
|
530. |
Move job to the foreground.
Place the job identified by JOB_SPEC in the foreground, making it the
current job. If JOB_SPEC is not present, the shell's notion of the
current job is used.
Exit Status:
Status of command placed in foreground, or failure if an error occurs.
|
|
2010-01-04 |
Siirrä työ edustalle.
Siirrä TYÖKUVAAJALLA tunnistettu työ edustalle, jolloin siitä tulee nykyinen
työ. Jos TYÖKUVAAJAA ei ole annettu, käytetään komentotulkin käsitystä
tämänhetkisestä työstä.
Paluuarvo:
Edustalle tuodun työn paluuarvo, tai epäonnistuminen virhetilanteessa.
|
|
531. |
Move jobs to the background.
Place the jobs identified by each JOB_SPEC in the background, as if they
had been started with `&'. If JOB_SPEC is not present, the shell's notion
of the current job is used.
Exit Status:
Returns success unless job control is not enabled or an error occurs.
|
|
2010-01-04 |
Siirtää työt taustalle.
Siirtää kunkin TYÖNKUVAAJALLA tunnistetun työn taustalle, kuten jos ne olisi
käynnistetty ”&”:llä. Jos TYÖNKUVAAJAA ei ole annettu, käytetään komento-
tulkin käsitystä nykyisestä työstä.
Paluuarvo:
Palauttaa onnistuneen paitsi jos työnohjaus ei ole käytössä tai tapahtuu
virhe.
|
|
540. |
Return from a shell function.
Causes a function or sourced script to exit with the return value
specified by N. If N is omitted, the return status is that of the
last command executed within the function or script.
Exit Status:
Returns N, or failure if the shell is not executing a function or script.
|
|
2010-01-04 |
Palauttaa komentotulkin funktiosta.
Aiheuttaa funktion tai luetun skriptin poistumisen annetulla paluuarvolla N.
Jos N:ää ei ole annettu, palautetaan viimeisen funktiossa tai skriptissä
suoritetun komennon paluuarvo.
Paluuarvo:
Palauttaa N:n, tai epäonnistuneen mikäli komentotulkki ei ole suorittamassa
funktiota tai skriptiä.
|
|
543. |
Set export attribute for shell variables.
Marks each NAME for automatic export to the environment of subsequently
executed commands. If VALUE is supplied, assign VALUE before exporting.
Options:
-f refer to shell functions
-n remove the export property from each NAME
-p display a list of all exported variables and functions
An argument of `--' disables further option processing.
Exit Status:
Returns success unless an invalid option is given or NAME is invalid.
|
|
2010-01-04 |
Aseta ympäristömuuttujien vientiattribuutin.
Merkitse kukin NIMI vietäväksi automaattisesti suoritettujen komentojen
ympäristöön. Jos ARVO on annettu, se sijoitetaan NIMEEN ennen vientiä.
Valitsimet:
-f viittaa komentotulkin funktioihin
-n poista jokaiselta NIMELTÄ vientiattribuutti
-p listaa kaikki viedyt muuttujat ja funktiot
”--” argumenttina lopettaa valitsimien käsittelyn.
Paluuarvo:
Palauttaa onnistuneen paitsi jos on annettu virheellinen valitsin
tai NIMI on virheellinen.
|
|
545. |
Shift positional parameters.
Rename the positional parameters $N+1,$N+2 ... to $1,$2 ... If N is
not given, it is assumed to be 1.
Exit Status:
Returns success unless N is negative or greater than $#.
|
|
2010-01-04 |
Siirrä positionaalisia parametreja.
Siirrä positionaalisia parametreja $N+1, $N+2 ... parametreihin $1, $2 ...
Jos N:ää ei ole annettu, sen oletetaan olevan 1.
Paluuarvo:
Palauttaa onnistuneen ellei N ole negatiivinen tai suurempi kuin $#.
|
|
546. |
Execute commands from a file in the current shell.
Read and execute commands from FILENAME in the current shell. The
entries in $PATH are used to find the directory containing FILENAME.
If any ARGUMENTS are supplied, they become the positional parameters
when FILENAME is executed.
Exit Status:
Returns the status of the last command executed in FILENAME; fails if
FILENAME cannot be read.
|
|
2010-01-04 |
Suorittaa tiedoston komennot nykyisessä komentotulkissa.
Lue ja suorita komennot TIEDOSTOSTA nykyisessä tulkissa. $PATH:in
komponentteja käytetään TIEDOSTON sisältävän hakemiston haussa.
Mahdolliset ARGUMENTIT sijoitetaan positionaalisiksi parametreiksi
TIEDOSTOA suoritettaessa.
Paluuarvo:
Palauttaa viimeisen TIEDOSTON suoritetun komennon paluuarvon; epäonnistuu
mikäli TIEDOSTOA ei voida lukea.
|
|
547. |
Suspend shell execution.
Suspend the execution of this shell until it receives a SIGCONT signal.
Unless forced, login shells cannot be suspended.
Options:
-f force the suspend, even if the shell is a login shell
Exit Status:
Returns success unless job control is not enabled or an error occurs.
|
|
2010-01-04 |
Keskeyttää komentotulkin suorituksen.
Keskeyttää tämän tulkin suorituksen kunnes se saa SIGCONT-signaalin.
Sisäänkirjautumistulkkeja ei voi keskeyttää kuin väkisin.
Valitsimet:
-f pakota keskeyttämään, vaikka tulkki olisi sisäänkirjautumis-
tulkki.
Paluuarvo:
Palauttaa onnistuneen paitsi jos työnohjaus ei ole käytössä tai tapahtuu
virhe.
|
|
549. |
Evaluate conditional expression.
This is a synonym for the "test" builtin, but the last argument must
be a literal `]', to match the opening `['.
|
|
2010-01-04 |
Evaluoi ehdollisen lausekkeen.
Tämä on sisäänrakennetun ”test”-komennon synonyymi, mutta viimeisen
argumentin pitää olla ”]”, joka sulkee avaavan ”[”:n.
|
|
550. |
Display process times.
Prints the accumulated user and system times for the shell and all of its
child processes.
Exit Status:
Always succeeds.
|
|
2010-01-04 |
Näyttää prosessiajat.
Tulostaa kumuloituneet käyttäjä- ja järjestelmäajat sekä komentotulkille
että kaikille sen lapsiprosesseille.
Paluuarvo:
Onnistuu aina.
|
|
554. |
Display or set file mode mask.
Sets the user file-creation mask to MODE. If MODE is omitted, prints
the current value of the mask.
If MODE begins with a digit, it is interpreted as an octal number;
otherwise it is a symbolic mode string like that accepted by chmod(1).
Options:
-p if MODE is omitted, output in a form that may be reused as input
-S makes the output symbolic; otherwise an octal number is output
Exit Status:
Returns success unless MODE is invalid or an invalid option is given.
|
|
2010-01-04 |
Näyttää tai asettaa tiedoston tilamaskin.
Asettaa käyttäjän tiedostonluontimaskin TILAKSI. Jos TILAA ei ole
annettu, tulostaa maskin nykyisen arvon.
Jos TILA alkaa numerolla, se käsitellään oktaalinumerona; muussa
tapauksessa se on symbolinen tilamerkkijono jonka chmod(1) hyväksyy.
Valitsimet:
-p jos TILAA ei ole annettu, tulostetaan hyödynnettävässä
muodossa
-S tulostaa symbolisena; muussa tapauksessa tulostetaan
oktaaliluku
Paluuarvo:
Palauttaa onnistuneen ellei TILA ole virheellinen tai on annettu
virheellinen valitsin.
|
|
557. |
Execute commands for each member in a list.
The `for' loop executes a sequence of commands for each member in a
list of items. If `in WORDS ...;' is not present, then `in "$@"' is
assumed. For each element in WORDS, NAME is set to that element, and
the COMMANDS are executed.
Exit Status:
Returns the status of the last command executed.
|
|
2010-01-04 |
Suorittaa komennot listan jokaiselle jäsenelle.
”For”-silmukka suorittaa komentoketjun listan jokaiselle alkiolle. Jos
”in SANAT ...;” ei ole annettu, käytetään rakennetta ”in $@”. NIMI asetetaan
vuorollaan jokaiseksi SANAT-listan alkioksi, ja KOMENNOT suoritetaan.
Paluuarvo:
Viimeisen suoritetun komennon paluuarvo.
|
|
558. |
Arithmetic for loop.
Equivalent to
(( EXP1 ))
while (( EXP2 )); do
COMMANDS
(( EXP3 ))
done
EXP1, EXP2, and EXP3 are arithmetic expressions. If any expression is
omitted, it behaves as if it evaluates to 1.
Exit Status:
Returns the status of the last command executed.
|
|
2010-01-04 |
Aritmeettinen for-silmukka.
Vastaa
(( LAUSEKE1))
while (( LAUSEKE2 )); do
KOMENNOT
(( LAUSEKE3 ))
done
LAUSEKE1, LAUSEKE2 ja LAUSEKE3 ovat aritmeettisiä lausekkeita. Jos jokin
lauseke on jätetty pois, se tulkitaan 1:ksi.
Paluuarvo:
Viimeisen suoritetun komennon paluuarvo.
|
|
559. |
Select words from a list and execute commands.
The WORDS are expanded, generating a list of words. The
set of expanded words is printed on the standard error, each
preceded by a number. If `in WORDS' is not present, `in "$@"'
is assumed. The PS3 prompt is then displayed and a line read
from the standard input. If the line consists of the number
corresponding to one of the displayed words, then NAME is set
to that word. If the line is empty, WORDS and the prompt are
redisplayed. If EOF is read, the command completes. Any other
value read causes NAME to be set to null. The line read is saved
in the variable REPLY. COMMANDS are executed after each selection
until a break command is executed.
Exit Status:
Returns the status of the last command executed.
|
|
2010-01-04 |
Valitsee sanat listasta ja suorittaa komennot.
SANAT lavennetaan, jolloin saadaan sanalista. Lavennettujen sanojen joukko
tulostetaan vakiovirhetulosteeseen juoksevasti numeroituna. Jos ”in SANAT”
puuttuu, käytetään rakennetta ”in $@”. Tämän jälkeen tulostetaan
PS3-kehote ja vakiosyötteestä luetaan rivi. Mikäli rivi koostuu
numerosta joka vastaa jotakin tulostetuista sanoista, asetetaan NIMEN
arvoksi kyseinen sana. Jos rivi on tyhjä, SANAT ja kehote tulostetaan
uudelleen. Mikäli saadaan EOF (tiedoston loppu), komento päättyy.
Mikä tahansa muu luettu arvo aiheuttaa NIMEN tyhjäämisen. Luettu rivi
tallennetaan REPLY-muuttujaan. KOMENNOT suoritetaan kunkin valinnan
jälkeen kunnes suoritetaan break-komento.
Paluuarvo:
Viimeisen suoritetun komennon paluuarvo.
|
|
560. |
Report time consumed by pipeline's execution.
Execute PIPELINE and print a summary of the real time, user CPU time,
and system CPU time spent executing PIPELINE when it terminates.
Options:
-p print the timing summary in the portable Posix format
The value of the TIMEFORMAT variable is used as the output format.
Exit Status:
The return status is the return status of PIPELINE.
|
|
2010-01-04 |
Raportoi komentoketjun suoritusajan.
Suorita KOMENTOKETJU ja tulosta yhteenveto käytetystä ajasta, käyttäjän
CPU-ajasta ja järjestelmän CPU-ajasta KOMENTOKETJUA suoritettaessa sen
päätyttyä.
Valitsimet:
-p tulosta ajastusyhteenveto siirrettävässä POSIX-muodossa.
Tulosteen muotoilussa käytetään TIMEFORMAT-muuttujan arvoa.
Paluuarvo:
KOMENTOKETJUN paluuarvo.
|
|
561. |
Execute commands based on pattern matching.
Selectively execute COMMANDS based upon WORD matching PATTERN. The
`|' is used to separate multiple patterns.
Exit Status:
Returns the status of the last command executed.
|
|
2010-01-04 |
Suorittaa komentoja tekstihaun perusteella.
Suorittaa valikoiden KOMENTOJA perustuen SANAAN joka sopii MALLINEESEEN.
”|”:ea käytetään erottamaan mallineita.
Paluuarvo:
Viimeisen suoritetun komennon paluuarvo.
|
|
562. |
Execute commands based on conditional.
The `if COMMANDS' list is executed. If its exit status is zero, then the
`then COMMANDS' list is executed. Otherwise, each `elif COMMANDS' list is
executed in turn, and if its exit status is zero, the corresponding
`then COMMANDS' list is executed and the if command completes. Otherwise,
the `else COMMANDS' list is executed, if present. The exit status of the
entire construct is the exit status of the last command executed, or zero
if no condition tested true.
Exit Status:
Returns the status of the last command executed.
|
|
2010-01-04 |
Suorittaa komentoja ehdollisesti.
”if KOMENNOT”-lista suoritetaan. Jos sen paluuarvo on nolla, suoritetaan
”then KOMENNOT”-lista. Muussa tapauksessa suoritetaan vuorollaan
kukin ”elif KOMENNOT”-lista, ja jos sen paluuarvo on nolla, suoritetaan
vastaava ”then KOMENNOT”-lista ja if-komento päätetään. Muutoin
suoritetaan ”else KOMENNOT”-lista, jos sellainen on. Koko rakenteen
paluuarvo on viimeisen komennon paluuarvo tai nolla, jos mikään ehto
ei toteutunut.
Paluuarvo:
Viimeisen suoritetun komennon paluuarvo.
|