10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I am planning to automate multiple files through Unix script.
Could you please guide for making the automation for multiple files ?
I have to check header and footer for all files in the particular path and the header pattern should match with the filename.
Filename- Filename.txt... (2 Replies)
Discussion started by: karthick2020333
2. Shell Programming and Scripting
My UNIX system is SUN Solaris.
I am trying to do a simple thing as described below.
I have a PIPE delimited file that has header and trailer. So the file is something like below:
Test1.txt looks like something below:
field_data1|field_data2|and some more data --Header
... (5 Replies)
Discussion started by: Saanvi1
3. UNIX for Dummies Questions & Answers
I have one shell script start.sh which executes another shell script test.sh something like below :test.sh -param1 -param2
In the test.sh there is one command for removing file:rm file1.bak
I want whenever I execute start.sh, it will execute test.sh and if it finds string rm... (7 Replies)
Discussion started by: ORAI
4. Shell Programming and Scripting
please see my requirement, I hope I am clear. (9 Replies)
Discussion started by: mirwasim
5. Shell Programming and Scripting
I need a script that validates a file header/detail/trailer. File layout is:
Header - Rec_Type|File_name|File_Date
Detail - Rec_Type|field1|field2|field3...
Trailder - Rec_Type|File_name|File_Date|Record_count
HDR|customer_data.dat|20120709... (7 Replies)
Discussion started by: ash_sh
6. UNIX for Dummies Questions & Answers
for example, i have a file with below content:
i want the output as:
This is header
This is trailer
i am able to achieve it using a bash script. (2 Replies)
Discussion started by: pandeesh
7. UNIX for Dummies Questions & Answers
I want to add the below Header to all the files in sequence File1,File2,File3...etc
"ABC,<number of chracter in the file>"
e,g - If File1 is as below
then I want to add the above header into it ,So that File1 becomes as below
... (9 Replies)
Discussion started by: spari2
8. Shell Programming and Scripting
i have .DAT file FILE1.DAT
2123456789 J123456 ABC
2123456789 K123456 ABC
2222222222 L123456 DEF
2333333333 M12345 GHI
My outfile FILE2.TXT should have like this, I need the header value as ie (1200910270040625 ) body rows remove the duplicate rows and the... (2 Replies)
Discussion started by: kshuser
9. Shell Programming and Scripting
I am karthik. I am new to this forum. I have one requirement.
I have a file with header and footer.
Header may be like
(Assume it is unknown so far, but i am sure there is a header in the file)
likewise file has the trailer too.
I just... (7 Replies)
Discussion started by: karthi_gana
10. UNIX for Dummies Questions & Answers
I am new to Unix programming. My inquries is:-
a) How to add a Header and Trailer in the set of data
b) Include a number count of the data in the trailer
The set of data only contained the information of 'Customer's Name' and 'Account Number'. I would like to add the Header... (2 Replies)
Discussion started by: balzzz