Radosław Posted February 19 Report Share Posted February 19 Witam Dla przykładu filtruję glib: dnf check-update | grep glib wynik: Aktualizowanie i ładowanie repozytoriów: Załadowano repozytoria. glib2.i686 2.86.4-1.fc43 updates glib2.x86_64 2.86.4-1.fc43 updates glib2-devel.x86_64 2.86.4-1.fc43 updates glibc.i686 2.42-9.fc43 updates glibc.x86_64 2.42-9.fc43 updates glibc-all-langpacks.x86_64 2.42-9.fc43 updates glibc-common.x86_64 2.42-9.fc43 updates glibc-devel.x86_64 2.42-9.fc43 updates glibc-gconv-extra.i686 2.42-9.fc43 updates glibc-gconv-extra.x86_64 2.42-9.fc43 updates pulseaudio-libs-glib2.x86_64 17.0-9.fc43 updates Jak pozbyć się tych dwóch pierwszych linii. Przekierowanie 2>/dev/null nie pomaga. Po przekierowaniu do pliku to w pliku ich nie ma, ale w terminalu są. Czym są te linie? Po przekierowaniu do less są. "grep -v" nie działa na nie. Radek Glebicki Link to comment Share on other sites More sharing options...
@sunrise Posted February 20 Report Share Posted February 20 dnf check-update 2>&1 | egrep -v 'Aktualizowanie i ładowanie repozytoriów|Załadowano repozytoria' 1 Link to comment Share on other sites More sharing options...
Radosław Posted February 20 Author Report Share Posted February 20 ok Działa. Ale działa też przekierowanie tylko 2>/dev/null Dlaczego napisałem wcześniej, że nie działa? Jest ok. Dzięki. Radek Głębicki Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now