Skip to content

Commit

Permalink
Fix Used
Browse files Browse the repository at this point in the history
add sed -n '1p'
  • Loading branch information
eloaders committed Jan 27, 2012
1 parent 0483013 commit ddbc043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/i-nex/.src/Disk_Drives.module
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Public Sub get_informations()
Shell "cat /proc/mounts | grep " & Finfosys.ComboBox3.Text & " | awk {'print $4'}" Wait To mount_widtch
Shell "ls -l /dev/disk/by-uuid/ | grep " & Finfosys.ComboBox3.Text & " | awk {'print $8'}" Wait To device_uuid
Shell "swapon -s | sed -n '2p' | awk {'print $1'} | cut -d '/' -f 3" Wait To check_swap
Shell "df | grep '" & Finfosys.ComboBox3.Text & "' | awk {'print $5'}" Wait To used
Shell "df | grep '" & Finfosys.ComboBox3.Text & "' | awk {'print $5'} | sed -n '1p'" Wait To used
rm_new_line()

End
Expand Down

0 comments on commit ddbc043

Please sign in to comment.