[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
 

"cut" forstår mig ikke ;-)



Hejsa 

Jeg har lige et lille problem omkring komandoen cut
Jeg ville gerne kunne bruge den sådan; cut -d" -f1 /EtEllerAndet
Men den nægter pure at bruge " som deler
Men hvordan får jeg ellers en deling på; "en eller anden txt"

Øjj øjj det var vist lidt rodet skrevet.. så prøver lige igen

Jeg ville gerne bruge en komando for at finde documentroot for apache
så jeg skrev:
grep -Ev "#" /etc/httpd/conf/httpd.conf | grep -i DocumentRoot | head -n 1 cut -d" -f2
Og forventede svaret /var/www/html for min RedHats vedkommende. 
Men næhh nej -d" går åbenbart ikke

Så hvordan finder jeg documentroot uanset om det er en Redhat, SuSe, eller en 3'ede ??

M.v.h

Kim Hermansen


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 19:24 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] *