Search Results

Search: Posts Made By: peterloo
3,958
Posted By peterloo
You are absolutely correct. I don't know what I...
You are absolutely correct. I don't know what I did, but it did not work earlier. Thanks for your help.
3,958
Posted By peterloo
Nope it did not work. When I echo it out, it...
Nope it did not work. When I echo it out, it shows "\>". I tried using eval, but with eval, I can get the return code if there was a problem with the command.
3,958
Posted By peterloo
direction symbol in a variable as part of the command
Hi,

How can I get this to work?

#!/bin/ksh

if [ -n "$1" ]; then
direction=">>"
else
direction=">"
fi

cat some_file_name $direction temp.txt

exit

This shell script is not...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 07:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy