Re: cut command on centos

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Jerry Geis wrote:
> How do I make the delimiter for cut be a single character with hex value
> 1e?
> 
> I tried in a script file:
> 
> DELIMITER='\x1e'
> DD=`echo $DATA | cut -f 1 --delimiter $DELIMITER`
use sed to substitute $DELIMITER to single character.

DD=`echo $DATA | sed -e "s/$DELIMITER/\:/g" | cut  -f 1 -d\:

> 
> and it tells me:
> cut: the delimiter must be a single character
> 
> Jerry
> 
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
> 
--
Diaa Radwan,RHCE


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux