Search Results

Search: Posts Made By: Breakology
Forum: IP Networking 11-07-2010
6,977
Posted By Breakology
My goal was to do it the way I thought it should...
My goal was to do it the way I thought it should be done.

I found a solution, text2pcap is a application that comes with wireshark, allows for generation of pcap file from a ASCII hexdump i.e....
Forum: IP Networking 10-31-2010
6,977
Posted By Breakology
Packet decoding
Hi, wondering if anyone can suggest a tool to me that will let me either cut & paste hex or type it in for packet decoding.
I want to be able to decode a packet as done with tcpdump or wireshark,...
3,624
Posted By Breakology
I was missing the "&", that made it work....
I was missing the "&", that made it work. Thanks!
3,624
Posted By Breakology
any takers?
any takers?
3,624
Posted By Breakology
Help puting background process ID's into an array
I am trying to write a script that runs another script consecutively and records the PID of the called script each time it runs in an array.
I put in an echo statement to check the PID, when the...
6,217
Posted By Breakology
!/bin/bash -x returns: + '[' -f...
!/bin/bash -x

returns:

+ '[' -f filename -a 1 -eq 1 ']'
++ cut -d: -f3
++ sort -r
++ head -n1

---------- Post updated at 06:00 PM ---------- Previous update was at 05:08 PM ----------
...
6,217
Posted By Breakology
Help parsing command line arguments in bash
Looking for a little help parsing some command line arguments in a bash script I am working on, this is probably fairly basic to most, but I do not have much experience with it.

At the command...
3,360
Posted By Breakology
Thank you, you have proven that you are...
Thank you, you have proven that you are internet-awesome.

Good job.
3,360
Posted By Breakology
Help with Getopt::Std
I am working on a script that lists files in a directory with a few file attributes depending on what option the user specifies at the command prompt. The script uses Getopt::Std and takes two...
5,467
Posted By Breakology
Perl script that counts lines of a file
I am working on this script, but hit a bump. Looking for a little help figuring out the last part:


open(MY_FILE, $ARGV[0]) or die

$COUNTER = 1;
$LINE = <FILE>;
while ($LINE, <FILE>) {
#...
10,918
Posted By Breakology
Thanks guys, I am re-writing the script using...
Thanks guys, I am re-writing the script using your suggestions. My original problem was a syntax error, I was [ -f filename ] the wrong variable and thats why I got the errors.
I am glad I posted...
10,918
Posted By Breakology
Thanks, I will try it with the awk statement and...
Thanks, I will try it with the awk statement and see what I get.

Something I left out the first time, the script returns the error
"[: ash: unexpected operator/operand" when I try to use the...
10,918
Posted By Breakology
Bash script: issue changing directories in script
I am working on a script that checks two arguments at the command line. The first argument is a search pattern, the second can be a file or a directory, if it is a file a second script is called that...
2,169
Posted By Breakology
Hmmm, I thought '>' was the same a '-gt', but I...
Hmmm, I thought '>' was the same a '-gt', but I made the change and it worked. I am still learning the in & outs of all of this, thanks.
2,169
Posted By Breakology
The output keeps running into negative integers...
The output keeps running into negative integers forever, shouldn't the loop terminate once the condition of the variable becomes -le 0?
2,169
Posted By Breakology
Why doesn't this loop end?
Simple script, takes an cmd line argument and counts down to 1.

NUMBER=$1
# One argument must be provided, otherwise don't execute
if [ $# != 1 ]
then
echo "Error. Enter one argument "
...
6,976
Posted By Breakology
What is the '2' doing in that command? is it...
What is the '2' doing in that command? is it switch for the wc command?
6,976
Posted By Breakology
I think this is what I need I think, but written...
I think this is what I need I think, but written as a bash script or perl. The end result is that I need to be able to feed it a directory, and have it output the file with the most lines.
I was...
6,976
Posted By Breakology
Thanks! That almost does what I need, but...
Thanks!

That almost does what I need, but since the first line of the sorted list is a total line count, it displays 'Total XXX' instead of the actual file.

Is there any command I can use to...
6,976
Posted By Breakology
Shell script: returning the file with the most lines
Hey I am relatively new to Linux and shell scripting, looking for a spot of help with a script I am working on.

I am writing a script that counts the number of lines in all the files in a...
Showing results 1 to 20 of 20

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