×
Create a new article
Write your page title here:
We currently have 3,189 articles on s23. Type your article name above or create one of the articles listed here!



    s23
    3,189Articles

    Shell Redirection: Difference between revisions

    Content added Content deleted
    imported>dial-213-168-89-189.netcologne.de
    No edit summary
    imported>mutante
    mNo edit summary
     
    Line 37: Line 37:


    ---
    ---


    [[Category:Programming]]
    [[Category:Computer]]
    [[Category:PHP]]
    [[Category:Linux]]
    [[Category:Unix]]

    Latest revision as of 14:57, 26 February 2005

    Redirection

    cat /dev/null > file 	clear out a file
    
    
    >	redirect output to file
    >!	Redirect output to file even if file is protected
    
    >>	redirect output to a file apends to existing file
    
    >>! 	redirect output to a file apends to existing file even if file is protected
    
    < 	redirect file to a commands input
    
    <<	redirect file to a commands input untill txt encounterd
    
    >&	redirect output to file and error aswell
    
    	cat Files* >> NewBigFile	
    
    	wc << cat file		WC word count 
    
    2>&1   Redirect error out to std out
    
    

    ---

    Header Redirect to a webpage in PhP:

    <? Header("Location:$gourl"); ?>

    http://somedomain.com/redirect.php?gourl=http://someotherdomain.com/hello.html

    ---

    Cookies help us deliver our services. By using our services, you agree to our use of cookies.

    Recent changes

  • BruderSpektrum • 14 hours ago
  • BruderSpektrum • 18 hours ago
  • BruderSpektrum • 18 hours ago
  • BruderSpektrum • 18 hours ago
  • Cookies help us deliver our services. By using our services, you agree to our use of cookies.