whatisthis777
MIS
set names = (James Mary) <-- user inputs James and Mary
I need to output this to a file as The names are "James" "Mary" <-- in one line
This is what I have:
set namecount = $#names
echo The names are > file.txt
while (${namecount} != 0)
echo -n \"${names[$namecount]}\" >> file.txt
@ namecount = ($namecount -1)
end
The output is
The names are <-- line1
"James""Mary" <-- line2
I want them to be in the same line. How do I do that? Your help will be highly appreciated.
I need to output this to a file as The names are "James" "Mary" <-- in one line
This is what I have:
set namecount = $#names
echo The names are > file.txt
while (${namecount} != 0)
echo -n \"${names[$namecount]}\" >> file.txt
@ namecount = ($namecount -1)
end
The output is
The names are <-- line1
"James""Mary" <-- line2
I want them to be in the same line. How do I do that? Your help will be highly appreciated.