<br><br><div class="gmail_quote">On Sun, May 20, 2012 at 1:01 AM, arxaaron <span dir="ltr"><<a href="mailto:arxaaron@gmail.com" target="_blank">arxaaron@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 2012/05/19, at 11:21 , Damon L. Chesser wrote:<br>
<br>
> On Sat, 2012-05-19 at 10:54 -0400, arxaaron wrote:<br>
>> On 2012/05/18, at 17:55 , Drifter wrote:<br>
>><br>
>>> Thanks. That did it.<br>
>>><br>
>>> sean<br>
>>><br>
>><br>
>><br>
>> Pipes ["|"] are for moving output across processes.<br>
>><br>
>> I suspect that bash was trying to run your empty text file<br>
>> as a process. "Permission Denied" was an appropriate<br>
>> error message.<br>
>><br>
>> Redirects [">" | ">>"] are for writing output streams to files.<br>
>> The first version appends to the file (and creates it if it doesn't<br>
>> exist), the second "double" form overwrites the file (or creates<br>
>> it if it doesn't exist)<br>
><br>
> Aaron,<br>
><br>
> I think you got it backwards:<br>
><br>
> damon@dam-main:~/Desktop$ touch testredirect.xt<br>
> damon@dam-main:~/Desktop$ echo 1 > testredirect.xt<br>
> damon@dam-main:~/Desktop$ echo 2 > testredirect.xt<br>
> damon@dam-main:~/Desktop$ cat testredirect.xt<br>
> 2<br>
> damon@dam-main:~/Desktop$ echo 1 >> testredirect.xt<br>
> damon@dam-main:~/Desktop$ cat testredirect.xt<br>
> 2<br>
> 1<br>
><br>
<br>
</div>DOH!! Thank you. I did state that backward. Yours is correct:<br>
">>" is the append to file redirect.<br>
<br>
peace<br>
aaron<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
<br>
<br>
><br>
>><br>
>> HTH<br>
>> peace<br>
>> aaron<br>
>><br>
>>> ------------------------------------------------------------------------------------<br>
>>><br>
>>> On Friday, May 18, 2012 05:37:43 pm Robert L. Harris wrote:<br>
>>>> try ">" instead of "|"<br>
>>>><br>
>>>> On Fri, May 18, 2012 at 3:27 PM, Drifter <<a href="mailto:drifter@oppositelock.org">drifter@oppositelock.org</a>><br>
>>> wrote:<br>
>>>>> I keep reminding myself that I don't begin to know what I think I<br>
>>>>> know! :(<br>
>>>>><br>
>>>>> I am about to upgrade this box, finally from FC 13 to FC 14.<br>
>>>>> Ought to be simple enough. I have the CD, which I think will do a<br>
>>>>> clean install onto a software RAID.<br>
>>>>><br>
>>>>> Prior to that I really ought to have on hand a list of all the<br>
>>>>> installed packages.<br>
>>>>><br>
>>>>> So I created a file <app_list.txt> on the Desktop and then tried<br>
>>>>> this:<br>
>>>>><br>
>>>>> yum list installed | ~/Desktop/app_list.txt<br>
>>>>> and got back this<br>
>>>>><br>
>>>>> bash: /home/kilpatms/Desktop/app_list.txt: Permission denied<br>
>>>>><br>
>>>>> WTF!<br>
>>>>><br>
>>>>> So I checked the perms on the existing (empty) file and they were<br>
>>>>> correct. Then I tried the same thing as root, expanding the ~/ and<br>
>>>>> got the same response.<br>
>>>>><br>
>>>>> So, How DO I make yum throw a list of the installed packages to a<br>
>>>>> text file rather than to the terminal?<br>
>>>>><br>
>>>>> Sean<br>
>>>>><br>
>>>>><br>
>>>>> _______________________________________________<br>
>>>>> Ale mailing list<br>
>>>>> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
>>>>> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
>>>>> See JOBS, ANNOUNCE and SCHOOLS lists at<br>
>>>>> <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
>>> _______________________________________________<br>
>>> Ale mailing list<br>
>>> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
>>> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
>>> See JOBS, ANNOUNCE and SCHOOLS lists at<br>
>>> <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
>><br>
>> _______________________________________________<br>
>> Ale mailing list<br>
>> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
>> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
>> See JOBS, ANNOUNCE and SCHOOLS lists at<br>
>> <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
><br>
> --<br>
> Damon<br>
> <a href="mailto:damon@damtek.com">damon@damtek.com</a><br>
><br>
> _______________________________________________<br>
> Ale mailing list<br>
> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
> See JOBS, ANNOUNCE and SCHOOLS lists at<br>
> <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
<br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</div></div></blockquote></div><br>You can use a reverse < to pull data from a file as well, and I cannot think of any other file-related operators. <br>sort < myfile -r > my-reverse-order-file<br clear="all"><br>
-- <br>This Apt Has Super Cow Powers - <a href="http://sourcefreedom.com" target="_blank">http://sourcefreedom.com</a><br>Open-Source Software in Libraries - <a href="http://FOSS4Lib.org" target="_blank">http://FOSS4Lib.org</a><br>
Advancing Libraries Together - <a href="http://LYRASIS.org" target="_blank">http://LYRASIS.org</a><br>Apache Open Office Developer <a href="mailto:wolfhalton@apache.org" target="_blank">wolfhalton@apache.org</a><br><br>