What are the common uses of shell
This article mainly introduces "what are the common uses of shell". In daily operation, I believe many people have doubts about the common usage of shell. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the questions about "what are the common uses of shell?" Next, please follow the editor to study!
# get the line number count= `cat filepach containing a string | grep-wn "string_content" | awk-F:'{cat $1}'`# delete the line containing a string (it will also delete\ n) sed-I'/ string_content*/d' filepach# inserts the data sed-I''$count'i string_content ='$contentVal'' filepath in the specified line, and the study of "what are the common uses of shell" ends? I hope I can solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!