10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
We have a requirement to send email using shell script.email should have html body and pdf attachment. We used uuencode for attaching files and sendmail option to acheive and it is working fine. However custoemr wants to make body of email slightly dynamic. E.g dear customer in html file... (3 Replies)
Discussion started by: Harish7586
2. UNIX for Dummies Questions & Answers
By using sed command, How to insert a new line before the last four lines of the file.
Old Line (8 Replies)
Discussion started by: wridler
3. UNIX for Dummies Questions & Answers
I am wondering why the sort command removes the volume with 0 in it, but orders everything else. I have a list like this:
/vol/list_vol9... (2 Replies)
Discussion started by: newbie2010
4. Shell Programming and Scripting
Hoping someone hoping someone might be able to help. i've got the following sed command which i'm using in a bash script that i'm trying to use to insert a new line into an already existing file so i don't have to manually enter it when setting stuff up. the existing script test2/3 are... (3 Replies)
Discussion started by: springs2
5. Shell Programming and Scripting
My eyes glaze over trying to understand multiline sed commands, so please forgive me if this has been asked before. I'd like to condense the following two lines:
into the following one line:
How is that done in sed? (7 Replies)
Discussion started by: scolfax
6. UNIX for Advanced & Expert Users
is it a behavior of or
that "-i" removes unix link .
i create a file "src_file" and link it to "link_file" and then i start "perl -i"
the link is removed. does another option exists to change content of a file without temporary files ?
UNIX-Version: HP-UX and... (2 Replies)
Discussion started by: bora99
7. UNIX for Dummies Questions & Answers
This is my first posting. I have read the rules of this forum. I have searched many various threads and haven't found one that applies to my situation or suggestions to fix the issue. I do appreciate the help.
I am trying to execute a basic UNIX script in a Solaris... (4 Replies)
Discussion started by: dqrgk0
8. Shell Programming and Scripting
Sorry for the duplicate thread this one is similar to the one in
Since there were no responses on the parent thread since it got resolved partially i thought to open the new... (4 Replies)
Discussion started by: rajan_san
9. Shell Programming and Scripting
I am using the following code to get the first field of all the lines in a file using sed command.But its not printing the last line.Why it is so and how can i read the different fields of each line ?
for i in $(sed = filename.txt | sed 'N;s/\n/ /' | cut -d " " -f1)
val1=`sed... (5 Replies)
Discussion started by: Sharmila_P
10. Shell Programming and Scripting
the file contains the follwoing lines
* Copyright (C) 1995-1996 by XXX Corporation. This program
* contains proprietary and confidential information. All rights reserved
* except as may be permitted by prior written consent.
* $Id: xxx_err.h,v 1.10 2001/07/26 18:48:34 zzzz $
... (1 Reply)
Discussion started by: radha.kalivar