Search Results

Search: Posts Made By: RickyC9999
Forum: Programming 11-17-2011
1,329
Posted By Corona688
This is not encryption. It just reorders the...
This is not encryption. It just reorders the bytes.

To undo the encryption operation, run each 4-byte chunk of data through the same function you already have.

int main(void)
{
...
3,868
Posted By birei
Hi, A 'sed' solution: sed -n '/^---/ {...
Hi,

A 'sed' solution:

sed -n '/^---/ { x ; /^---/ { s/^\n// ; s/\n\+/ , /g ; p } } ; /^---/! { s/ *$// ; H }' infile
Regards,
Birei
3,868
Posted By Scrutinizer
I can't reproduce this. I get: $ mawk...
I can't reproduce this. I get:
$ mawk 'END{print _}/^-/{if(_)print _;_=$0;next}{_=_";"$0}' infile
-------;2010-10-18;10:55:50;AV;0594 ;F0594;Windows NT Versi¢n 4.0 ;lun 18/10/2010 ;10.55...
3,868
Posted By agama
This works for me: awk ' ...
This works for me:


awk '
function p()
{
if( buffer )
print "---" buffer; # print if it existed; dont print for last seperator
...
7,383
Posted By danmero
awk 'END{print _}/^-/{if(_)print...
awk 'END{print _}/^-/{if(_)print _;_=$0;next}{_=_" , "$0}' infile
Showing results 1 to 5 of 5

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