9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file hello.txt which i wish to send as a email body (not attachment).
cat -ev hello.txt
1$
2$
3$
I use the following command to send the hello.txt as the email body.
mailx -s "Alert" myteam@mycomp.com<hello.txt
However, the email received has this in the email body
123... (2 Replies)
Discussion started by: mohtashims
2 Replies
2. UNIX for Dummies Questions & Answers
Hello
I am using a grep command with two patterns in my KSH script. File has line breaks in it and both the patterns are in different lines. Here is the command grep -l 'RITE AID.*ST.820' natriter820u.20140914
Pattern1 - RITE AID
Pattern2 - ST*820
I am not getting any results from... (24 Replies)
Discussion started by: Raghav Garg
24 Replies
3. How to Post in the The UNIX and Linux Forums
I am using a grep command with two patterns in my KSH script. File has line breaks in it and both the patterns are in different lines. Here is the command - grep -l 'RITE AID.*ST.820' natriter820u.20140914
Pattern1 - RITE AID
Pattern2 - ST*820
I am not getting any results from this,... (3 Replies)
Discussion started by: Raghav Garg
3 Replies
4. Shell Programming and Scripting
I need to read temp.$i file content line by line through while loop but somehow the '\' do not appear in output.. Can someone guide how to read this exact content line by line in unix :
if
then
cat temp.$i | head -1 # the file content appears fine
while... (13 Replies)
Discussion started by: Prev
13 Replies
5. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Basically, the prompt is make a makefile with various sub makefiles in their respective subdirectories. All code... (1 Reply)
Discussion started by: Tatl
1 Replies
6. Shell Programming and Scripting
Hi,
Does any one know how to avoid the scenario where awk ignores the fields having only spaces or empty fields?
for instance,
Data: "a","b","c","d",""," "
code:
awk -F, '{ print NF }' File
the output I get is 4 instead of 6 do you know how to avoid this? (6 Replies)
Discussion started by: ahmedwaseem2000
6 Replies
7. Shell Programming and Scripting
Dear all,
I have a file as below
100||kjhkjhkjhkjhk
200|TR|jvsjfhskfhskfhsdh
300|BH|kjlkjljlkj
600||dadsadasdada
||ffsdfsf
|YU|popopop
900||mlml
when I apply the below sort command, results obtained displayed below-
cut -f1,2 -d"|" test.txt|sort -u
100|
200|TR
300|BH
600|
900|... (9 Replies)
Discussion started by: sureshg_sampat
9 Replies
8. UNIX for Advanced & Expert Users
Hi, I'm trying to run the module load command in a Makefile and i'm getting the following error:
make: module: command not found
Why is this? Is there any way to run this command in a Makefile?
NOTE: command - module load msjava/sunjdk/1.5.0 works fine outside of the Makefile (2 Replies)
Discussion started by: hernandinho
2 Replies
9. UNIX and Linux Applications
I have been using a procmail recipe for some time. I successfully include numerous INCLUDERC files. However, since each of these include files have become rather large over time, I started to try to organize better.
So where procmailrc once just had:
INCLUDERC=$PMDIR/original-filters.rc
... (0 Replies)
Discussion started by: BostonDriver
0 Replies