Find Jobs
Hire Freelancers

47782 Need string manipulation

N/A

Đã hoàn thành
Đã đăng vào gần 19 năm trước

N/A

Thanh toán khi bàn giao
I need a simple command line utility to remove entries from a configuration file. In Particular, named.conf. Use perl/php/c .. I just need well commented code. Or just a function ... (for either) Need to call with 2 arguments: zone to remove, path to find file to edit You'll be searching for this: [semicolons removed due to sl filtering] zone "[login to view URL]" { type master[semicolon] file "/var/named/servername/[login to view URL]"[semicolon] }[semicolon] And removing from "zone" all the way to the blank line under the last }. It is very important that only one blank line remain between entries and that the file is kept very neat. Trailing blanks /etc need to be removed, and it must never leave any extra characters. I have done a few myself that work fine for weeks then all of a sudden an extra semicolon or long gaps of spaces appear. Other scripts looking at [login to view URL] are getting thrown off by the whitespaces. Any garbage characters and we will have problems. Please bid if you have some good tried and tested string manipulation functions that can do this right, every time. I'll run this in a large loop and take a look at the output.. please be sure your price includes fixing any bugs VERY quickly if they are discovered. Ideally this could be used on other text config files (like [login to view URL]) with some modification. Thanks - -- Sage
Mã dự án: 1797021

Về dự án

1 đề xuất
Dự án từ xa
Hoạt động 12 năm trước

Bạn muốn kiếm tiền?

Lợi ích khi chào giá trên Freelancer

Thiết lập ngân sách và thời gian
Nhận thanh toán cho công việc
Phác thảo đề xuất của bạn
Miễn phí đăng ký và cháo giá cho công việc
Đã trao cho:
Avatar người dùng
Can be done. PHP console version.
$35 USD trong 1 ngày
5,0 (150 nhận xét)
6,7
6,7

Về khách hàng

Cờ của PHILIPPINES
Mandaluyong, Philippines
5,0
64
Thành viên từ thg 12 23, 2010

Xác thực khách hàng

Cảm ơn bạn! Chúng tôi đã gửi email chứa đường link để bạn lấy tín dụng miễn phí.
Đã xảy ra lỗi trong khi gửi email của bạn. Hãy thử lại.
Người Dùng Đã Đăng Ký Tổng Số Việc Đã Đăng
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Đang tải xem trước
Đã cấp quyền truy cập vị trí.
Phiên đăng nhập của bạn đã hết hạn và bạn đã bị đăng xuất. Hãy đăng nhập lại.