Full code. I am attempting to get a list of the ttys associated with the running user. This is the first step.
#!/usr/bin/perl -w use strict; my $user=`whoami`; my @ps=`ps aux |grep $user`; #print @ps; foreach(@ps){ $_ =~ s!.*pts/\([0-9][0-9]*\).*!$1!; print $_; } exit 0
In reply to Re^2: using sed buffers
by floobit
in thread using sed buffers
by floobit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |