I'm trying to do the following:
ch='\x21' line="\x21" len=50 for i in `seq 1 $len` do line+="$ch" done
Instead of 50 '!' (hex code \x21) I get a list of 50 '\x21'. How can I do this in bash?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community