Search Results

Search: Posts Made By: twjolson
3,143
Posted By twjolson
I did come here for help, he wasn't helpful, and...
I did come here for help, he wasn't helpful, and was insulting.

I get what you're saying about 1 awk instance gobbling up all the incoming data. Thank you, that is helpful. I guess I am at a...
3,143
Posted By twjolson
Like I said, it is a snippet, even more so, it is...
Like I said, it is a snippet, even more so, it is a snippet of a work in progress. So, all the undefined things - are. And the outputs you say are missing, will be put in place later.

My...
3,143
Posted By twjolson
Hashing URLs
So, I am writing a script that will read output from Bulk Extractor (which gathers data based on regular expressions). My script then reads the column that has the URL found, hashes it with MD5,...
10,802
Posted By twjolson
Worked perfectly. Thank you for the help, and...
Worked perfectly. Thank you for the help, and the lesson. I thought sed used bash's rules. Learn something new everyday.
10,802
Posted By twjolson
Yes, the desired output would take the original...
Yes, the desired output would take the original link and image tags and replace them with just :

<img src=redact.png>
10,802
Posted By twjolson
Replacing HTML tags with sed
Ok, so this is stupid simple, and I know I am going to feel like an idiot when I get help.

I am altering a HTML report that has contraband in it so that the links to said contraband and the images...
5,205
Posted By twjolson
Well, that is embarrassing. I have no idea why I...
Well, that is embarrassing. I have no idea why I didn't see that before.

Thank you RudiC and Yoda.
5,205
Posted By twjolson
Here is the output of bash -xv : ...
Here is the output of bash -xv :


#!/bin/bash -xv

image="$1"
+ image='AD-ACE Recert.E01'

#Create a non-spaced, non-extensioned version of the filename for a folder name.
x="$image"
+...
5,205
Posted By twjolson
Forgive my lack of knowledge, but I know nothing...
Forgive my lack of knowledge, but I know nothing of xtrace. The searches I've done on it since reading your message didn't shed any additional light on it. More information would be welcome.

I...
5,205
Posted By twjolson
Point taken. Regardless, that isn't the...
Point taken.

Regardless, that isn't the cause of my current problems. I removed them, and it's still acting the same.
5,205
Posted By twjolson
Well, at least I feel a little better that my...
Well, at least I feel a little better that my problem wasn't glaringly obvious. But then I feel bad again because I still don't know what the hell is going on.

Sometimes I put those around stand...
5,205
Posted By twjolson
I thought of that. But no. The file names...
I thought of that. But no.

The file names are generated by the script in the form of Unallocated-[start sector]-[end sector].raw, where [] denotes a variable. These files are created as...
5,205
Posted By twjolson
As I said in the text, I was using echo to echo...
As I said in the text, I was using echo to echo back the xxd command as it should be ran. This echos back the command just fine, file name and all. When I actually run xxd (not echo'ed), it doesn't...
5,205
Posted By twjolson
Using variable as a file name
Ok, I will admit right up front that this is stupid, and I shouldn't be hung up on this. I have a script that checks the unallocated areas of space, and checks to see if they are empty or not. If...
10,267
Posted By twjolson
Thanks for all the feedback everyone. I got...
Thanks for all the feedback everyone.

I got the answer from the Sleuthkit users list.

I needed to have "$image" in quotes. It turns out that when I used \ to escape the white space, the parent...
10,267
Posted By twjolson
Apologies #!/bin/bash -xv image=$1 ...
Apologies


#!/bin/bash -xv
image=$1
mmls $image
10,267
Posted By twjolson
Segmentation Fault in BASH
So I am writing a script that will interpret the partition table of a forensic evidence file, find the unallocated spaces, then determine if those spaces are empty or contain data.

I am stuck on...
2,121
Posted By twjolson
That seemed to fix it. Many thanks!
That seemed to fix it. Many thanks!
2,121
Posted By twjolson
Thank you, it worked pretty good. It didn't...
Thank you, it worked pretty good.

It didn't move some of the files though. There are about 400 some files left over. A simple cut and paste fixed that.

I think it might be that they had a...
2,121
Posted By twjolson
When it reaches a certain number of files, like...
When it reaches a certain number of files, like 1000.

Sorry if I wasn't clear enough, and thanks for the reply.
2,121
Posted By twjolson
Copy a number of files to a directory, then more to another
I can't find how to do this.

I want to take a bulk of files, and copy/move a specific number of them (say 1000) to a newly created directory. Once that directory is full, I want to create a new...
3,706
Posted By twjolson
Many thanks for that detailed explanation. ...
Many thanks for that detailed explanation.

One question. The code you posted :

kw=$1 dest=$2

while IFS= read -r ifile; do
cp -- "$ifile" "$dest/"
done < "$kw"

When I run it, it won't...
3,706
Posted By twjolson
Worked like a charm. Thank you very much. ...
Worked like a charm. Thank you very much.

Correct me if I am wrong.

IFS= sets the field separator to nothing, ie. spaces won't break the path up into different chunks of data.

read -r...
3,706
Posted By twjolson
Copy list of files from a keyword list to another directory
Hello,

I have a folder with a massive amount of files, and I want to copy out a specific subset of the files to a new directory. I would like to use a text file with the filenames listed, but...
7,078
Posted By twjolson
@methyl That appears to be exactly what I...
@methyl

That appears to be exactly what I was looking for. The while read is a new trick to me, thank you.
Showing results 1 to 25 of 29

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