10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I have a script which is extracting data from a database in an excel file in below given format,
date_time calling_app1 count of requests
date calling_app x 34
date calling_app y 1034
I want to write a script which will write data into a file like this ... (3 Replies)
Discussion started by: TNT47
2. Shell Programming and Scripting
I am trying to load data from a csv file into a DB during our DB migration phase. I am successfully able export all data into a .csv file but those have to rewritten in terms insert statement which will allow for further population of same data in different DB
My exiting csv record... (6 Replies)
Discussion started by: bhaskar_m
3. UNIX for Advanced & Expert Users
I have a huge file with record length around 5000 characters.
There is an ETL tool datastage which is writing this data to the file(AIX server). At position 4095 i have seen NULL Character(^@).
when i am using this command "head -1 file_nm | sed 's/\000//g'" --- the output is displaying... (3 Replies)
Discussion started by: issaq84mohd
4. Shell Programming and Scripting
I have two text files (txt1 and txt2). txt1 contains many lines with a single number in each line. txt2 (xml format) contains information about the numbers given in txt1. I need to insert one line in txt2 within the scope of each number taken from txt1.
23... (1 Reply)
Discussion started by: shekhar2010us
5. Shell Programming and Scripting
For the text file let us say t.txt having the statements as below.
filename : t.txt.
This is first string1
This is first string2
This is first string3
The output of the file should have newline. How to introduce the new line so that the output be as follows
... (5 Replies)
Discussion started by: krackjack
6. Shell Programming and Scripting
Hi All ,
Given a file , I need to delete , modify and insert lines matching certain patterns in that file using shell scripting.
e.g. If a file FILE1 has following content :
CUST.ABC.DEF = CUST.ABC.DEF * CUST.ABC.DEF
CUST.ABC.DEF = mid(CUST.ABC.DEF,10.34)... (5 Replies)
Discussion started by: swapnil.nawale
7. Shell Programming and Scripting
I want to insert a line just befor the lst line in a file. please can anyone advise.
Shazin (3 Replies)
Discussion started by: Shazin
8. Shell Programming and Scripting
This is my first thread ; facing some issues withmy sed script
I need to insert the code from my log file which is between two keywords.
content is like this ........
231 "Ban" "tom" and the line one of the cross line
friend... (2 Replies)
Discussion started by: shalini_008
9. Shell Programming and Scripting
I need to insert new text and change existing text in a file. For that I used the below line in the command line and got the expected output.
' shell > shell1
But I face problem when using the same in script. It is throwing the error as,
sed: command garbled:... (4 Replies)
Discussion started by: iamgeethuj
10. Shell Programming and Scripting
I am iterating record by record through a file as below,
The same file should look like in the final output as below,
A,D (10 Replies)
Discussion started by: videsh77