-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommands
More file actions
45 lines (37 loc) · 761 Bytes
/
commands
File metadata and controls
45 lines (37 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
$ ./01
$ ls -l 01
$ chmod u+x 01
$ chmod u-x 01
$ chmod a+x 01
$ cat notka.txt
$ PATH=$PATH:~/Pulpit/shell
$ PATH=$PATH:~/workspace/Bash-Shell-Scripting
Shebang: #!/bin/bash
Shebang: #!/usr/bin/env bash
$ type ls
$ type 02
$ man read
$ help read
# debugowanie:
#!/bin/bash -x
# set -x
# set +x
$ if mkdir a; then echo "ok"; else echo "error"; fi
$ help if
$ checking="witaj"
$ echo $checking, $USER
$ opakowane="$checking, $USER"
$ echo $opakowane
$ filename="check.txt"
$ echo $filename
$ touch $filename
$ filenames="check check2"
$ touch $filenames
$ ls -l $filenames
$ export EDITOR=vim
$ help test
# output zapisany do pliku out_file
$ 04_conditions > out_file
# dane do read wprowadzone z pliku in_file
$ 04_conditions < in_file
$ touch {a..d}.mdt