10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello Everyone,
I am new to Unix and trying to learn as much as I can. But I do not need to create urgent scripts that I can use instantly. :(:(
One of the scripts I am trying to write is essentially something that takes in a .txt file with product names.
The product names are... (3 Replies)
Discussion started by: UN007
3 Replies
2. Shell Programming and Scripting
I am having a bash script which is basically invoking a python program to validate the Source Query results against the target query results. I am placing all the queries in a .sql file.
I want to write to a Error log file incase if the syntax is wrong or if the column is not present in the... (4 Replies)
Discussion started by: ronitreddy
4 Replies
3. UNIX for Dummies Questions & Answers
Hi,
below 'awk' code was given for my thread 'Help with printing output format from a file ' earlier, however script is not resulting expected output with below file content.
cat test_tes123.dml
record
string("\001") emp_num; /* CHAR(11) NOT NULL*/
date("YYYYMMDD")... (1 Reply)
Discussion started by: AAHinka
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I need help in printing data in below format from file extensions with .dml, i have listed details below
file name is test_temp.dml, location in /home/users/test01/test_temp.dml
file content:
sample_type=
record
decimal(",") test_type;
date("DD-MM-YYYY")(",") test_date... (2 Replies)
Discussion started by: AAHinka
2 Replies
5. UNIX for Dummies Questions & Answers
I have one input file ABC.txt and one output DEF.txt. After the ABC is processed and created output, I want to rename ABC.txt to ABC.orig and DEF to ABC.txt. Currently when I am doing this, it does not process the input file as it cannot read and write to the same file. How can I achieve this?
... (12 Replies)
Discussion started by: High-T
12 Replies
6. UNIX for Dummies Questions & Answers
Hi ALL,
I am presently using perl script mukesh.pl I just want to catch its output into another text file .
So I am using > File.txt .
I am getting output but i want the whole processing of the script into that file please let me know .
Thanks in advance
Cheers
Mukesh (1 Reply)
Discussion started by: mumakhij
1 Replies
7. Shell Programming and Scripting
I want to print the output of a db2 query, on to an unix file in a manner that the columns are separated by 'commas'. Please help me out..thanx in advance (1 Reply)
Discussion started by: prasan_ven
1 Replies
8. Shell Programming and Scripting
Hi.
I am new to scripting and could really do with some advice on the best way to put a script together. Here is the scenario I am working to;
- i will get files via ftp to a tmp directory on the server
- all files will have a unique file name but with the same extension (.USM)
- for each... (5 Replies)
Discussion started by: yabai
5 Replies
9. Shell Programming and Scripting
Hi,
I am trying to do the following using AWK program.
1. Read the input data file
2. Parse the record and see if it contains errors
3. If the record contains errors, then write it into Reject file, else, write into usual output file or display it on the screen
Here is what I have done -... (6 Replies)
Discussion started by: vidyak
6 Replies
10. Filesystems, Disks and Memory
I'm developing a generic script to catenate all files found in a given directory.
The problem I've got is that the depth of the given directory is unknown, so I end up with some catenated directories. My unix isn't that hot and I'm at a loss.
Heres an extract from the script
cd $1
for i in... (4 Replies)
Discussion started by: k_mufasa
4 Replies