Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fsmp="/urano/fix/AIX_MLs"
- lastc=`grep -i $fsmp /etc/fstab | awk '{print $2}' | sed -e "s/^.*(.)$/1/"`
- filesystem=`grep -i $fsmp /etc/fstab | awk '{print $2}'`
- 1part=`grep -i $fsmp /etc/fstab | awk '{print $1}'`
- rest=`grep -i $fsmp /etc/fstab | awk '{print $3" "$4" "$5" "$6}'`
- if [ "$lastc" = "/" ]
- then
- woslash=`echo $filesystem | awk -F/ '{OFS="/";NF--;print $0;}'`
- echo "$1part $woslash $rest"
- fi
Add Comment
Please, Sign In to add comment