Search Results

Search: Posts Made By: klogger
10,216
Posted By klogger
I managed to get it going: ...
I managed to get it going:


requiredTextResult=`hg cat -r tip $filePath | grep -F "$requiredText"`
if [[ ! $requiredTextResult =~ $requiredText ]]; then
# do stuff
exit 1
fi
10,216
Posted By klogger
test if string contains another string
I have already received one answer a part of my problem and I thought I could move on without help from there but I am failing miserably.

I am using a source control system called mercurial which,...
7,790
Posted By klogger
Thanks radoulov, that is exactly what I was after.
Thanks radoulov, that is exactly what I was after.
7,790
Posted By klogger
Extract substring of unknown length from string
I have a string:


hgLogOutput=" +0000 files: forum/web/hook-test.txt /forum/web/hook-test-2.txt description: test"
and I want to extract the file names from it, they will always appear between...
63,376
Posted By klogger
That's great thank you. I am a Java programmer...
That's great thank you. I am a Java programmer and find shell scripting very difficult to get my head around. I couldn't get the solution provided by skar_a to work and so went with the one given by...
63,376
Posted By klogger
SOLVED: How do I do if(string.endsWith("/")) in shell
I have a string that may or may not end with a '/' and would like to do something if it does not end in a slash. I have tried:


if "/home/test/blah/blah" | sed 's/\/$//'
then
echo "OK"
fi...
Showing results 1 to 6 of 6

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