General discussion
-
Topic
-
Shell script !
LockedI’m trying to create an unix script shell for reading a file with this text:
Example:
1 Error log not found!
2 Error on file!
3 Error on permissions!And this my script shell:
A=’cat file’
for in in $A
do
echo $i
donethe information displayed on my screen is this:
1
Error
log
not
found!
2
Error
on
file!
3
Error
on
permissions!And what I need is the information displayed in the followinf format:
1 Error log not found!
2 Error on file! 3 Error on permissions!How can I keep it together or just the message in the variable.
Thank you for your help
All Comments
Viewing 1 reply thread