srinivasan <srinivasan....@gmail.com> wrote: > Even after changing as per the below > "blkid -o export %s | grep 'TYPE' | cut -d'=' -f3" > or: > 'blkid -o export %s | grep "TYPE" | cut -d"=" -f3' > or: > "blkid -o export %s | grep \"TYPE\" | cut -d\"=\" -f3" > > Still my output is: > */dev/mmcblk1p1: LABEL="efi" UUID="1084-AA42" TYPE="vfat"* > > My expected output should be only: > *vfat* > > Could you guys please do the needful? > > Perfect place to use sed instead of grep/cut. -- https://mail.python.org/mailman/listinfo/python-list
- Re: [Tutor] SyntaxError: can't assign to lit... srinivasan
- Re: [Tutor] SyntaxError: can't assign t... Brian J. Oney via Python-list
- Re: [Tutor] SyntaxError: can't assi... srinivasan
- Re: [Tutor] SyntaxError: can't ... Qian Cai
- Re: [Tutor] SyntaxError: ca... Chris Angelico
- Re: [Tutor] SyntaxErro... srinivasan
- Re: [Tutor] Syntax... Chris Angelico
- Re: [Tutor] Sy... Anssi Saari
- Re: [Tutor] Sy... Chris Angelico
- Re: [Tutor] Sy... Anssi Saari
- Re: [Tutor] Sy... Chris Angelico
- Re: [Tutor] SyntaxError: can't ... Ben Bacarisse
- Re: [Tutor] SyntaxError: ca... srinivasan
- Re: [Tutor] SyntaxError: can't ... Cousin Stanley