9 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Required No.of field = 12
Let say you got a “~” delimited input file and this file has 6 input fields and now I want to add 12-5=7 number of “~” into this input file in order to make it 12 fields
datafile can have n number of records
ex.,
a~b~c~d~12~r
a~b~c~d~12~r
a~b~c~d~12~r... (19 Replies)
Discussion started by: LJJ
19 Replies
2. Shell Programming and Scripting
I have a data file where three data sets are written in three columns. Can I increase the space between the columns without reading them?
Also can I insert particular patterns, say comma between 1st and 2nd column and colon between 2nd and 3rd column? (13 Replies)
Discussion started by: hbar
13 Replies
3. Shell Programming and Scripting
I have a file that contains records in the below format:
23857250998423948239482348239580923682396829682398094823049823948
23492780582305829852095820958293582093585823095892386293583203248
23482038509825098230958235234230502958205983958235820358205892095... (10 Replies)
Discussion started by: shellhelp
10 Replies
4. Shell Programming and Scripting
Hi All,
I need the modification for the below mentioned code (found in one more post https://www.unix.com/shell-programming-scripting/27161-script-generate-average-values.html) to find the average values for all the columns(but for a specific rows) and print the averages side by side.
I have... (4 Replies)
Discussion started by: ks_reddy
4 Replies
5. Shell Programming and Scripting
Hi All,
I want someone to modify the below script from this forum so that it can be used for all columns in the file( instead of only printing column 3 mean and standard deviation values). I don't know how to loop around all the columns.
... (3 Replies)
Discussion started by: ks_reddy
3 Replies
6. UNIX and Linux Applications
Hi
I've been trying to delete columns from a file, and the best option I could come up was to initialise them to NULL.
The reason for this is because I need to compare the differences between 2 files with those specific columns excluded.
Here is my script:
#!/bin/bash... (4 Replies)
Discussion started by: ladyAnne
4 Replies
7. UNIX for Advanced & Expert Users
Hello!!!!!!!!
I have an issue regarding inserting records in a file columnwise.Is it possible using awk/nawk script?
Example:
File1:
1|AAA|25|2
5|qqe|20|7
4|wer|31|81
I need to create a second file in which data can be inserted in a columnwise manner i.e.
File2:
AAA|25|1|2... (1 Reply)
Discussion started by: abhijeet1409
1 Replies
8. Shell Programming and Scripting
not required this time (36 Replies)
Discussion started by: Sandeep_Malik
36 Replies
9. Shell Programming and Scripting
Hi All,
I have used this forum many times to solve my many scripting problems. This time, I would like to seek some answers to a problem that I've been head scratching quite a bit on.
My Example:
I am converting a 2000-byte file into a 300-byte file
this file has no delimiters and hardly any... (3 Replies)
Discussion started by: oott1
3 Replies