4

shell script for getting the file size

view full story
linux-howto

http://www.unix.com – Hi can some one please help me how i can get the output i require: My text file "sample.txt" contains the text like below Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_fedora-lv_root 15G 2.6G 12G 19% /hari Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_fedora-lv_root 15G 2.6G 12G 19% /abc Now if i do ---- grep hari sample.txt it returns me --- 15G 2.6G 12G 19% /hari what parameters should i use to get only the 15G (Infact the size only ) (HowTos)