Search Results

Search: Posts Made By: galford
1,124
Posted By RudiC
Should you insist on sed:sed 's/ / 25 /;s/...
Should you insist on sed:sed 's/ / 25 /;s/ \|$/:/g' file
hostname:25:id:password:
.
.
.
1,124
Posted By RudiC
Anyhow, try awk '($2="25" OFS $2) && $NF=$NF OFS'...
Anyhow, try awk '($2="25" OFS $2) && $NF=$NF OFS' OFS=":" file
hostname:25:id:password:
hostname:25:id:password:
hostname:25:id:password:
hostname:25:id:password:
1,892
Posted By rdrtx1
in a file named like scr.sh try something like: ...
in a file named like scr.sh try something like:
#!/bin/bash

while read ip
do
if [ -n "$ip" ]
then
while read user pass
do
CMD=`ps -eaf | grep -c mysql`
...
2,742
Posted By RudiC
Run it without the stdin redirection, and then...
Run it without the stdin redirection, and then enter the limits on the command line. As given, it is made for reading from a file so it doesn't prompt.
./iprange
64.0.0.1 74.255.255.255
Please be...
1,713
Posted By RudiC
Given your IP range spans byte boundaries (like...
Given your IP range spans byte boundaries (like 10.1.1.251, 10.1.2.5), this might be of some interest:while IFS=", " read IP1 IP2
do BIP1=$((0x$(printf "%02X" ${IP1//./ })));
...
1,239
Posted By disedorgue
Hi, Second 'if" is not close (fi is missing). ...
Hi,
Second 'if" is not close (fi is missing).

Regards.
1,102
Posted By junior-helper
What's the value of the parameter inet_interfaces...
What's the value of the parameter inet_interfaces in /etc/postfix/main.cf? Run one of the following commands to find that out:
$ grep ^inet_interfaces /etc/postfix/main.cfor (even better)
#...
1,102
Posted By rbatte1
You will need to confirm where you are running...
You will need to confirm where you are running these two commands. Is 104.200.16.232 the server that you run the 2nd command on?

Other questions that spring to mind:-
What OS and version do you...
2,353
Posted By Scrutinizer
Try: if (preg_match('/^109\.101\.[^.]+\./',...
Try:
if (preg_match('/^109\.101\.[^.]+\./', $_SERVER['REMOTE_ADDR'])) .....

EDIT: or simpler, try:
if (preg_match('/^109\.101\./', $_SERVER['REMOTE_ADDR'])) .....
1,153
Posted By Chubler_XL
Not real good with JavaScript, but I'd probably...
Not real good with JavaScript, but I'd probably try something like:

function checkform ( form )
{
if (form.pass.value.length < 6 || !form.pass.value.match("^\\d{3}") ) {
alert(...
875
Posted By Scrutinizer
Try: awk -F@ '{print $1}' file sed 's/@.*//'...
Try:
awk -F@ '{print $1}' file
sed 's/@.*//' file
cut -d@ -f1 file
grep -Eo '^[^@]+' file
1,126
Posted By Yoda
#!/bin/bash for c in {1..1000} do ...
#!/bin/bash
for c in {1..1000}
do
printf "http://upload.com/%d/%d.txt\n" $c $c
done
955
Posted By jim mcnamara
If it IS a list -- meaning the output is on a...
If it IS a list --
meaning the output is on a single line for each email:
awk '/\.ca$/' filename > newfilename
1,135
Posted By otheus
If I were to rephrase your question, you want to...
If I were to rephrase your question, you want to keep at most one entry for each C class.

We could try awk for this:

awk -F. '!class[$1,$2,$3] { print $0; class[$1,$2,$3]=1; }'
1,202
Posted By jayan_jay
Try with this .. for ip in $(cat ip_file) ...
Try with this ..

for ip in $(cat ip_file)
do
while read USR PAS
do
perl x.pl $ip $USR $PAS
done < user_password_file
done
2,624
Posted By dnam9917
In that case, i=1 while [ $i -le 100 ] ...
In that case,

i=1
while [ $i -le 100 ]
do
mkdir $i.example.com
cp -pr example $i.example.com # recursively copies all the files and contents
i=`expr $i + 1`
echo " created $i.example.com...
1,101
Posted By Corona688
tr ' ' ':' < input > /tmp/$$ # You should check...
tr ' ' ':' < input > /tmp/$$
# You should check the contents of /tmp/$$ before overwriting 'input' with it
cat /tmp/$$ > input
rm /tmp/$$
1,101
Posted By vgersh99
sed 's/ /:/g' myFile
sed 's/ /:/g' myFile
1,841
Posted By radoulov
Sorry :) I missed this important detail: awk...
Sorry :) I missed this important detail:

awk -F: '{
print $3, $1, $2
}' OFS=/ infile
Showing results 1 to 19 of 19

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