Bash: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Geist (Diskussion | Beiträge) |
Geist (Diskussion | Beiträge) |
||
Zeile 28: | Zeile 28: | ||
==== Wildcards ==== | ==== Wildcards ==== | ||
− | '''*''' asterisk | + | '''*''' asterisk | any char |
− | '''?''' question mark | + | '''?''' question mark | single char |
− | '''[]''' square brackets | + | '''[]''' square brackets | set of single char or a range of chars |
Version vom 21. Februar 2022, 17:33 Uhr
Inhaltsverzeichnis
Script
$ type script $ chmod +x script $ ./script $ .script $ source script $ bash script
#!/bin/bash
Command Line
Everything is a file 255 Byte The maximum length for a file name is 255 bytes. The maximum combined length of both the file name and path name is 4096 bytes. This length matches the PATH_MAX that is supported by the operating system. Names are case-sensitive
Special chars to avoid in names/filenames
/ Never \ Escaped - Never at beginning [] Escaped {} Escaped * Escaped ' Escaped " Escaped
Wildcards
* asterisk | any char ? question mark | single char [] square brackets | set of single char or a range of chars