Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Hi guys, need your help on this got a script that read files and put the it into a variable but the path has a special character "#" and therefore not copying.
Any help is greatly appreciated.
Thank you.
Quote:
#!/bin/bash
while IFS='' read -r line || [[ -n "$line" ]]; do
Is the msgs folder the only sub folder of Tasks? If so: try to copy the path manually, use tab completion. Not only will bash complete the name, but it will do so while properly escaping it, so you can take note of what you yourself need to do to copy that folder's contents.
Is the msgs folder the only sub folder of Tasks? If so: try to copy the path manually, use tab completion. Not only will bash complete the name, but it will do so while properly escaping it, so you can take note of what you yourself need to do to copy that folder's contents.
Thanks, if really no choice I have to do it manually. But I think I will do it for quite a few hours because there's a lot.
I suggest you to add set -xv at the beginning of your script and you will see what's happening. It will not fix itself, just will give you debug info. Probably helps...
Hi guys, thanks for all the replies never had the time to troubleshoot or try something. The deadline was approaching, to get the thing done I did it for 6 hours.
Hi guys, thanks for all the replies never had the time to troubleshoot or try something. The deadline was approaching, to get the thing done I did it for 6 hours.
Ouch!
Admire your dedication, but when you have time I would play with the tools to ensure you know ways to get it done quicker in the future.
I am trying to think of anything I do for 6 hours since I left the military, and got nothing. Even sleep is in shifts, and I rarely get 6 hours. Wow.
"no joy" is not a usable answer. It does not give any information about what did you really try, what's happened, what was the result, what went wrong - therefore we cannot give you any hint, just this one: "better luck next time".
Have you tried already set -xv?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.