10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am struggling to write a script that validates file header.
Header file would be like below with TAB separated
TRX # TYPE REF # Source Piece Code Destination Piece Code
every time I need to check the txt file if the header was same as above fields if validation success... (6 Replies)
Discussion started by: heye18
2. Shell Programming and Scripting
I have a .CSV file (frequency - weekly) whose header contains the year-week value in two of the columns which keeps changing every week. For an instance please see below.
Column1,Column2,Column3,Column4,Column5,Column6,Column7,Column8,Column9,Column10,Column11,Column12,Column13,201420... (4 Replies)
Discussion started by: dhruuv369
3. UNIX for Dummies Questions & Answers
I have a flat file that contains dynamic list of variables like
I need to convert the above into a csv file having the format below:
Please note, I do not want a comma separating the last variable.
I tried to refer the post... (4 Replies)
Discussion started by: vkumbhakarna
4. Shell Programming and Scripting
Could anyoone please let me know how do I get sqlplus column header once in csv file
Scripts are below:
while ; do
sqlplus apps/pwd <<-EOF
set lines 100 pages 100
col "USER_CONCURRENT_QUEUE_NAME" format a40;
--set termout off... (5 Replies)
Discussion started by: a1_win
5. Shell Programming and Scripting
I have an input like this
1 2 3 4
2 3 4 5
4 5 6 7
I would like to count the no. of columns and print a header with a prefix "Col".
I would also like to count the no. of rows and print as first column with each line number with a prefix "Row"
So, my output would be
... (2 Replies)
Discussion started by: jacobs.smith
6. Shell Programming and Scripting
My files location
I have 100 .txt files on above location.
I want add header "pt all" on each file.
Sample Text file
Output i want
Jt all (2 Replies)
Discussion started by: asavaliya
7. UNIX for Dummies Questions & Answers
I need help with the following in UNIX.
Merge all csv files in one folder considering only 1 header row and ignoring header of all other files.
FYI - All files are in same format and contains same headers.
Thank you (4 Replies)
Discussion started by: Shiny_Roy
8. Shell Programming and Scripting
I create a csv file and the output looks like below
Now i need to include the below header and the output should like below
Please guide me.
Thanks (4 Replies)
Discussion started by: Sekar1
9. Shell Programming and Scripting
I have a csv file which has no header. the file has 15 fields and needs to go out with a header of 8 fields.
The header content needs to have some variables and some fixed that i have set up:
variable header fields
TIME=`date '+%H:%M:%S'`... (6 Replies)
Discussion started by: Pablo_beezo
10. Shell Programming and Scripting
I have one large file, after every 200 line i have to split the file and the add header and footer to each small file?
It is possible to add different header and footer to each file? (1 Reply)
Discussion started by: ashish4422