PDA

View Full Version : [ubuntu] Strang grep behavior



bprof
September 21st, 2008, 06:49 PM
I ran this command on slackware

#df | grep /dev/sda

and got something like this
/dev/sda 1234544 12433 1312111 %1 /var

But on Ubuntu I get only this
/dev/sda

How I can get the full line instead of just /dev/sda?

Thank you,

bab1
September 21st, 2008, 07:40 PM
What does the df return without the pipe through grep?

t0p
September 21st, 2008, 07:56 PM
t0p@ubunty:~$ df | grep /dev/sda1
/dev/sda1 18655308 13972612 3742496 79% /