System sed in AIX uses sed to modify or delete characters or strings in text. When 1. find the row containing & quot ;#& quot;: The system sed in awk... AIX uses sed to modify or delete characters or strings in the text. Www.2cto.com pg func.txt 0at
System sed in AIX uses sed to modify or delete characters or strings in text. Www.2cto.com pg func.txt 0at $ the @ begining ^ M The # file # name # is # func, ^ M 9and % it's % suffix % is. txt 1. find the row that contains "#": awk '$0 ~ // #/'Func.
Examples of SED usage
1. Replace the command s, do not change the original file
Sed ' s /book/bookall/' mysed
Sed-n ' s/book/bookall/' mysed
-N use alone will not output any content
Sed '
Use regular expressions and grep, sed, awk (1), grepawk
Some nonsense:
For regular expressions, I have always been confused. I can see some code. The script contains regular expressions, awk, sed, and I am totally confused. I can't remember how to
The following is LINUX/HP Unix/aix daily patrol script, you can refer to the rewrite, for their own server.#!/usr/bin/kshSyserrdate= ' date + '%m/%d 'Errcount=0status=Hosts= ' hostname 'Script= ' basenameReport= "/tmp/report.txt"#FS
1.linux view CPU and memory usageView memory consumption percentage:[Email protected] ~]# Free-m | Sed-n ' 2p ' | awk ' {print ' used mem is "$" m,total Mem is "$" m,used percent is "$3/$2*100"% "} 'Used mem is 15765m,total mem are 15949m,used
Some nonsense:
For regular expressions, I have always been confused. I can see some code. The script contains regular expressions, awk, sed, and I am totally confused. I can't remember how to use it at ordinary times, so I won't summarize it. If you
Getting started with regular expressions and grep, sed, awk (1)
Some nonsense:
For regular expressions, I have always been confused. I can see some code. The script contains regular expressions, awk, sed, and I am totally confused. I can't remember
Some nonsense:For regular expressions, always like to understand not understand, see some code, script regularly,awk,sed. The heart is always a bit empty. I can't remember the main. Usually not how to use, also did not summarize. Now have time,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.