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




Thread: shell scripting
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 01-23-2008
jaduks's Avatar
jaduks jaduks is offline
Registered User
 

Join Date: Aug 2007
Location: India
Posts: 177

Code:

$ echo "I love shell scripting" | awk '{for (j=NF;j>0;j--) {printf "%s ", $j}}'
scripting shell love I

//Jadu