Line Count & MAil Issues


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Line Count & MAil Issues
# 1  
Old 12-01-2006
Line Count & MAil Issues

Please help...I forgot how to do a linecount in Solaris. I'm list a report & I'm trying to count how many instances.

Also, I need to read & clean up mail for root. What directory is that again.

Thanks
# 2  
Old 12-01-2006
Quote:
Originally Posted by Remi
Please help...I forgot how to do a linecount in Solaris. I'm list a report & I'm trying to count how many instances.
instances? instances of what?
line count: 'wc -l < myFile'
Quote:
Originally Posted by Remi
Also, I need to read & clean up mail for root. What directory is that again.

Thanks
/var/mail/root
# 3  
Old 12-01-2006
Also, I need to read & clean up mail for root. What directory is that again

thanks!

/var/mail/root doesn't have anything in there, but I keep getting the "you have mail" message everytime I log in ....Is there any other place I can check..
# 4  
Old 12-02-2006
don't kno about sun , but check /var/adm/mail
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Xalan & Xerces issues for Oracle Linux 6.6 & Solarisstudio12.3 C++ compiler for Linux

Hi Team, I am facing issue while using Xalan & Xerces for my application. Below are my environment details i am using :- Platform:- Oracle Linux 6.6 Compiler :- solarisstudio12.3 C++ compiler for Linux Below are the versions of Xalan & Xerces source code used to build the shared object... (0 Replies)
Discussion started by: agrachirag
0 Replies

2. Shell Programming and Scripting

Count the pipes "|" in line and delete line if count greter then number.

Hello, I have been working on Awk/sed one liner which counts the number of occurrences of '|' in pipe separated lines of file and delete the line from files if count exceeds "17". i.e need to get records having exact 17 pipe separated fields(no more or less) currently i have below : awk... (1 Reply)
Discussion started by: ketanraut
1 Replies

3. Shell Programming and Scripting

Mail Format Issues

Hi All, I 'm trying to find a way to send my contents of a file as a body of email in the format shown below. However, the format of the contents are messed up when I receive the email. ---------------------------------------------------------------------------------------------------------... (2 Replies)
Discussion started by: shash
2 Replies

4. Shell Programming and Scripting

Need Script to ZIP/SAVE & then DELETE Log file & send a mail conformation for any error

ENVIROMENT Linux: RHEL 6.4 Log Path: /usr/iplanet/servers/https-company/logs Log Format: user.log.03-15-2015 I have log4j log rotation enabled rotating files on a daily basis. The rotated logs are NOT compressed & are taking up too much space. I need a script that will run daily that... (1 Reply)
Discussion started by: admin_job_admin
1 Replies

5. Shell Programming and Scripting

Compare file1 header count with file2 line count

What I'm trying to accomplish. I receive a Header and Detail file for daily processing. The detail file comes first which holds data, the header is a receipt of the detail file and has the detail files record count. Before processing the detail file I would like to put a wrapper around another... (4 Replies)
Discussion started by: pone2332
4 Replies

6. UNIX for Dummies Questions & Answers

issues in sending mail

Hi, i am trying the below script for sending mail. if then count=`cat $sfile|wc -l` echo "There are $count abends.Please take care " > body.txt (cat body.txt;uuencode $sfile $sfile) | mailx -s "Alert:there are failures" pandeesh@gmail.com fi In the mail, i am getting like: ... (4 Replies)
Discussion started by: pandeesh
4 Replies

7. UNIX for Dummies Questions & Answers

netscape mail issues

Don't know if this is too in-depth for the ".. Dummies .." forum, but I figured I'd try this one first. I have a file from a client that I need to save to our UNIX server. If the file is sent as an email attachment from UNIX (via command line or Twiggi Mail), the following occurs: if the... (0 Replies)
Discussion started by: jumpinfallout
0 Replies

8. UNIX for Dummies Questions & Answers

mail issues on SCO_SV 5.0.6

I am very new to unix and I am trying to get a Sco Server setup to send outgoing email. I know that SCO uses MMDF and i have configured it to use TCP/IP and UUCP, but I never receive any of the emails I send to my exchange server. I don't have this problem on any of the Linux systems I use. ... (0 Replies)
Discussion started by: chive2
0 Replies
Login or Register to Ask a Question