Last active
October 12, 2016 14:57
-
-
Save sokil/a3080c892f3dede2deb49df6789f5b61 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# convert line | |
echo "fff" | php -r '$id = stream_get_contents(STDIN); $id[0] = dechex(15 - hexdec($id[0])); echo $id . PHP_EOL;' | |
# convert file | |
head log.csv | xargs -L 1 | xargs -I{} php -r '$id = "{}"; $id[0] = dechex(15 - hexdec($id[0])); echo $id . PHP_EOL;' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment