|
|
| cat file1
| file1
| tac file1
| file1 ( ..)
| more file1
| file1
| less file1
| file1 , (-), ..
| head -2 file1
| file1 . -
| tail -2 file1
| file1 . -
| tail -f /var/log/messages
| /var/log/messages .
|
|
| cat file | grep -i "Criteria" > result.txt
|
| cat file | grep -i "Criteria" result.txt
| . ,
| grep Aug /var/log/messages
| '/var/log/messages' , "Aug"
| grep ^Aug /var/log/messages
| '/var/log/messages' , "Aug"
| grep [0-9] /var/log/messages
| '/var/log/messages' ,
| grep Aug -R /var/log/*
| , "Aug", , /var/log
| sed 's/stringa1/stringa2/g' example.txt
| example.txt "string1" "string2", .
| sed '/^$/d' example.txt
| example.txt
| sed '/ *#/d; /^$/d' example.txt
| example.txt
| echo 'test' | tr '[:lower:]' '[:upper:]'
|
| sed -e '1d' result.txt
| example.txt
| sed -n '/string1/p'
| "string1"
| sed -e 's/ *$//' example.txt
|
| sed -e 's/string1//g' example.txt
| "string1"
| sed -n '1,8p;5q' example.txt
|
| sed -n '5p;5q' example.txt
|
| sed -e 's/0*/0/g' example.txt
|
| cat -n file1
|
| cat example.txt | awk 'NR%2==1'
| ,
| echo a b c | awk '{print $1}'
| . , -, / /
| echo a b c | awk '{print $1,$3}'
| . , -, / /
| paste file1 file2
| file1 file2 : 1 file1 = 1 1-n, 1 file2 = 1 n+1-m
| paste -d '+' file1 file2
| file1 file2 "+"
| sort file1 file2
|
| sort file1 file2 | uniq
| ,
| sort file1 file2 | uniq -u
| , (, , )
| sort file1 file2 | uniq -d
| ,
| comm -1 file1 file2
| , 'file1'
| comm -2 file1 file2
| , 'file2'
| comm -3 file1 file2
| ,
|
: 2016-03-27; !; : 296 | :
:
, , . ==> ... 1329 - | 1247 -
© 2015-2024 lektsii.org - - |