Advertisement
zerooone

Untitled

Mar 9th, 2011
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.47 KB | None | 0 0
  1. #!/bin/bash
  2. # The scrolling text doesn't work as expected, instead i get a blank line
  3. # in its position. Don't know why yet. If someone has a fix plz post
  4. if pgrep sandbox > /dev/null
  5. then CUR=`genlop -cn | grep "*" | sed 's/ \* //' | tr -d " "`
  6. else CUR="None"
  7. fi
  8.  
  9. LEN=`echo ${#CUR}`
  10. if [ "$LEN" -gt "27" ]
  11. then output='${color grey}  [ebld ] ${color}${alignr}${scroll 27 2 '${CUR}'}'
  12. else output='${color grey}  [ebld ] ${color}${alignr}'${CUR}
  13. fi
  14.  
  15. echo "$output"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement