Search Results

Search: Posts Made By: prasbala
957
Posted By prasbala
Process which ended another process
Hello,
The scenario is as follows, I have a background process running initially for which i know the PID on machine1. I use ssh from machine 2 to execute a script in machine 1. For some...
2,287
Posted By prasbala
Finding process which ended another process
Hello,
The scenario is as follows, I have a background process running initially for which i know the PID on machine1. I use ssh from machine 2 to execute a script in machine 1. For some...
8,752
Posted By prasbala
Thanks Kumaran, for the timely reply, it worked...
Thanks Kumaran, for the timely reply, it worked perfectly. exactly what i wanted to do
8,752
Posted By prasbala
Unlink and copy actual file
Hello,
I have a set of directories, which has inside them, symbolic links to some files. What i would like to do is to covert the links into actual files, i.e. remove the link and copy the...
5,305
Posted By prasbala
thank you for the quick reply.. it works. I think...
thank you for the quick reply.. it works. I think this is a very basic question.. sorry :)
5,305
Posted By prasbala
Parsing file list in variable
Hello,
somewhere in a shell script, i am storing the output of "ls" into a variable. My question is how can i parse this variable to get each filepath. I don't want to create a temporary...
49,939
Posted By prasbala
Thanks a lot for the replies guys,. I used...
Thanks a lot for the replies guys,.

I used the $? method and it works fine.
49,939
Posted By prasbala
Exit status of grep
I am trying to get the exit status of grep and test a condition with it, But it does not seem to be working as expected since i am doing something wrong apparently

as per grep help
Exit status is...
2,666
Posted By prasbala
Indeed it works, Thanks for the reply.
Indeed it works, Thanks for the reply.
2,666
Posted By prasbala
thanks for the answer but the problem is i...
thanks for the answer

but the problem is i can have more than one lines continuously in the string.I just need to extract the whole filepath.

I was thinking of using grep -o in order to display...
2,666
Posted By prasbala
regular expression match
I am trying to match a similar line using grep with regular expression

the line is
/remote/mac/pbbbb/abc/def/hij/hop/include/abc/tif/element/test/testfiles/Office.cpp:57: const OfficeType&...
30,278
Posted By prasbala
Thanks for the replies guys The solution...
Thanks for the replies guys

The solution proposed by abubacker fits a lot my requirements
cat test | sed -nr 's/.*(get[a-zA-Z]*\(\)).*/\1/p'

Actually in the test.txt file I have more than one...
30,278
Posted By prasbala
Extract word using sed
Hello,
I am new to sed and am trying to extract a word using sed.

for example i have a line "const TotalAmount& getTotalAmount() const; " in the file test.txt

I am trying to extract...
Showing results 1 to 13 of 13

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