MCLab Tutorial 7: All About Bash and Linux Command Line Tools
Автор: trbot
Загружено: 2019-08-15
Просмотров: 478
This series of videos was recorded for my students in the Multicore Lab at the University of Waterloo (http://mc.uwaterloo.ca), to serve as part of our Lab Wiki (https://gitlab.com/trbot86/multicore_....
High level overview:
cat/head/tail/less
nano/pico/micro
echo
quotes [5:50]
''
""
``
expr/bc [8:45]
redirection [16:30]
| to another command
> new file
>> append
>& redirect to a pipe address
pipes 1 (stdout) and 2 (stderr)
( cmd1 | cmd2 ) -- piping output from multiple commands
tee
printf [26:00]
if [28:20]
[] ; == != -eq -ne -lt -le ...
(()) $(())
for [34:30]
x in a b c
x in {1..5}
((x=0;x<10;++x))
((x=50; x≥10; x = x / 2))
grep [38:45] -E -v
to filter lines
cut [43:45]
to filter fields/columns
tr [48:00] -d -s
to replace/delete/squeeze characters
wc [50:00] -l -w -c
history [51:30] pipe to grep
example of processing data [52:00]
while read [1:01:15]
to manipulate fields/columns
awk [1:09:00]
to manipulate fields/columns
sed [not covered; learn yourself!]
to regex-replace text
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: