Search Results

Search: Posts Made By: galford
1,356
Posted By galford
Text manipulation help
Hello again,

I have a problem manipulating a large text document and there is no way I could edit this document by hand.

Format is:



Address : XXXX N 37 Ave, Hollywood, FL, 33021
Phone:...
1,438
Posted By galford
Align input fields on one under each other
Hello again,

I'm having a issue with a contact form. I want the input fields to be aligned on same row and I really dont know how to do it.

I attached a image for you to understand what i am...
28,503
Posted By galford
I am running CentOS under a VPS.. i dont think it...
I am running CentOS under a VPS.. i dont think it has backups :( So this means my file is lost, right?
28,503
Posted By galford
Restoring deleted file with rm -rf
Is there a way I could recover a deleted text file with "rm -rf" command.

Running CentOS 6.5.

Thank you.
1,092
Posted By galford
Well I dont know sed that well... I know only...
Well I dont know sed that well... I know only replace but stuck with adding :D


sed 's/ /:/g' file >> newfile


This is for replacing spaces with ":' (i think) only but for rest.. i need a...
1,092
Posted By galford
Text Manipulation Help
Hello again unix.com,

I have a text file in this format (line-by-line):


hostname id password
hostname id password
hostname id password
hostname id password


I want it to become:

...
1,065
Posted By galford
Hah that worked... I tried it with instead of ...
Hah that worked... I tried it with instead of ---------- Post updated at 12:17 PM ---------- Previous update was at 11:54 AM ----------

Actually it doesnt work.. tested now..

Output from...
1,065
Posted By galford
Replace string at begining of the line
Hello again people,

I have a list of websites in this format:


domain.com
domain1.com
domain2.com
domainwww.com
domain2www.com
domain3www.com
www.domain.com
www.domain2.com...
1,847
Posted By galford
Actually it works when I execute it for one host...
Actually it works when I execute it for one host per command.


[/home/virtual/mysqlt]# sh sql2 localhost
[/home/virtual/mysqlt]# ERROR 1045 (28000): Access denied for user 'root'@'localhost'...
1,847
Posted By galford
Modifying bash script to take each line in a file and execute command
I need to modify a bash script to to take each line in a file and execute command. I currently have this:

#!/bin/bash if [ -z "$1" ] ; then echo "Lipsa IP"; exit; fi i=1 ip=$1 while [ $i -le `wc...
1,136
Posted By galford
Adding plesk superuser from SSH
I'm trying to add a superuser (admin) to plesk from SSH (I have root access). Can this be done? I have search over the web but did not find any solution to my problem. My version is Plesk 9.3
1,454
Posted By galford
I really wanna use that code as I found it useful...
I really wanna use that code as I found it useful and its almost done... but I dont know what to remove from it to suit my needs. I know this is not a coding service and I am willing to show my...
1,454
Posted By galford
IP list specific port checker script
Hello again people,

I currently searching for a code/script that will allow it to check if a specific port is open, lets say 123. Found a public script on a ftp but I dont know how and what to...
2,697
Posted By galford
Thanks a million. You sir are a really life saver!
Thanks a million. You sir are a really life saver!
2,697
Posted By galford
You mean like this? ./iprange 64.0.0.1...
You mean like this?

./iprange 64.0.0.1 74.255.255.255

Please give me an example.
2,697
Posted By galford
Hello sir, I'm really a newbie and I'm stuck...
Hello sir,

I'm really a newbie and I'm stuck at a blank page (lol).

---------- Post updated at 05:20 AM ---------- Previous update was at 05:14 AM ----------



Looks nice but I dont know...
2,697
Posted By galford
Generator script
Hello again unix.com people,

I need your help again. I'm currently need a script that will generate ip ranges... lets say from 64.1.1.1 to 74.255.255.255 and the output should be like this:
...
1,222
Posted By galford
Tried to limit the script without passing 50...
Tried to limit the script without passing 50 processes but I ruined it.

Can you please fix it without this part

CMD=`ps -eaf | grep -c mysql`

if [ "$CMD" -lt "50" ]; then
./mysql $ip $user...
1,222
Posted By galford
Can you please fix it and re-post the corrected...
Can you please fix it and re-post the corrected version please?
1,222
Posted By galford
Script syntax help
#!/bin/bash
if [ -z "$1" ] ; then
echo "Lipsa IP";
exit;
fi
i=1
ip=$1
while [ $i -le `wc -l pass_file | awk '{print $1}'` ] ; do
if [ -n "$ip" ]; then
rand=`head -$i pass_file | tail -1`...
1,074
Posted By galford
I managed to do it. The "inet_interface" was the...
I managed to do it. The "inet_interface" was the problem. Thanks for the assistance.
1,074
Posted By galford
Postfix Problem
Hello,

I have a problem remotely connecting to the postfix. It sais "Connection refused".

[root@localhost ~]# telnet 104.200.16.232 25
Trying 104.200.16.232...
telnet: connect to address...
1,375
Posted By galford
I dont know how to start since i'm a newbie. And...
I dont know how to start since i'm a newbie. And yes... The "B" supposed to be the "G" from Brian G Heward

---------- Post updated at 06:12 AM ---------- Previous update was at 04:22 AM ----------...
1,375
Posted By galford
I want all the names to be sorted as...
I want all the names to be sorted as line-by-line. Is it possible to do it?
1,375
Posted By galford
Text manipulation help
Hello unix.com

I'm having trouble with a text file.

It looks like this:

Alvaro Costa Daldit Kaur Sings Brian G Heward
Desmond Ogilvie John Der William Gherasim
Lance Mackey ...
Showing results 1 to 25 of 68

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