Home > System Tutorial > LINUX > body text

Detailed explanation of rev command

WBOY
Release: 2024-01-11 21:57:05
forward
1149 people have browsed it
Introduction The rev command outputs the contents of each line in the file in reverse order of characters, that is, the first character is output last, the last character is output first, and so on. Let’s Let’s explain in detail how to use the chcon command.
grammar
rev(参数)
Copy after login
parameter
文件:指定要反序显示内容的文件。
Copy after login
[root@localhost ~]# cat iptables.bak 
# Generated by iptables-save v1.3.5 on Thu Dec 26 21:25:15 2013 
*filter 
:INPUT DROP [48113:2690676] 
:FORWARD accept [0:0] 
:OUTPUT ACCEPT [3381959:1818595115] 
-A INPUT -i lo -j ACCEPT 
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT 
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT 
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT 
-A INPUT -p icmp -j ACCEPT 
-A OUTPUT -o lo -j ACCEPT 
COMMIT 
# Completed on Thu Dec 26 21:25:15 2013 
[root@localhost ~]# rev iptables.bak 
3102 51:52:12 62 ceD uhT no 5.3.1v evas-selbatpi yb detareneG # 
retlif* 
]6760962:31184[ PORD TUPNI: 
]0:0[ TPECCA DRAWROF: 
]5115958181:9591833[ TPECCA TUPTUO: 
TPECCA j- ol i- TUPNI A- 
TPECCA j- 22 tropd-- pct m- pct p- 
TUPNI A- TPECCA j- 08 tropd-- pct m- pct p- TUPNI A- 
TPECCA j- DEHSILBATSE,DETALER etats-- etats m- TUPNI A- 
TPECCA j- pmci p- TUPNI A- 
TPECCA j- ol o- TUPTUO A- 
TIMMOC 
3102 51:52:12 62 ceD uhT no detelpmoC #
Copy after login

The above is the detailed content of Detailed explanation of rev command. For more information, please follow other related articles on the PHP Chinese website!

source:linuxprobe.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template