Guest User

Untitled

a guest
Oct 18th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. fsmp="/urano/fix/AIX_MLs"
  2.  
  3. lastc=`grep -i $fsmp /etc/fstab | awk '{print $2}' | sed -e "s/^.*(.)$/1/"`
  4.  
  5. filesystem=`grep -i $fsmp /etc/fstab | awk '{print $2}'`
  6.  
  7. 1part=`grep -i $fsmp /etc/fstab | awk '{print $1}'`
  8.  
  9. rest=`grep -i $fsmp /etc/fstab | awk '{print $3" "$4" "$5" "$6}'`
  10.  
  11. if [ "$lastc" = "/" ]
  12.  
  13. then
  14.  
  15. woslash=`echo $filesystem | awk -F/ '{OFS="/";NF--;print $0;}'`
  16.  
  17.  
  18. echo "$1part $woslash $rest"
  19.  
  20. fi
Add Comment
Please, Sign In to add comment