Search Results

Search: Posts Made By: Meeran Rizvi
1,061
Posted By Meeran Rizvi
ooh ooh! actually http://www/google.in is not...
ooh ooh!
actually http://www/google.in is not copied there.
sorry for that
1,061
Posted By Meeran Rizvi
Search for the invalid url in a file
Hello guys,
Here i am writing a script to check for a valid url from a file,i am getting the valid url & i print it in a file and i want to print the invalid url also.how to do that?
#here is my...
1,165
Posted By Meeran Rizvi
Grep in regex
Hello guys,
Here i am writing a script in bash to check for a valid URL from a file using regex
This is my input file

http://www.yahoo.commmmmm
http://www.google.com
https://www.gooogle.co...
497
Posted By Meeran Rizvi
Thanks Rudic
Thanks Rudic
497
Posted By Meeran Rizvi
Explain this IP Regex
Hi,guys
could anyone plz explain me this regex pattern for validating ip address

[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])
1,230
Posted By Meeran Rizvi
Thanks for the info drl ---------- Post...
Thanks for the info drl

---------- Post updated at 12:29 PM ---------- Previous update was at 12:25 PM ----------

Here i just modified my script and this works as expected

email=$(grep -E -o...
1,493
Posted By Meeran Rizvi
Regex for a valid URL
Hi guys,
What is the regex to check for only valid URL from a file using grep?
1,230
Posted By Meeran Rizvi
raja@jj@gmail.com is this a valid email id?
raja@jj@gmail.com is this a valid email id?
1,230
Posted By Meeran Rizvi
Using Regex
Here i am writing a script to check&display only the valid mail address from a file

echo "Plz enter the Target file name with path"
read path
if [ -f "$path" ]
then
echo "The valid mail...
1,533
Posted By Meeran Rizvi
Thanks Andrew,Its working as expected can u...
Thanks Andrew,Its working as expected
can u explain me this line

/bin/ping -c 4 -i 0.2 $c$i > /dev/null 2>&1 && echo $c$i is pingable || echo no answer from $c$i

Why are u using /bin ,...
1,533
Posted By Meeran Rizvi
How to run a shell script in background without showing in the terminal?
Hi Guys,
i am having a script which checks for ip address is pingable or not,when i execute this script in terminal it keeps on showing the pinging status of every ip address and it takes more time...
3,277
Posted By Meeran Rizvi
Hey Rudic, Thanks for the information As u...
Hey Rudic,
Thanks for the information
As u said there should be no space after the = sign
i just changed the code like this,its working as expected

echo "Enter the initial ip:"
read inip
echo...
3,277
Posted By Meeran Rizvi
This is how i tried echo "Enter the initial...
This is how i tried

echo "Enter the initial ip:"
read inip
echo "Enter the end ip:"
read endip
a= echo $inip | awk -F. '{print $4}'
b= echo $endip | awk -F. '{print $4}'
c= echo $inip | head...
3,277
Posted By Meeran Rizvi
Ping certain range of ip address
hey guys,
In my program i am giving an initial ip & end ip.
i just want to check every ip in that range is pingable or not


echo "Enter the initial ip:"
read inip
echo "Enter the end ip:"...
2,918
Posted By Meeran Rizvi
Thats cool Thanks buddy
Thats cool
Thanks buddy
2,918
Posted By Meeran Rizvi
Hey Rudic, its working as expected,but why we...
Hey Rudic,
its working as expected,but why we need to give n1?
without giving n1 is also giving the same output
2,918
Posted By Meeran Rizvi
How to display only the first 5 running process using top in shell scripting?
topfunc()
{
top
}
topfunc


Here i used the top command inside a function,and i called the function.
when executing this bash file i get all the process which are using by the kernel
i just...
1,808
Posted By Meeran Rizvi
I tried with tail&sed its working as expected. ...
I tried with tail&sed
its working as expected.

echo "Enter the file1"
read file1
echo "Enter the file2"
read file2
tail -n+2 $file1 > file3
sed -i '2,$ d' $file1
tail -n+2 $file2 >> $file1...
1,808
Posted By Meeran Rizvi
Hi Rudic, can u explain me the above code plz.
Hi Rudic,
can u explain me the above code plz.
1,808
Posted By Meeran Rizvi
Swapping content b/n two files
I am having two files file1&file2.i just want to swap the selected contents btwn two files
#file1
content:
Title:xxxx
Hello Imran

#file2
content:
Title:YYYY
Hello Meeran

i just want only...
903
Posted By Meeran Rizvi
i just need to print the counts for each file in...
i just need to print the counts for each file in a directory
how can i execute this using for loop?
in my case there is no subdirectory

---------- Post updated at 07:46 PM ---------- Previous...
903
Posted By Meeran Rizvi
Execution problems
How to find a word in a directory which contains many files?
i just want to count how many such words are present in all the files?
This is the code which i tried for a single file

echo "Enter...
3,459
Posted By Meeran Rizvi
Thanks buddy..
Thanks buddy..
3,459
Posted By Meeran Rizvi
Hey buddy, i am not able to understand the...
Hey buddy,
i am not able to understand the script,could you plz explain me ?
3,459
Posted By Meeran Rizvi
How to split a string into array?
value=malayalam
# i need to store the value in an array by splitting the character
#the output i need is
m
a
l
a
y
a
l
a
m


Please use CODE tags for output data as well as required by...
Showing results 1 to 25 of 31

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