Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Thank you grange, for the reply.
I prefer to have scripts so that I can extract all the text/string messages into a text file, eliminating duplicates, create another text file with the help of this text file with an equivalent message (probably in another language) and the second script is executed to replace all the original messages with the alternate messages. This has to be achieved for program files or scripts in all directories of the directory of a project (website).
Thank you grange, for the reply.
I prefer to have scripts so that I can extract all the text/string messages into a text file, eliminating duplicates, create another text file with the help of this text file with an equivalent message (probably in another language) and the second script is executed to replace all the original messages with the alternate messages. This has to be achieved for program files or scripts in all directories of the directory of a project (website).
Regards
Bobs
Same question as your other thread, but with some details.
If you post what you've written/tried, and where you're stuck, we will be glad to help you. But, this is not the place to come to get your scripts written for you, without any effort on your part. A brief Google search turns up lots, and the Perl documentation itself has examples/samples:
Dear TBOne,
Thank you for the information ans suggestion. I am completely new to perl and i thought it will take long to get it myself. Anyway, I will try to do it (at least something) myself nd will come back, for what ever problems I face.
Thank you once again.
Bobs
Dear TBOne,
Thank you for the information ans suggestion. I am completely new to perl and i thought it will take long to get it myself. Anyway, I will try to do it (at least something) myself nd will come back, for what ever problems I face.
We will always be happy to help, but if you want someone to write programs for you, you need to be prepared to pay them. The LQ Job Marketplace is on the right hand side of the site. Post what you need and how much you want to pay, and someone will offer to do it for you.
Otherwise, if YOU are trying to learn, having someone else write it for you is a very poor way to do it.
Traversal of tree-like structures is very often does using recursive techniques. In this case, the algorithm is roughly:
go to the specified node (directory)
save a list of all leaf nodes (files) at this directory.
save a list of all child nodes (subdirectories) at this level
iteratively call this function/subroutine for each child node, passing the name of the child node, and adding the returned lists to the lists accumulated for this node
return the complete lists
There are other, non-recursive, methods. Hope someone posts some.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.