Re: Script using sed or awk

2003-09-05 Thread Bret Hughes
On Fri, 2003-09-05 at 13:12, Patrick Nelson wrote: > RH9 > > Have a php page and I want the outcome of > > du -hs /var/spool/imap/$username | awk '{print $1}' > > however, username is (say) joe.user.example.com but the directory is > joe^user^example^com > > Any sed or awk experts help me do t

Re: Script using sed or awk

2003-09-05 Thread Tiago Ferraz Machado - estagiario
However, if you want, here goes the "sed" solution: du -sh /var/spool/mail/`echo -e $USERNAME | sed 's/\./^/'` []`s Tiago. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list

Re: Script using sed or awk

2003-09-05 Thread John P Verel
On 09/05/03 11:12 -0700, Patrick Nelson wrote: > RH9 > > Have a php page and I want the outcome of > > du -hs /var/spool/imap/$username | awk '{print $1}' > > however, username is (say) joe.user.example.com but the directory is > joe^user^example^com > > Any sed or awk experts help me do this

Re: Script using sed or awk

2003-09-05 Thread Benjamin J. Weiss
> RH9 > > Have a php page and I want the outcome of > > du -hs /var/spool/imap/$username | awk '{print $1}' > > however, username is (say) joe.user.example.com but the directory is > joe^user^example^com > > Any sed or awk experts help me do this in one line? The output is > simply the amount of s

Script using sed or awk

2003-09-05 Thread Patrick Nelson
RH9 Have a php page and I want the outcome of du -hs /var/spool/imap/$username | awk '{print $1}' however, username is (say) joe.user.example.com but the directory is joe^user^example^com Any sed or awk experts help me do this in one line? The output is simply the amount of space used by the