Search Results

Search: Posts Made By: brsett
1,806
Posted By elixir_sinari
find dir -type f|awk...
find dir -type f|awk '{sub(/\/[^\/]*$/,"")}1'|sort -u
4,764
Posted By Lem
function foo { local p1=${1}; ...
function foo {
local p1=${1};
local p2=(${2});
local p3=${3};

echo p1 is $p1;
echo p2 is $p2;
echo p3 is...
2,125
Posted By dr.house
For one, quotes might prove helpful: ...
For one, quotes might prove helpful:


[house@leonov] used_ports=$( netstat -nat | cut -d: -f2 | cut -d' ' -f1 ); echo $used_ports
Active Proto 60224 2049 42344 40461 815 111 631 [...]
...
2,059
Posted By alister
You're quite welcome, for the help. ...
You're quite welcome, for the help.

Regarding the function definition, nope, I meant exactly what I typed. posix sh function definitions do not use the "function" keyword. In shells that do...
2,059
Posted By alister
When exit is called, the shell will exit,...
When exit is called, the shell will exit, regardless of any traps that have been set.

The most palatable workaround that comes to mind:
exit() { :;}
source other_file
unset -f exit


...
2,400
Posted By Corona688
The problem is that you can't put quoted strings...
The problem is that you can't put quoted strings inside variables and expect them to get split sanely AFTER substitution has already happened. It'll split apart on spaces but not much else. It...
Showing results 1 to 6 of 6

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