Search Results

Search: Posts Made By: eggi
11,522
Posted By eggi
You can use perl's pack function to do that ...
You can use perl's pack function to do that

$hex_ascii=%20;
print "HEX $hex_ascii\n";
$hex_ascii =~ s/%(..)/pack("c",hex($1))/ge;
print "Alpha $hex_ascii\n";

Code above may not suit exactly...
44,129
Posted By eggi
Hey There, I don't believe it's possible...
Hey There,

I don't believe it's possible in grep, but you can do it pretty simply using egrep - with your example:

cat data|cut -f1|egrep '[0-9]|[1-7][0-5]'

I may be wrong about...
7,235
Posted By eggi
Hey there, Also, what's the "command"...
Hey there,

Also, what's the "command" that's being run? That may be an issue.

If you're running the command manually, are you running it from a remote terminal or a local console? ...
Showing results 1 to 3 of 3

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