/l3/users/20-10-2014/NT-Ladm/debian1.net.nt/root :1 :2 :3 :4 |
|
#-v obratnoe ot poiska (ishim stroki ne soderjashie sh)
![]() l3script: syntax error near unexpected token `(' |
#vi ip
--- /dev/null 2014-10-17 18:42:44.555999990 +0300 +++ ip 2014-10-22 10:39:12.126093634 +0300 @@ -0,0 +1,6 @@ +10.10.3.254 +192.45.8.221 +176.9.211.8 +96.254.254.254 +10.254.222.196 +243.227.159.154 |
#grep -E '(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.?){4}' /etc/
![]() grep: /etc/: Это каталог |
#grep -E '(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\.?){4}' ip
![]() grep: Непарная ( или \( |
#grep -E '(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\.?)){4}' ip
10.10.3.254 192.45.8.221 176.9.211.8 96.254.254.254 10.254.222.196 243.227.159.154 |
#grep -E '(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\.|$)){4}' ip
10.10.3.254 192.45.8.221 176.9.211.8 96.254.254.254 10.254.222.196 243.227.159.154 |
#grep -rE '(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\.|$)){4}' /etc/
/etc/exim4/conf.d/router/200_exim4-config_primary: 255.255.255.255 /etc/exim4/exim4.conf.template: 255.255.255.255 /etc/dhcp/dhclient-exit-hooks.d/rfc3442-classless-routes:# 192.168.10.0/24 via 192.168.1.1 /etc/dhcp/dhclient-exit-hooks.d/rfc3442-classless-routes:# 10.0.0.0/8 via 10.10.17.66.41 /etc/security/access.conf:#+ : root : 192.168.200.1 192.168.200.4 192.168.200.9 /etc/security/access.conf:#+ : root : 127.0.0.1 /etc/security/access.conf:# The same is 192.168.201.0/24 or 192.168.201.0/255.255.255.0 /etc/ssl/openssl.cnf:# testoid1=1.2.3.4 /etc/ssl/openssl.cnf:tsa_policy1 = 1.2.3.4.1 /etc/ssl/openssl.cnf:tsa_policy2 = 1.2.3.4.5.6 /etc/ssl/openssl.cnf:tsa_policy3 = 1.2.3.4.5.7 /etc/ssh/sshd_config:#ListenAddress 0.0.0.0 /etc/network/interfaces: address 192.168.13.1 /etc/network/interfaces: netmask 255.255.255.0 /etc/network/interfaces: gateway 192.168.13.253 /etc/resolv.conf:nameserver 192.168.13.253 /etc/networks:default 0.0.0.0 /etc/networks:loopback 127.0.0.0 /etc/networks:link-local 169.254.0.0 |
#naiti po shablonu v papke etc
l3script: naiti: команда не найдена |
#/etc | grep -E '[^0]$'
l3script: /etc: Это каталог |
#pokazat stroi ne 0
l3script: pokazat: команда не найдена |
#pokazivaet nomer stroki faila gde naiden zapros
![]() l3script: pokazivaet: команда не найдена |
#cat wget.txt | tr [:lover:] [:upper:]
![]() tr: неверный класс символов «lover» |
#cat wget.txt | tr [:lower:] [:upper:]
-*- TEXT -*- GNU WGET ======== CURRENT WEB HOME: HTTP://WWW.GNU.ORG/SOFTWARE/WGET/ GNU WGET IS A FREE UTILITY FOR NON-INTERACTIVE DOWNLOAD OF FILES FROM THE WEB. IT SUPPORTS HTTP, HTTPS, AND FTP PROTOCOLS, AS WELL AS RETRIEVAL THROUGH HTTP PROXIES. IT CAN FOLLOW LINKS IN HTML FAVORITE PIGES AND CREATE LOCAL VERSIONS OF REMOTE WEB SITES, FULLY RECREATING THE DIRECTORY STRUCTURE OF THE ORIGINAL SITE. THIS IS SOMETIMES REFERRED TO AS "RECURSIVE DOWNLOADING." ... USA. ADDITIONAL PERMISSION UNDER GNU GPL VERSION 3 SECTION 7 IF YOU MODIFY THIS PROGRAM, OR ANY COVERED WORK, BY LINKING OR COMBINING IT WITH THE OPENSSL PROJECT'S OPENSSL LIBRARY (OR A MODIFIED VERSION OF THAT LIBRARY), CONTAINING PARTS COVERED BY THE TERMS OF THE OPENSSL OR SSLEAY LICENSES, THE FREE SOFTWARE FOUNDATION GRANTS YOU ADDITIONAL PERMISSION TO CONVEY THE RESULTING WORK. CORRESPONDING SOURCE FOR A NON-SOURCE FORM OF SUCH A COMBINATION SHALL INCLUDE THE SOURCE CODE FOR THE PARTS OF OPENSSL USED AS WELL AS THAT OF THE COVERED WORK. |
#cat wget.txt | tr -d [:punct:][:digit:]
text GNU Wget Current Web home httpwwwgnuorgsoftwarewget GNU Wget is a free utility for noninteractive download of files from the Web It supports HTTP HTTPS and FTP protocols as well as retrieval through HTTP proxies It can follow links in HTML favorite piges and create local versions of remote web sites fully recreating the directory structure of the original site This is sometimes referred to as recursive downloading While doing that Wget respects the Robot Exclusion Standard ... USA Additional permission under GNU GPL version section If you modify this program or any covered work by linking or combining it with the OpenSSL projects OpenSSL library or a modified version of that library containing parts covered by the terms of the OpenSSL or SSLeay licenses the Free Software Foundation grants you additional permission to convey the resulting work Corresponding Source for a nonsource form of such a combination shall include the source code for the parts of OpenSSL used as well as that of the covered work |
#cat wget.txt | tr -d [:punct:][:digit:] | tr -d [:upper:] [:lower:]
![]() tr: лишний операнд «[:lower:]» При удалении без уплотнения повторов можно задать две только одну таблицу. Попробуйте «tr --help» для получения более подробного описания. |
#cat wget.txt | tr -d [:punct:][:digit:] | tr [:upper:] [:lower:]
text gnu wget current web home httpwwwgnuorgsoftwarewget gnu wget is a free utility for noninteractive download of files from the web it supports http https and ftp protocols as well as retrieval through http proxies it can follow links in html favorite piges and create local versions of remote web sites fully recreating the directory structure of the original site this is sometimes referred to as recursive downloading while doing that wget respects the robot exclusion standard ... usa additional permission under gnu gpl version section if you modify this program or any covered work by linking or combining it with the openssl projects openssl library or a modified version of that library containing parts covered by the terms of the openssl or ssleay licenses the free software foundation grants you additional permission to convey the resulting work corresponding source for a nonsource form of such a combination shall include the source code for the parts of openssl used as well as that of the covered work |
#cat /etc/passwd | awk --help
![]() awk: not an option: --help |
#awk --help
![]() awk: not an option: --help |
#cat /etc/passwd | awk -F: '$3>1000'
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh student:x:1001:1001::/home/student:/bin/bash |
#cat /etc/passwd | awk -F: '$3>=1000'
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh user:x:1000:1000:user,,,:/home/user:/bin/bash student:x:1001:1001::/home/student:/bin/bash |
#cat /etc/passwd | awk -F: '$3>=1000 && $3!=65534'
user:x:1000:1000:user,,,:/home/user:/bin/bash student:x:1001:1001::/home/student:/bin/bash |
#cat /etc/passwd | awk -F: '$3>=1000 && $3!=65534{print $1}'
user student |
#sed 's/: /g' /etc/passwd
![]() sed: -e выражение #1, символ 6: незавершенная команда `s' |
#sed -e 's/: /g' /etc/passwd
![]() sed: -e выражение #1, символ 6: незавершенная команда `s' |