Search Results

Search: Posts Made By: bugeye
4,346
Posted By bugeye
Thanks guys. I think it may just be the way that...
Thanks guys. I think it may just be the way that linux does things. When I edit in nano, it shows the line, but nothing changes when I delete it.

Cat does not show the extra line at all anyway....
4,346
Posted By bugeye
Thanks for the response. /etc/hostname...
Thanks for the response.

/etc/hostname contains "domain.com" only with no trailing space or line.

This is the top of the script, so $thehostname is only declared and filled here.

I have...
4,346
Posted By bugeye
sed adding a blank line
I use the following as part of a script to correct for a faulty hostname file.

# get the domain name
read -r thehostname < /etc/hostname
dom="$(echo $thehostname | cut -d'.' -f2)"...
Forum: Debian 08-13-2011
3,461
Posted By bugeye
How to update Nginx in Debian to current ver?
I did a fresh install of nginx on a debian server.

When I check the version of nginx, it reports 0.7.67

However, the current stable version of Nginx is 1.0.5 from what I have read.

How...
2,421
Posted By bugeye
Thanks. I had tried a while loop in the last...
Thanks.

I had tried a while loop in the last 15 hours of frustration, but I must have done something else wrong because at the time it made no difference.

However, I tried it again as per your...
2,421
Posted By bugeye
If I understand you correctly, you are saying...
If I understand you correctly, you are saying that if the first line contains "word1 word2" etc that it is what is causing the problem.

My text file has ONE word per line.

My entire test file...
2,421
Posted By bugeye
Thanks for the response. No, there is only...
Thanks for the response.

No, there is only one column of manually entered names. It is a simple text file and although it was about 250 lines long with legitimate subdomain names, I have manually...
2,421
Posted By bugeye
Script doesn't work in loop but does if not
I have a script that only works if I remove it from the looping scenario.


#!/bin/bash

# Set the field seperator to a newline
##IFS="
##"

# Loop through the file
##for line in `cat...
Showing results 1 to 8 of 8

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