Search Results

Search: Posts Made By: Rameshck
Forum: Red Hat 10-03-2016
1,578
Posted By Don Cragun
When you exec a program, the name of the file...
When you exec a program, the name of the file executed (and it doesn't matter if this is a symbolic link or a hard link) typically appears as the "zeroth" argument to the program when it starts...
1,598
Posted By Don Cragun
I don't know of any Linux system that doesn't...
I don't know of any Linux system that doesn't provide man pages. But, on many systems, loading those man pages is an installation option. If the system administrator who installed your system chose...
1,598
Posted By Don Cragun
It isn't quite that simple... Most primaries...
It isn't quite that simple... Most primaries evaluate to true if and only if some condition is true. (For example the primary -name secret evaluates to true if and only if the name of the file it...
1,598
Posted By MadeInGermany
Actions return a status like condtions, so can be...
Actions return a status like condtions, so can be followed by more conditions or actions.
Most actions (like -prune) return a true.
The default operator is -a (logical "and") and has higher...
912
Posted By Scrutinizer
Try grep -E 'a?c' file Default grep uses BRE...
Try
grep -E 'a?c' file
Default grep uses BRE (Basic Regular Expressions) and you need extended regular expressions (ERE) for this


--
The quotes are recommended to avoid a possible file name...
1,449
Posted By ongoto
@ Don Cragun Aha! I find that ... Good...
@ Don Cragun
Aha!
I find that ...
Good catch! Thanks.
1,449
Posted By Don Cragun
ongoto: No. Quoting $str2 in this context...
ongoto: No. Quoting $str2 in this context performs a string comparison instead of an ERE match.

Rameshck: The ERE abc? will match ab or abc appearing anywhere in the expansion of $str1. To...
1,381
Posted By neutronscott
Most tests check for unset or null values. ...
Most tests check for unset or null values.


mute@thedoctor:~$ f() { local foo; [[ $foo ]] || echo empty; }; f
empty
mute@thedoctor:~$ f() { local foo=; [[ $foo ]] || echo empty; }; f
empty

...
86,554
Posted By spirtle
I guess what's happening is that find is storing...
I guess what's happening is that find is storing all the subdirectories it finds in order to do a recursive search. So, it finds foo/bar and then wants to search it, but first it does your -exec, and...
Showing results 1 to 9 of 9

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