10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Greetings.
I'm on section 2.7 Including Other Files into Your Program in "The GNU Awk User’s Guide". I am on HP-UX POSIX running GNU Awk 3.1.0
I have written Test1.awk and Test2.awk as shown here:
$cat test1.awk
BEGIN {
print "This is script test1.\n"
}
$cat test2.awk ... (2 Replies)
Discussion started by: RUCerius
2 Replies
2. Shell Programming and Scripting
Hi,
I m using mailx to send email. I am using
sender=server name(display name)
echo "body" | mailx -s "subject" -b "bcc address" "to address" -- -f "$sender".
I should get email with sender as only display name. In stead i am getting displayname@server address.
Please suggest
Use code... (1 Reply)
Discussion started by: usrrenny
1 Replies
3. Shell Programming and Scripting
I need to pull down a good bit of files for another support team for an upgrade project. I have a server.list with all of the server names.
I need to do two parts:
FIRST:
I have this example, but it does not list the server name in front of each line.
#! /bin/bash
for server in $(<... (10 Replies)
Discussion started by: asnatlas
10 Replies
4. Shell Programming and Scripting
Hi,
I have a input file with many records as below:
1J4RR4GG0BC508200 68646 1 N M
i want my output file to be like with columns included dgismdh and timestamp :
Example:
1J4RR4GG0BC508200 68646 1 N M dgismdh 2012-02-21 07:22:25.98591
How to do it.can we do using awk?
Pls help. (6 Replies)
Discussion started by: sonam273
6 Replies
5. Shell Programming and Scripting
nawk -F, 'NR==FNR{file=FILENAME;a++;next} a{if(FILENAME~file)next;b++;}
END{ for(i in a){if(a && !b){print "NEW: "i}} for(i in b){if(b)print i"\t\t"b}}' OFS=, 123.csv *.csv
I need to include 123.csv into the equation for the total output currently it compares whatever is on 123.csv against... (27 Replies)
Discussion started by: llcooljatt
27 Replies
6. Shell Programming and Scripting
I've written the script below to merge only .txt files that exist in one directory into one huge .txt file and ignore other files with other extensions.
now the result is one huge .txt file with all the contents of other .txt files
how can i add a File Name as a comment before each file?
... (12 Replies)
Discussion started by: miss_dodi
12 Replies
7. UNIX for Dummies Questions & Answers
I have a sftp script which was earlier getting a file with the same name, but now, i need to get the same log file which has been moved to a different directory which has all the historical logs which have the time stamp suffixed
ex: testfile.log.020111
testfile.log.020211
So now i have to get... (0 Replies)
Discussion started by: win4luv
0 Replies
8. Programming
All,
I am getting the following error
License : Got the license for Sun WorkShop Compiler C SPARC continuing..
"rlnseg_test.c", line 300: cannot find include file: <sqlca.h>
"rlnseg_test.c", line 417: undefined symbol: sqlca
"rlnseg_test.c", line 447: undefined symbol: sqlca... (2 Replies)
Discussion started by: thana
2 Replies
9. Programming
I am trying to compile the pro*C file but gives errors. It says it encountered "std" while it was expecting ; , = ( $ $ORACLE_HOME/bin/proc tradewind/dataaccess/Blob.pcc
Pro*C/C++: Release 10.2.0.3.0 - Production on Fri May 9 11:10:54 2008
Copyright (c) 1982, 2005, Oracle. All rights... (0 Replies)
Discussion started by: shafi2all
0 Replies
10. Shell Programming and Scripting
I'm new in this.
In C/C++, you define variables in one header file & then simply include it in any files where those variables are referenced.
I tried to include a header named DefineVars- which initializes all the globals- but when I add the line "DefineGlobals" at the begining of another... (2 Replies)
Discussion started by: bluemoon1
2 Replies