Search Results

Search: Posts Made By: davidl
21,931
Posted By davidl
Makaveli.2003, try this... Basically the same...
Makaveli.2003, try this... Basically the same stuff you've been doing... with a small change in syntax.

echo abcdef |sed 's/cd/GREAT/g' <--Should Display--> abGREATef


echo abcdef |sed...
21,931
Posted By davidl
Makaveli.2003, that code works great for me.... ...
Makaveli.2003, that code works great for me.... Must be something wrong with your sed installation. Is it possible for you to re-install?

echo abcdef |sed -e "s/c/X/" <--should yield--> abXdef...
21,931
Posted By davidl
I'm sure there's an easier or MUCH cleaner way......
I'm sure there's an easier or MUCH cleaner way... but this will give you numeric permissions on a filename:

NUMPERM=`ls -l $name |awk '{print $1}' |sed 's/-rwx/7/g; s/rwx/7/g; s/rw-/6/g;...
27,900
Posted By davidl
thanks for the redirect
thanks for the redirect :->
27,900
Posted By davidl
awk -F"," '{print $1 $2}' This should do it...
awk -F"," '{print $1 $2}'

This should do it for you!

that appears to be a comma separator. Just replace the "," with "." if not.
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 07:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy