Search Results

Search: Posts Made By: rexmabry
7,025
Posted By rexmabry
Change one column using sed??
Is there way to use sed to change only one occurence in a colon separated line?

I would like to change a file from

*:*:rex:rex
*:*:simon:rex

to

*:*:rex:mabry
*:*:simon:rex
2,734
Posted By rexmabry
Thank you both!!!!!
Thank you both!!!!!
2,734
Posted By rexmabry
creating a variable
I cannot seem to get the following script to work. I cannot seem to set the variable. What am I missing?

bin/bash
set -x

echo "2" > /tmp/number

STATUS='grep -c 2 /temp/number'

if [...
6,603
Posted By rexmabry
Thanks for trying to help. But the echo "2"...
Thanks for trying to help. But the echo "2" didn't work either. However, the way you cleaned it up is awesome.

We approaching it differently. The .bash_profile script gives the option to set...
6,603
Posted By rexmabry
Command to accept input
I am trying to write a one line command for Oracle grid control. I am using a semi-colon to separate the commands. But, I am having a problem with a shell script accepting input. Wondering if you...
Showing results 1 to 5 of 5

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