[Leaplist] command line question ....

William A. Mahaffey III wam at hiwaay.net
Sat Feb 14 17:50:21 EST 2009



.... is there a way intrinsic to tcsh, bash, or perhaps using awk, to 
'mask' off the 1st n (or last n for that matter) elements of a long 
pathname (i.e. go from '/some/darn/long/idiot/moron/path' to either 
'/some/darn/long' or /long/idiot/moron/path', for example) ? I have RTFM 
a fair amount & it is eluding me .... TIA ....


-- 

	William A. Mahaffey III

 ----------------------------------------------------------------------

	"The M1 Garand is without doubt the finest implement of war
	 ever devised by man."
                           -- Gen. George S. Patton Jr.


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the Leaplist mailing list