有人可以为我解释这个命令:

时间:2017-05-25 09:19:48

标签: linux shell sed

有人可以解释这个命令:

sudo sed -i 's/app, Module,/app,/' /home/ubuntu/workspace/flask_blog/venv/lib/python3.4/site-packages/flask_uploads.py

" sed"命令吗?

1 个答案:

答案 0 :(得分:1)

如果文件Module,中的app,后面显示/home/ubuntu/workspace/flask_blog/venv/lib/python3.4/site-packages/flask_uploads.py,则会删除 tinymce.init({ mode : "specific_textareas", editor_deselector : "mceNoEditor", editor_selector: 'myTextEditor' , theme: 'modern', plugins: [ 'advlist autolink lists link image charmap print preview hr anchor pagebreak', 'searchreplace wordcount visualblocks visualchars code fullscreen' ], image_advtab: true, toolbar1: 'undo redo | insert | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image', toolbar2: 'print preview media | forecolor backcolor emoticons | codesample help fontselect fontsizeselect', rel_list: [ {title: 'follow', value: 'follow'}, {title: 'nofollow', value: 'nofollow'} ], external_plugins: {"nanospell": mypath}, nanospell_server: "php" // choose "php" "asp" "asp.net" or "java" }); 的第一次出现