10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file "file1" that contains several ip address , and the "file2" contains several records , each line in file2 contains somewhere the ip address that i am searching in the file1
I use the unix command grep -w
for i in `cat file1`
do
grep -w "$i" file2 >> file3
done
... (9 Replies)
Discussion started by: knijjar
9 Replies
2. UNIX for Beginners Questions & Answers
My company has an email user group email address name that has 35 characters in front of the @ symbol where two of them are dashes. For some reason the mail command fails to send email to this address when I invoke it from the Linux command line. I don't understand the reason for the failure. Below... (5 Replies)
Discussion started by: Phil44
5 Replies
3. Shell Programming and Scripting
It looks like if matching and deleting the last line confuses 'sed' so it does not recognize '$' address. Consider:
sed -e '/^3/d' -e '$ a text'
supposed to delete a line starting with '3' and then append 'text' after the last line of input. But, if it is the last line of input which starts... (2 Replies)
Discussion started by: msz59
2 Replies
4. UNIX for Dummies Questions & Answers
Hello, all,
I have been trying to use what Perderabo has given to send attachment via email., but I am not getting the attachments, what I see on the receiving email system are the attachments contents inside the body of the received email. No attachment icon shows in the received email.
I am on... (3 Replies)
Discussion started by: gio001
3 Replies
5. Shell Programming and Scripting
I have been struggling with a script to automate some security related activities. I have it pretty much working, all except the search. I have an input file formatted as such:
216.234.246.158 216.234.246.158 ``
24.249.221.22 24.249.221.200 ``
24.249.226.0 ... (4 Replies)
Discussion started by: tsunami4u
4 Replies
6. Shell Programming and Scripting
Hi there,
I was looking for a script to send mails with attachment(s) and I found mimesender here in the forums.
But I've got some difficulties to get it working.
Here is the command I submit on the shell:
./mimesender -t to@mail.com -T "To Name" -f frommail -F "From Name" -b body.txt -s... (3 Replies)
Discussion started by: keyboarder2k
3 Replies
7. UNIX for Advanced & Expert Users
Am I missing something, or does RFC 3549 suggest that the NLM_F_REPLACE flag should apply to any netlink message header? In other words, routes/links/ipv6-lifetimes should not be the only things that can be affected by the flag.
The reason I ask is that it seems impossible (from looking at the... (0 Replies)
Discussion started by: jjinno
0 Replies
8. UNIX for Dummies Questions & Answers
Hello,
I found the mimesender multiple attachment emailing shell script in the FAQ of these forums, and I have been able to use it to send multiple files, but only if they don't have spaces in their file name or path.
When I attempt to send a file with spaces in it's name, enclosed... (0 Replies)
Discussion started by: rsmorra
0 Replies
9. UNIX for Dummies Questions & Answers
Hi,
how to put some receipients for mail in bcc and some receipients in to. (2 Replies)
Discussion started by: prasee
2 Replies
10. Solaris
Hi all!
After I assigned the IP address to one machine V890, ce0 NIC, with 190.10.10.66, subnetmask is 255.255.0.0 successfully, however, when I pinged to the other machine 190.10.10.68, I did not receviced any reply message.
Would you like to guide me?
Thank you very much! (6 Replies)
Discussion started by: trantuananh24hg
6 Replies