Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
basic function of awk
Name: Ankit Jain Date: December 4, 2007 at 05:46:42 Pacific OS: Unix CPU/Ram: 512MB Product: HP
Summary: I think the substring and length functions of awk would help you. for FileName in `ls *.sh` ; do echo $FileName | awk '{ if (length($0)>11) { \ { print substr($0,11,70) } \ } else { \ { p...
Summary: Some versions of the bash shell have support for the 'declare' command similar to the typeset of ksh. "http://sunsite.utk.edu/gnu/bash/features_24.html#SEC24" . Also you might look as the substr funct...