how to read file and use content per line?

asked 2016-01-28 07:26:00 -0500

puppetH gravatar image

Hello!

I have txt file consists where and what i want to delete, for example: /data/1 bak /data/2 tmp /data/3 dbf

This mean puppet agent looking in /data/1 dir all files with bak extension and remove them.

My desirable scheme:
1. This file storage on puppet master
2. Puppet agent read (or copy on agent-side than read) this file and delete specified files if they are.

Regards

edit retag flag offensive close merge delete

Comments

I am sorry, but it is very hard to understand your question. Can you perhaps show code and what you expected should happen and what result you got instead?

Henrik Lindberg gravatar imageHenrik Lindberg ( 2016-02-07 18:31:58 -0500 )edit