Search Results

Search: Posts Made By: suri
20,967
Posted By suri
command to know the IP address
I know the hostname of the m/c which is in the network...
whats d command to know the ip address associated with the hostname.
1,580
Posted By suri
i din get bolded part in the command... ...
i din get bolded part in the command...

file1 |sed -n "s/^\(.*\):HOST=.*/\1/p"
1,580
Posted By suri
what does this command do
some one pls tell...what this command does
grep pattern file1 |sed -n "s/^\(.*\):HOST=.*/\1/p"
2,579
Posted By suri
unable to grep the following pattern
I have the following line in file1

elif [ "$1" = "start" ] ; then


now if i try to grep this using following command
grep -e "elif [ "$1" = "start" ] ; then" file1
it is...
4,806
Posted By suri
can u please tell anbu wat does this code do... ...
can u please tell anbu wat does this code do...
i din get the logic...
many thanx in advance
4,518
Posted By suri
how to check for pattern in other file
i hav file1
with contents:

welcome
this is first file
file name is file 1
last line of the file

now i want to check if the second line has sentence "this is first file" through
"if"...
4,141
Posted By suri
ok this is fine..thanx alot..
ok this is fine..thanx alot..
4,141
Posted By suri
in the soluton u gave u mentioned the line number...
in the soluton u gave u mentioned the line number in the target file..
but In the target file how to insert between two particular patterns with out giving the line number
4,141
Posted By suri
small correction in requirement
thanx for the quick reply here is the scenario i'm writing
i don want to insert entire contents of file but a portion or few lines from the source file to target file..
how to do this
4,141
Posted By suri
how to insert few lines in the called script
I have a situation where in a few lines have to be added into a script at some particular location.
It is to be done from a file in another location just by running this file we should move the...
1,792
Posted By suri
if i give this command what would be the value...
if i give dir=/tmp/${0##*/}
what would b the value stored in dir ..i'm more concerned about the 0##*/ part..
7,501
Posted By suri
what does echo $$ command display
whats the value stored in $$
Showing results 1 to 12 of 12

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