Search Results

Search: Posts Made By: LostInTheWoods
12,620
Posted By LostInTheWoods
Rsync temporary files
Hi,

I am looking to use rsync in a very specific way, and even though I have trawled the rsync man pages I have not succeeded in seeing a way of doing the following:



The temporary files...
Forum: Web Development 12-02-2010
2,647
Posted By LostInTheWoods
Negate user space URL in Apache
Hello,

I have a situation where I am trying to use Apache's RedirectMatch directive to redirect all users to a HTTPS URL except a single (Linux) user accessing there own webspace. I have found a...
2,849
Posted By LostInTheWoods
Amazing......:rolleyes: Anyway thank you...
Amazing......:rolleyes:

Anyway thank you very much for that...
2,849
Posted By LostInTheWoods
bc: scope doesn't work for me
I am trying to use bc to calculate the difference between two nano second time stamps. bc does the calculation but seems to ignore the scale option:


micro_start=$(date +%s.%N)

# .. some stuff...
5,268
Posted By LostInTheWoods
Variables containing the lists. $EMPTY is an...
Variables containing the lists. $EMPTY is an empty string.
5,268
Posted By LostInTheWoods
COMM and Numerical Sorting
Hi,

Hope someone can shed some light on this...
I have two lists of numbers I am comparing using COMM. If the first list is empty, and I sort both lists like so:
DIFF=`comm -3 <(echo "$EMPTY" |...
3,042
Posted By LostInTheWoods
Thanks, works a treat. I couldn't understand how...
Thanks, works a treat. I couldn't understand how it worked until I tried this on the command line:
echo status-*and got the filenames of my three test files:
status-1 status-2 status-3

So echo...
3,042
Posted By LostInTheWoods
Checking the existence of a file before getting last modified
Hi,

I am trying to check the existence of a file, from a list of possible filenames:

status-A
status-B
status-C

before retrieving the last modified datetime using ls, I want to check it...
2,484
Posted By LostInTheWoods
No, print first column by searching the second....
No, print first column by searching the second. The search criteria is a shell script variable. My solution seems to work OK.

Thanks,
Stephen
2,484
Posted By LostInTheWoods
Now, I do not want not hard code '92', how do I...
Now, I do not want not hard code '92', how do I place a variable in here:
nawk '$2~/^$VARIABLE$/'But of course this does not work.. I have tried lots of things, but no luck. Is this possible?
...
2,484
Posted By LostInTheWoods
Is there a speed difference?
Is there a speed difference?
2,484
Posted By LostInTheWoods
OK, that returns the following.... ...
OK, that returns the following....
00-01-c0-03-2d-dd 3592
00-01-c0-03-38-f8 1192
00-01-c0-03-3a-50 2392
00-01-c0-03-3b-96 92
00-e0-4c-77-14-a1 292I have tried looking through man nawk but I...
2,484
Posted By LostInTheWoods
Grep Help
I know this is easy for some, but I struggle to get my head around this.

I am using grep to search a file for a number in a row, but I only want to search the second column, and then later...
37,174
Posted By LostInTheWoods
Thanks to you both, I am really glad I joined...
Thanks to you both, I am really glad I joined this forum now :)

Works like a charm. A bit of a follow up question though, is it bad practise to change the IFS variable like in the first example? ...
37,174
Posted By LostInTheWoods
So if I want to use BASH (the company standard),...
So if I want to use BASH (the company standard), the only option is to change the IFS variable? And then change it back again?

Thanks,
LITW
37,174
Posted By LostInTheWoods
String concatenation not working in a loop
Hi,

First post, so I hope someone can help me with this weirdness :)

I have a number files with some rows of information I want to extract, at the same time I want to add to a string some...
Showing results 1 to 16 of 16

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