Search Results

Search: Posts Made By: blasto333
3,827
Posted By blasto333
Grep ruins color
When I run:

git branch -a

I git a nice green and red colored output, but if I pipe the above command through grep:

git branch -a | grep -v "master"

I lose my colored output. Is there a...
2,678
Posted By blasto333
Losing new lines when capturing output to variable
Explain this?

[cmuench@web01 bin]$ ls | grep -e "crd\|cs"
crd
cs
[cmuench@web01 bin]$ CLONES=`ls | grep -e "crd\|cs"`;echo $CLONES;
crd cs

[cmuench@web01 bin]$ CLONES=`ls | grep -e...
21,018
Posted By blasto333
I figured it out I have to escape \$ It also...
I figured it out I have to escape \$

It also appears I have to escape backticks (`)

Why is this?
21,018
Posted By blasto333
bin/sh eval variable assignment
Why can't I do this?
eval "TEST=5;echo $TEST;";


THIS WORKS!!
TEST=5;echo $TEST;
Showing results 1 to 4 of 4

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