Find Jobs
Hire Freelancers

Check for missing line in files recursively and add it

$10-30 USD

Completed
Posted over 9 years ago

$10-30 USD

Paid on delivery
Hi, I need a shell, python, or perl script i can run in cron at 1 min interval temporarily on CentOS6 that does the following. It searches /home/xen recursively looking for the following line in all .cfg files it finds in all subdirectories. This line exactly: device_model_version = 'qemu-xen-traditional' Only if it's missing it adds it to the end of the file Example directory structure showing multiple files it would need to iterate through in different subdirectories of /home/xen [root@xenhost1 xen]# pwd /home/xen [root@xenhost1 xen]# ls -Rl .: total 8 drwxr-xr-x 3 root root 4096 Feb 19 16:15 vm101 drwxr-xr-x 3 root root 4096 Feb 18 15:58 vm102 ./vm101: total 8 drwxr-xr-x 2 root root 4096 Dec 15 14:50 mnt -rw-r--r-- 1 root root 755 Feb 18 15:58 [login to view URL] ./vm101/mnt: total 0 ./vm102: total 8 drwxr-xr-x 2 root solusvm 4096 Feb 12 16:55 mnt -rw-r--r-- 1 solusvm solusvm 755 Feb 18 15:58 [login to view URL] ./vm102/mnt: total 0 [root@xenhost1 xen]#
Project ID: 7171891

About the project

1 proposal
Remote project
Active 9 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hello, I can do it in PERL by the end of today. Please check my profile for feedback. Thanks. Alexei
$30 USD in 1 day
4.1 (4 reviews)
3.6
3.6

About the client

Flag of UNITED STATES
Henderson, United States
5.0
1
Payment method verified
Member since Feb 20, 2015

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.