The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 04-20-2008
psychobeauty psychobeauty is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 17
read -p "what date ?" vardate
echo $vardate
awk -v d="$vardate" '$0 ~ d{print}' weblog



i find this one that really works its output me the correct line and everything...
but each time i need to go and change the filename in order to find what i want...