Shell scripts: determining filename length

Magnus Andersen mag.andersen at gmail.com
Wed Sep 7 15:18:02 UTC 2005


I'd use the wc command with the -m flag to ge the number of charactes used 
in the file name. You could use an awk substr to mod the name if longer than 
64.

-- 
Magnus Andersen
Systems Administrator / Oracle DBA
Walker & Associates, Inc.



More information about the redhat-list mailing list