Redirect in script
Community Support question - to convert into a paid question, click here
Lines in bold below have not yet been seen by the customer - those in blue are from the customer
Username : Date : Action : Comments [ close all ] |
|
|
|
javiermarcon : 01/10/03 06:22 PM : Incident created |
- Hello, if I execute the command echo 'pepe' >> pepe.txt in bash, it puts me 'pepe' at the end of pepe.txt, but if I put that command in a bash script, it doesn't work. How do I solve it?
Thanks.
|
|
|
|
Linegod_7611 : 01/10/03 06:49 PM : Reply received |
- It should work fine. Could you post your script?
I created a simple file called 'test' with the following content:
#!/bin/bash
echo 'pepe'>>pepe.txt
Then did:
# chmod 775 test
# ./test
---------------
Note: If this answer resolves your problem, please remember to close this
incident.
|
|
|
|
javiermarcon : 02/10/03 04:31 PM : Incident closed |
-
|
|
|
|
Language
Search Mandriva Expert
|