[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [VI] bash shel script og vi



Har fundet svaret det er "fc" Fix Command fra bash selv som jeg ledte efter.
Skriv "fc" og kommandoen kan editeres i vi og en alm. ":wq" eksekverer så 
kommandoen.

Michael Westergaard wrote:

>> From sslug@sslug  Sat Jun  8 08:32:26 2002
>> Subject: [VI] bash shel script og vi
>>
>> Når man sidder og editere en shell kommando der bliver lidt for lang...
>> starter som en lille for i in `ls ....| grep ` do ...... en hel masse...
>> done
>> Hvordan er det nu kommandoen hentes ind i vi og tilbage igen til bash?
>> Ikke intereseret i at gemme det i en egentlig fil.
>>
> 
> Kan du ikke bruge musen til cut'n'paste?
> 
> Ellers kan du logge ud fra shellen, aabne ~/.bash_history i vi, aendre,
> gemme, starte en ny shell, og bruge command-history.
> 
> 



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 18:44 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *