10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, I am new to UNIX and need your help in formatting the below input command to the desire output
Input:
CREATE UNIQUE INDEX XPKTABLE1
(
COL1,
COL2
) ON TABLE_NM;
Output:
COMMENT ON TABLE DB_NM.TABLE_NM AS 'PK=,COL1,COL2; ';
In... (14 Replies)
Discussion started by: varun2327
14 Replies
2. Shell Programming and Scripting
When i execute the below shell script with 2 different Input files, for one of the data files (datafile1) my email message body in the outlook messes up and every thing comes up in one line. May i please know what i am doing wrong here or how to fix this? The only difference in data files is one is... (1 Reply)
Discussion started by: Ariean
1 Replies
3. Solaris
Hi,
I am using log4j syslog appender to redirect the application logs to the solaris syslog.
However, I am facing issue in formatting. It is not able to interpret new line characters and is printing \n as it is.
Ex: Following is getting written into the syslog file.
"\n \n File =... (4 Replies)
Discussion started by: Pra
4 Replies
4. Shell Programming and Scripting
Hi All,
I am using the below script which has awk command, but it is not returing the expected result. can some pls help me to correct the command.
The below script sample.ksh should give the result if the value of last 4 digits in the variable NM matches with the variable value DAT. The... (7 Replies)
Discussion started by: G.K.K
7 Replies
5. Windows & DOS: Issues & Discussions
Oracle Linux 5.6 x-86-64 (Red Hat derivitive)
I have several shell scripts that capture output to a log file, then use that log file as the source of an email. For a very simplified example:
echo Today is `date` >> $logfile
/bin/mail -s "$subject" "$sendto" < $logfile
(yes, $subject... (6 Replies)
Discussion started by: edstevens
6 Replies
6. Shell Programming and Scripting
Hello everyone, I'm in need of some assistance. I'm currently enrolled in an introductory UNIX shell programming course and, well halfway through the semester, we are receiving our first actual assignment. I've somewhat realized now that I've fallen behind, and I'm working to get caught up, but for... (1 Reply)
Discussion started by: MrMagoo22
1 Replies
7. Shell Programming and Scripting
Hi All,
I have written a grep command to grep the files containing Windows directories.
I need to output this to a csv.
So here is the code.
OUTPUT_FILE="Sample-format.txt"
ACT_OUTPUT_FILE="Sample-format.csv"
grep -wHrnI --exclude=*.log ':\{1,2\}*\{1,2\}*'... (0 Replies)
Discussion started by: flamingo_l
0 Replies
8. Shell Programming and Scripting
Hello,
I am developing a platform Independant tool that should work for all major unix flavors outlined in this forum(Solaris,Linux, AIX, HPUX, SCO,BSD)
Therefore, in order to cover all types of user community, I have deliberately posted the same message on every forum. Please do not think... (9 Replies)
Discussion started by: darsh123
9 Replies
9. Shell Programming and Scripting
How to remove any space around a specific charachter from a string using sed.
for exmple :
the string is like following
str1='"name", "roll", "addr","job", "pay",'
I need to remove all the spaces aronnd the commas. (8 Replies)
Discussion started by: mady135
8 Replies
10. Shell Programming and Scripting
Hi,
I have a shell scripting. This will take 7 digit number in each line and add 7 digit number with next subsequent lines ( normal addition ).
Eg:
0000001
0000220
0001235
0000022
0000023
...........
.........
........
Like this i am having around 1500000 records. After adding... (23 Replies)
Discussion started by: thambi
23 Replies