Search Results

Search: Posts Made By: RavinderSingh13
3,756
Posted By RavinderSingh13
Hello Nina2910, Above script provided by me...
Hello Nina2910,

Above script provided by me worked fine for me, you could try to run it in as follows too.

cat script.ksh
COUNT=$(ls *.txt | wc -l)
paste *.txt | awk -vcount=$COUNT 'function...
3,756
Posted By RavinderSingh13
Hello Nina2910, Request you to please answer...
Hello Nina2910,

Request you to please answer Don's question. Glad that I could help you, you could run following script, where I have made a minor change into it to get the headers of your...
3,756
Posted By RavinderSingh13
Hello Nina2910, So in previous code of...
Hello Nina2910,

So in previous code of mine(POST#4)we need to manually provide number of .txt file into code(where we are using NF/3). So converting code into a script and skipping pain of...
3,756
Posted By RavinderSingh13
Hello Nina, So number of columns were not...
Hello Nina,

So number of columns were not mentioned before so solution was according to it, so following may help you with dynamic number of columns but condition is Input_files should have same...
3,756
Posted By RavinderSingh13
Hello Nina2910, Welcome to forums, hope you...
Hello Nina2910,

Welcome to forums, hope you will enjoy learning/sharing knowledge here. Could you please try following and let me know how it goes.

awk 'function get(a,b,array1){array1[a]=a in...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 06:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy