Search Results

Search: Posts Made By: Rameshck
Forum: Red Hat 10-03-2016
1,540
Posted By Rameshck
Upstart initctl
The upstart package that provides initctl command also provides following other commands:
start, stop, status etc
These commands are all present in /sbin/ in Redhat systems. We can see that status,...
1,572
Posted By Rameshck
Very helpful. I am using RHEL 6.2 which doesn't...
Very helpful.
I am using RHEL 6.2 which doesn't provide the man page for find. The --help also doesn't give info in much details. Once again, many thanks.
1,572
Posted By Rameshck
Structure of find command
I am assuming questions about find command have been asked many times, however I couldn't find in the old threads what I was looking for. I want to know the basic structure of find command. I believe...
902
Posted By Rameshck
Regular expression in grep command
Here is the content of a file:
abcdefgh
1234

When I do:
grep a?c <file>

I expect the output to show "abcdefgh". Its not happening. Any ideas?

"a?c" should mean either ac or c. This should...
1,412
Posted By Rameshck
String regex comparisons
Here is the sample code:

str1="abccccc"
str2="abc?"
if [[ $str1 =~ $str2 ]]; then
echo "same string"
else
echo "different string"
fi


Given that ? implies 0 or 1 match of preceding...
2,500
Posted By Rameshck
My thoughts too. It appears to do nothing...
My thoughts too. It appears to do nothing special. I just began to wonder why they placed this option in shell. Thanks everyone.
2,500
Posted By Rameshck
Use of colon
There was a sample code on forum I found sometime back:


$ f() { local foo=; : ${foo=unset}; declare -p foo; }; f
declare -- foo=""

$ f() { local foo; : ${foo=unset}; declare -p foo; }; f...
1,345
Posted By Rameshck
Thanks Don. :b::b: ---------- Post updated...
Thanks Don. :b::b:

---------- Post updated at 03:27 PM ---------- Previous update was at 03:16 PM ----------



Thanks neutronscott,
Looks like they had a reason for explicitly declaring...
1,345
Posted By Rameshck
Assignment operator without operand
Does anyone know how this line in bash works?

local gotbase= force= nicelevel corelimit
local pid base= user= nice= bg= pid_file=
local cgroup=

These lines are part of the daemon function...
Showing results 1 to 9 of 9

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