0 Reputation Points
100% Quality Score
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
~603 People Reached
This member's community profile is only visible to logged in members until they have earned 15 reputation points.
Favorite Forums
Favorite Tags
shell-scripting x 3
python x 1
3 Posted Topics
this script still complains about the use of -lt because that expects integers [CODE] #!/bin/sh q=1.170 while [ $q -lt 1.405 ]; do echo $q q = $(( $q + 0.005 )) done [/CODE]
probably something like [CODE] #!/bin/sh if [ $# -eq 0 ]; then echo "usage: waiton <user> <frequency>" exit 0 fi user=$1 frequency=$2 if [ -z "${frequency}" ]; then frequency=60 fi while $(true); do count=$(who | grep ${user} | wc -l) if [ ${count} -gt 0 ]; then echo "user ${user} …
would think you first need to decide how you will pull out the columns from the files. what is structure of your files, and what separates out the columns, if is simple separator (for example a | symbol) - then you might use something like: [CODE] awk -F \| '{print …
The End.
chaosless