Search Results

Search: Posts Made By: bsquared
6,713
Posted By bsquared
@ghostdog, I was really looking for that...
@ghostdog, I was really looking for that specific sed one liner. I was pulling out my hair trying to remember. Thanks for helping.
6,713
Posted By bsquared
@fiendracer, I had done this before, but could...
@fiendracer, I had done this before, but could not remember/find it. Thanks
6,713
Posted By bsquared
How to Toggle Flag/Switch Value with Sed (Solved)
I am trying to figure out a one liner to toggle a flag variable. eg.

FLAG=0

Is there a way to use sed to toggle above example between 0 and 1. That is if run with flag set to zero it would...
8,548
Posted By bsquared
@ Scrutinizer, Thank you. I changed the...
@ Scrutinizer, Thank you.
I changed the syntax to:
function wrapper()
{

function worker()
{

VAR="DEBUG TEXT "$(( $COUNT + 1))
echo $VAR

}

# test for...
8,548
Posted By bsquared
echo "value" - returns - value: command not found
I have been experiencing this problem intermittantly, I thought the problem was '/bin/sh -> /bin/dash' but I changed that to bash and the problem persists.

I am writing functions to be included in...
Showing results 1 to 5 of 5

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