Search Results

Search: Posts Made By: phil8258
Forum: Programming 07-31-2010
5,789
Posted By phil8258
Python3 bytearray padding
Hi,
I'm trying to create a padded bytearray in Python3.
Currently I have something like this:

inputstuff = [
('A' , b'ABCD'),
('B' , b'EFGH'),
('C' , b'IJKL'),
('D' , b'MNOP')
]
BA =...
12,004
Posted By phil8258
drewk, This is perfect. Exactly what i'm after!...
drewk, This is perfect. Exactly what i'm after! Many Thanks :O).

I don't know any perl whatsoever, so improvements to the script wont be any time soon. I've been "writing" bash scripts a few weeks...
12,004
Posted By phil8258
I thanks for your response. I understand how you...
I thanks for your response. I understand how you use head and tail, and your script will help pull out a middle section, however let me try and clear up what i'm trying to do.

The input text file...
12,004
Posted By phil8258
Script to split text files
Hi All,
I'm fairly new to scripting, so need a little help to get started with this problem.
I don't mind whether I go for an awk/bash/other approach, I don't really know which would be best suited...
Showing results 1 to 4 of 4

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