I know it doesn’t matter what the file extentions are in linux but what is the convention for naming sed scripts? I have seen both .sh, .sed, .sd
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use
.shwhen the file contains shell commands; use.sedwhen it has only Sed commands and is loaded bysed -f.E.g., the following would be called
script.sh:While this would be
script.sed:Editors such as Vim will give you proper highlighting based on
.shand.sed.