Search Results

Search: Posts Made By: mutley2202
939
Posted By mutley2202
RudiC, This is one of the methods i was trying...
RudiC, This is one of the methods i was trying but this didnt work. Any help or direction on where this has been solved previously would be appreacited.

Thanks


for i in $(cat file1.txt | cut...
939
Posted By mutley2202
2 files replace multiple occurances based on a match
Hi All,

I need some help trying to achieve the below but everything I've tried has failed, I have 2 files which i'm trying to carry out a match based on the first column from file 1, take that...
1,363
Posted By mutley2202
Getopt Help
Hi All,

An old work friend wrote a script which I've been trying to understand how a section of it currently works and work out how i can add some command line switches which i can use later in...
5,460
Posted By mutley2202
2 decimal places
Thanks RudiC, Do you know how i can round it up ?
5,460
Posted By mutley2202
code i've tried
What am i doing wrong ?


sum1=$((add1 + add2))
echo "Success = $sum1"
sum2=$((add3 - add4))
echo "Attempts = $sum2"
final="scale=4; ($sum1 / $sum2 ) * 100" | bc
echo " Success rate = $final"...
5,460
Posted By mutley2202
Working out percentage in shell script
Hi All,
I currently have a shell script which is pulling multiple counters from various sources. Due to the counters being cumulative counters I've got some code to work out the delta from the last...
1,140
Posted By mutley2202
corrections but still has an issue
Updated to include the corrections however its still coming up with the same syntax fault.


./testout: line 13: syntax error near unexpected token `else'



#!/bin/sh
if ($stat == 'a')
...
6,218
Posted By mutley2202
This worked perfectly ! thanks chaps.
This worked perfectly ! thanks chaps.
1,140
Posted By mutley2202
Syntax error on script
Evening All (or morning for some),
Could anyone have a look at the below and advise where i've going wrong with the syntax as i keep getting the below error while trying to run.

Any help would...
6,218
Posted By mutley2202
Find unique values but only in column 1
Hi All,

Does anyone have any suggestions/examples of how i could show only lines where the first field is not duplicated. If the first field is listed more than once it shouldnt be shown even if...
835
Posted By mutley2202
Cron using shh keys fail
Hi All,

Hoping someone can help with something I'm sure is an easy fix. I'm trying to setup a cron to ssh to a server and check if a process is running. I've got keys setup from the jumpbox which...
1,002
Posted By mutley2202
Reply
Perfect - Worked with sed -e "s/^/"$i",|/"

Thanks really appreciated.
1,002
Posted By mutley2202
Variable in sed command
Hi All,
How can i use a variable in a sed command ? I cant seem to get it to work as at present its just printing $i at the start of every line rather than the variable $1.


sed -e...
1,534
Posted By mutley2202
Hi Stomp, I'm in control of a built...
Hi Stomp,
I'm in control of a built in script which i cant modify so am having to try find a working way of being able to change the command being run. As an example below, basically i...
1,534
Posted By mutley2202
Command line argument
Hi Guys, I'm trying to work out how to add a command line argument inside single quotes. Would anyone be able to help please as I'm going mad :)

I want to be able to place the filename on command...
2,048
Posted By mutley2202
I forgot to mention it may not always start with...
I forgot to mention it may not always start with aaa for example, it may start with bbb then aaa. I'm not bothered what the first one is as long as it's not got two lines one after the other with the...
2,048
Posted By mutley2202
Output checker setting variable to TRUE or FALSE
Hi All,
I'm trying to come up a way to check the output of some data i have. I need to be able to check for the order of the output and if its correct set a variable to false if it isnt.
...
3,115
Posted By mutley2202
Thanks
This worked - Thanks
3,115
Posted By mutley2202
IP address list padding with 0
Hi All,
I'm hoping one of you helpful lot could come up with a way I can do the below. I've been trying to think how is best but have struggled to come up with a way.

I have a list of IP...
2,361
Posted By mutley2202
Compare data - Match first column and compare second
Hi guys, looking for some help with a way to compare data in two files but with some conditions.

example,

File 1 consists of
site1,10.1.1.1
site2,20.2.2.2
site3,30.3.3.3

File 2 contains ...
1,030
Posted By mutley2202
Variables in perl script
Hi Chaps,
Im after some advise with a script i've written however doesnt appear to work how I would like.

Basically I have a perl script which sucessfully pulls an expect script to...
8,061
Posted By mutley2202
Response
Hi Don,
Thanks for the reply, so do you have any examples of this which I could use for reference (with your points above included) ? my expierence in this area isnt great hence the questions...
8,061
Posted By mutley2202
Reply
Yes, I want it to run every 15 minutes and only add new events which have appeared in the last 15 minutes.



Yes the log file rotates at present its approximatly once a day, when the file...
8,061
Posted By mutley2202
Script to search log file for last 15 mins data
Hi All,
I have an issue which I'm trying to understand a way of doing, I have several nodes which contain syslog events which I want to force trigger an email initially (eventually leading to...
7,736
Posted By mutley2202
Run script on multiple files
Hi Guys,
I've been having a look around to try and understand how i can do the below however havent come across anything that will work.

Basically I have a parser script that I need to...
Showing results 1 to 25 of 70

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