Sep 4, 2003 #1 msen IS-IT--Management Apr 24, 2001 36 US CustDirNam=`echo $OutFile|cut -f1 -d.||cut -f1 -d_` If this right ?
Sep 4, 2003 #2 PHV MIS Nov 8, 2002 53,708 FR Try something like this: Code: CustDirNam=`echo $OutFile|sed 's![._].*!!` Hope This Help PH. Upvote 0 Downvote
Sep 4, 2003 #3 pavNell Technical User Sep 27, 2002 178 US PH, please explain the sed expression that you posted above. Not familiar with it. Thanks. Upvote 0 Downvote
Sep 5, 2003 #4 PHV MIS Nov 8, 2002 53,708 FR pavNell, Code: 's![._].*!!` s substitue ! pattern delimiter [._] either point or underscore .* any character until the end of string !! empty replacement string Anyway: Code: man sed Hope This Help PH. Upvote 0 Downvote
pavNell, Code: 's![._].*!!` s substitue ! pattern delimiter [._] either point or underscore .* any character until the end of string !! empty replacement string Anyway: Code: man sed Hope This Help PH.