merging and aligning the line in linux
I have a text file named as file1.txt .and its need to be aligned like below expected output .
Note:The input file file1.txt is TAB delemitted and its always aligned.
DISK OK - free space: CRITICAL
01-08-2018 07:05:05 Service Required Critical CPU:loadaverage 6.0%
01-08-2018 07:10:25 Service Alert Critical memoryUsage
:critical alert
DISK OK - free space:
02-08-2018 01:05:20 Service Alert Warning memoryUsage
:1.0,2.0,5.0
CRITICAl:outstanding alert attention
02-08-2018 02:05:20 Service Alert Critical required
Expected Output:
01-08-2018 07:05:05 DISK OK - free space:Service Required Critical CRITICALservice requiredCPU:loadaverage 6.0%
01-08-2018 07:10:25 Service Alert Critical memoryUsage:critical alert
02-08-2018 01:05:20 DISK OK - free space:Service Alert Warning memoryUsage:1.0,2.0,3.0
02-08-2018 02:05:20 Service Alert Critical CRITICAL:outstanding alert attention required
Any suggestions are much appreciated.
linux bash shell awk sed
add a comment |
I have a text file named as file1.txt .and its need to be aligned like below expected output .
Note:The input file file1.txt is TAB delemitted and its always aligned.
DISK OK - free space: CRITICAL
01-08-2018 07:05:05 Service Required Critical CPU:loadaverage 6.0%
01-08-2018 07:10:25 Service Alert Critical memoryUsage
:critical alert
DISK OK - free space:
02-08-2018 01:05:20 Service Alert Warning memoryUsage
:1.0,2.0,5.0
CRITICAl:outstanding alert attention
02-08-2018 02:05:20 Service Alert Critical required
Expected Output:
01-08-2018 07:05:05 DISK OK - free space:Service Required Critical CRITICALservice requiredCPU:loadaverage 6.0%
01-08-2018 07:10:25 Service Alert Critical memoryUsage:critical alert
02-08-2018 01:05:20 DISK OK - free space:Service Alert Warning memoryUsage:1.0,2.0,3.0
02-08-2018 02:05:20 Service Alert Critical CRITICAL:outstanding alert attention required
Any suggestions are much appreciated.
linux bash shell awk sed
2
Please do add your efforts in your post what you have to solve the problem?
– RavinderSingh13
Nov 20 '18 at 17:29
1
@kvantour now the question is corrected thanks for the finding
– rajaviknesh
Nov 20 '18 at 18:59
This has been asked several times. Have a look at thecolumn(1)
command here. You want to use the tab literal$'t'
as the column separator.
– Elias Toivanen
Nov 20 '18 at 19:01
1
@EliasToivanen its a diffrent scenario
– rajaviknesh
Nov 20 '18 at 19:04
@Kvantour hope you got the scenario expecting the positive reply
– rajaviknesh
Nov 20 '18 at 19:43
add a comment |
I have a text file named as file1.txt .and its need to be aligned like below expected output .
Note:The input file file1.txt is TAB delemitted and its always aligned.
DISK OK - free space: CRITICAL
01-08-2018 07:05:05 Service Required Critical CPU:loadaverage 6.0%
01-08-2018 07:10:25 Service Alert Critical memoryUsage
:critical alert
DISK OK - free space:
02-08-2018 01:05:20 Service Alert Warning memoryUsage
:1.0,2.0,5.0
CRITICAl:outstanding alert attention
02-08-2018 02:05:20 Service Alert Critical required
Expected Output:
01-08-2018 07:05:05 DISK OK - free space:Service Required Critical CRITICALservice requiredCPU:loadaverage 6.0%
01-08-2018 07:10:25 Service Alert Critical memoryUsage:critical alert
02-08-2018 01:05:20 DISK OK - free space:Service Alert Warning memoryUsage:1.0,2.0,3.0
02-08-2018 02:05:20 Service Alert Critical CRITICAL:outstanding alert attention required
Any suggestions are much appreciated.
linux bash shell awk sed
I have a text file named as file1.txt .and its need to be aligned like below expected output .
Note:The input file file1.txt is TAB delemitted and its always aligned.
DISK OK - free space: CRITICAL
01-08-2018 07:05:05 Service Required Critical CPU:loadaverage 6.0%
01-08-2018 07:10:25 Service Alert Critical memoryUsage
:critical alert
DISK OK - free space:
02-08-2018 01:05:20 Service Alert Warning memoryUsage
:1.0,2.0,5.0
CRITICAl:outstanding alert attention
02-08-2018 02:05:20 Service Alert Critical required
Expected Output:
01-08-2018 07:05:05 DISK OK - free space:Service Required Critical CRITICALservice requiredCPU:loadaverage 6.0%
01-08-2018 07:10:25 Service Alert Critical memoryUsage:critical alert
02-08-2018 01:05:20 DISK OK - free space:Service Alert Warning memoryUsage:1.0,2.0,3.0
02-08-2018 02:05:20 Service Alert Critical CRITICAL:outstanding alert attention required
Any suggestions are much appreciated.
linux bash shell awk sed
linux bash shell awk sed
edited Dec 5 '18 at 5:30
rajaviknesh
asked Nov 20 '18 at 17:26
rajavikneshrajaviknesh
44
44
2
Please do add your efforts in your post what you have to solve the problem?
– RavinderSingh13
Nov 20 '18 at 17:29
1
@kvantour now the question is corrected thanks for the finding
– rajaviknesh
Nov 20 '18 at 18:59
This has been asked several times. Have a look at thecolumn(1)
command here. You want to use the tab literal$'t'
as the column separator.
– Elias Toivanen
Nov 20 '18 at 19:01
1
@EliasToivanen its a diffrent scenario
– rajaviknesh
Nov 20 '18 at 19:04
@Kvantour hope you got the scenario expecting the positive reply
– rajaviknesh
Nov 20 '18 at 19:43
add a comment |
2
Please do add your efforts in your post what you have to solve the problem?
– RavinderSingh13
Nov 20 '18 at 17:29
1
@kvantour now the question is corrected thanks for the finding
– rajaviknesh
Nov 20 '18 at 18:59
This has been asked several times. Have a look at thecolumn(1)
command here. You want to use the tab literal$'t'
as the column separator.
– Elias Toivanen
Nov 20 '18 at 19:01
1
@EliasToivanen its a diffrent scenario
– rajaviknesh
Nov 20 '18 at 19:04
@Kvantour hope you got the scenario expecting the positive reply
– rajaviknesh
Nov 20 '18 at 19:43
2
2
Please do add your efforts in your post what you have to solve the problem?
– RavinderSingh13
Nov 20 '18 at 17:29
Please do add your efforts in your post what you have to solve the problem?
– RavinderSingh13
Nov 20 '18 at 17:29
1
1
@kvantour now the question is corrected thanks for the finding
– rajaviknesh
Nov 20 '18 at 18:59
@kvantour now the question is corrected thanks for the finding
– rajaviknesh
Nov 20 '18 at 18:59
This has been asked several times. Have a look at the
column(1)
command here. You want to use the tab literal $'t'
as the column separator.– Elias Toivanen
Nov 20 '18 at 19:01
This has been asked several times. Have a look at the
column(1)
command here. You want to use the tab literal $'t'
as the column separator.– Elias Toivanen
Nov 20 '18 at 19:01
1
1
@EliasToivanen its a diffrent scenario
– rajaviknesh
Nov 20 '18 at 19:04
@EliasToivanen its a diffrent scenario
– rajaviknesh
Nov 20 '18 at 19:04
@Kvantour hope you got the scenario expecting the positive reply
– rajaviknesh
Nov 20 '18 at 19:43
@Kvantour hope you got the scenario expecting the positive reply
– rajaviknesh
Nov 20 '18 at 19:43
add a comment |
1 Answer
1
active
oldest
votes
You can use awk
to pull this off:
awk -F"t" '!$1{for(i=1;i<=NF;i++){line[i]=$i};next} {for(i=1;i<=NF;i++){printf i<NF?"%s%s%s":"%s%s%sn",line[i],$i,FS}}' yourfile
If you need the output all aligned like you have it here (not tab delimited, but more like fixed width) you can pipe to column
awk -F"t" '!$1{for(i=1;i<=NF;i++){line[i]=$i}} $1{for(i=1;i<=NF;i++){printf i<NF?"%s%s%s":"%s%s%sn",line[i],$i,FS}}' test.log | column -t -s $'t'
Basically what this is doing is:
- Splitting each line by tab
-F"t"
- If the first column is empty, then collect each column for this line into an array by the column number as index and proceed to the next record
!$1{for(i=1;i<=NF;i++){line[i]=$i};next}
- If we are still processing the line (that first condition didn't trip) then go through each column
{for(i=1;i<=NF;i++)
- and print out what's stored in the array, the contents of the column of the current line, the Field Separator (tab), and a line feed if this is the last column
{printf i<NF?"%s%s%s":"%s%s%sn",line[i],$i,FS}}
Example of this in use:
$ cat test.log
DISK OK - free space: CRITICAL
1/8/2018 7:05:05 Service Required Critical CPU:loadaverage 6%
1/8/2018 7:10:25 Service Alert Critical memoryUsage
:critical alert
DISK OK - free space:
2/8/2018 1:05:20 Service Alert Warning memoryUsage
:1.0,2.0,5.0
CRITICAl:outstanding alert attention
2/8/2018 2:05:20 Service Alert Critical required
$ awk -F"t" '!$1{for(i=1;i<=NF;i++){line[i]=$i};next} {for(i=1;i<=NF;i++){printf i<NF?"%s%s%s":"%s%s%sn",line[i],$i,FS}}' test.log | column -t -s $'t'
1/8/2018 7:05:05 DISK OK - free space:Service Required Critical CRITICALCPU:loadaverage 6%
1/8/2018 7:10:25 Service Alert Critical memoryUsage
2/8/2018 1:05:20 DISK OK - free space:Service Alert Warning memoryUsage
2/8/2018 2:05:20 Service Alert Critical CRITICAl:outstanding alert attentionrequired
I tried the above code but its not working .I'm getting same data
– rajaviknesh
Nov 21 '18 at 13:18
Any updates on this issue
– rajaviknesh
Nov 23 '18 at 16:10
@Kvantour can I get any update on this
– rajaviknesh
Dec 5 '18 at 5:29
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53398356%2fmerging-and-aligning-the-line-in-linux%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can use awk
to pull this off:
awk -F"t" '!$1{for(i=1;i<=NF;i++){line[i]=$i};next} {for(i=1;i<=NF;i++){printf i<NF?"%s%s%s":"%s%s%sn",line[i],$i,FS}}' yourfile
If you need the output all aligned like you have it here (not tab delimited, but more like fixed width) you can pipe to column
awk -F"t" '!$1{for(i=1;i<=NF;i++){line[i]=$i}} $1{for(i=1;i<=NF;i++){printf i<NF?"%s%s%s":"%s%s%sn",line[i],$i,FS}}' test.log | column -t -s $'t'
Basically what this is doing is:
- Splitting each line by tab
-F"t"
- If the first column is empty, then collect each column for this line into an array by the column number as index and proceed to the next record
!$1{for(i=1;i<=NF;i++){line[i]=$i};next}
- If we are still processing the line (that first condition didn't trip) then go through each column
{for(i=1;i<=NF;i++)
- and print out what's stored in the array, the contents of the column of the current line, the Field Separator (tab), and a line feed if this is the last column
{printf i<NF?"%s%s%s":"%s%s%sn",line[i],$i,FS}}
Example of this in use:
$ cat test.log
DISK OK - free space: CRITICAL
1/8/2018 7:05:05 Service Required Critical CPU:loadaverage 6%
1/8/2018 7:10:25 Service Alert Critical memoryUsage
:critical alert
DISK OK - free space:
2/8/2018 1:05:20 Service Alert Warning memoryUsage
:1.0,2.0,5.0
CRITICAl:outstanding alert attention
2/8/2018 2:05:20 Service Alert Critical required
$ awk -F"t" '!$1{for(i=1;i<=NF;i++){line[i]=$i};next} {for(i=1;i<=NF;i++){printf i<NF?"%s%s%s":"%s%s%sn",line[i],$i,FS}}' test.log | column -t -s $'t'
1/8/2018 7:05:05 DISK OK - free space:Service Required Critical CRITICALCPU:loadaverage 6%
1/8/2018 7:10:25 Service Alert Critical memoryUsage
2/8/2018 1:05:20 DISK OK - free space:Service Alert Warning memoryUsage
2/8/2018 2:05:20 Service Alert Critical CRITICAl:outstanding alert attentionrequired
I tried the above code but its not working .I'm getting same data
– rajaviknesh
Nov 21 '18 at 13:18
Any updates on this issue
– rajaviknesh
Nov 23 '18 at 16:10
@Kvantour can I get any update on this
– rajaviknesh
Dec 5 '18 at 5:29
add a comment |
You can use awk
to pull this off:
awk -F"t" '!$1{for(i=1;i<=NF;i++){line[i]=$i};next} {for(i=1;i<=NF;i++){printf i<NF?"%s%s%s":"%s%s%sn",line[i],$i,FS}}' yourfile
If you need the output all aligned like you have it here (not tab delimited, but more like fixed width) you can pipe to column
awk -F"t" '!$1{for(i=1;i<=NF;i++){line[i]=$i}} $1{for(i=1;i<=NF;i++){printf i<NF?"%s%s%s":"%s%s%sn",line[i],$i,FS}}' test.log | column -t -s $'t'
Basically what this is doing is:
- Splitting each line by tab
-F"t"
- If the first column is empty, then collect each column for this line into an array by the column number as index and proceed to the next record
!$1{for(i=1;i<=NF;i++){line[i]=$i};next}
- If we are still processing the line (that first condition didn't trip) then go through each column
{for(i=1;i<=NF;i++)
- and print out what's stored in the array, the contents of the column of the current line, the Field Separator (tab), and a line feed if this is the last column
{printf i<NF?"%s%s%s":"%s%s%sn",line[i],$i,FS}}
Example of this in use:
$ cat test.log
DISK OK - free space: CRITICAL
1/8/2018 7:05:05 Service Required Critical CPU:loadaverage 6%
1/8/2018 7:10:25 Service Alert Critical memoryUsage
:critical alert
DISK OK - free space:
2/8/2018 1:05:20 Service Alert Warning memoryUsage
:1.0,2.0,5.0
CRITICAl:outstanding alert attention
2/8/2018 2:05:20 Service Alert Critical required
$ awk -F"t" '!$1{for(i=1;i<=NF;i++){line[i]=$i};next} {for(i=1;i<=NF;i++){printf i<NF?"%s%s%s":"%s%s%sn",line[i],$i,FS}}' test.log | column -t -s $'t'
1/8/2018 7:05:05 DISK OK - free space:Service Required Critical CRITICALCPU:loadaverage 6%
1/8/2018 7:10:25 Service Alert Critical memoryUsage
2/8/2018 1:05:20 DISK OK - free space:Service Alert Warning memoryUsage
2/8/2018 2:05:20 Service Alert Critical CRITICAl:outstanding alert attentionrequired
I tried the above code but its not working .I'm getting same data
– rajaviknesh
Nov 21 '18 at 13:18
Any updates on this issue
– rajaviknesh
Nov 23 '18 at 16:10
@Kvantour can I get any update on this
– rajaviknesh
Dec 5 '18 at 5:29
add a comment |
You can use awk
to pull this off:
awk -F"t" '!$1{for(i=1;i<=NF;i++){line[i]=$i};next} {for(i=1;i<=NF;i++){printf i<NF?"%s%s%s":"%s%s%sn",line[i],$i,FS}}' yourfile
If you need the output all aligned like you have it here (not tab delimited, but more like fixed width) you can pipe to column
awk -F"t" '!$1{for(i=1;i<=NF;i++){line[i]=$i}} $1{for(i=1;i<=NF;i++){printf i<NF?"%s%s%s":"%s%s%sn",line[i],$i,FS}}' test.log | column -t -s $'t'
Basically what this is doing is:
- Splitting each line by tab
-F"t"
- If the first column is empty, then collect each column for this line into an array by the column number as index and proceed to the next record
!$1{for(i=1;i<=NF;i++){line[i]=$i};next}
- If we are still processing the line (that first condition didn't trip) then go through each column
{for(i=1;i<=NF;i++)
- and print out what's stored in the array, the contents of the column of the current line, the Field Separator (tab), and a line feed if this is the last column
{printf i<NF?"%s%s%s":"%s%s%sn",line[i],$i,FS}}
Example of this in use:
$ cat test.log
DISK OK - free space: CRITICAL
1/8/2018 7:05:05 Service Required Critical CPU:loadaverage 6%
1/8/2018 7:10:25 Service Alert Critical memoryUsage
:critical alert
DISK OK - free space:
2/8/2018 1:05:20 Service Alert Warning memoryUsage
:1.0,2.0,5.0
CRITICAl:outstanding alert attention
2/8/2018 2:05:20 Service Alert Critical required
$ awk -F"t" '!$1{for(i=1;i<=NF;i++){line[i]=$i};next} {for(i=1;i<=NF;i++){printf i<NF?"%s%s%s":"%s%s%sn",line[i],$i,FS}}' test.log | column -t -s $'t'
1/8/2018 7:05:05 DISK OK - free space:Service Required Critical CRITICALCPU:loadaverage 6%
1/8/2018 7:10:25 Service Alert Critical memoryUsage
2/8/2018 1:05:20 DISK OK - free space:Service Alert Warning memoryUsage
2/8/2018 2:05:20 Service Alert Critical CRITICAl:outstanding alert attentionrequired
You can use awk
to pull this off:
awk -F"t" '!$1{for(i=1;i<=NF;i++){line[i]=$i};next} {for(i=1;i<=NF;i++){printf i<NF?"%s%s%s":"%s%s%sn",line[i],$i,FS}}' yourfile
If you need the output all aligned like you have it here (not tab delimited, but more like fixed width) you can pipe to column
awk -F"t" '!$1{for(i=1;i<=NF;i++){line[i]=$i}} $1{for(i=1;i<=NF;i++){printf i<NF?"%s%s%s":"%s%s%sn",line[i],$i,FS}}' test.log | column -t -s $'t'
Basically what this is doing is:
- Splitting each line by tab
-F"t"
- If the first column is empty, then collect each column for this line into an array by the column number as index and proceed to the next record
!$1{for(i=1;i<=NF;i++){line[i]=$i};next}
- If we are still processing the line (that first condition didn't trip) then go through each column
{for(i=1;i<=NF;i++)
- and print out what's stored in the array, the contents of the column of the current line, the Field Separator (tab), and a line feed if this is the last column
{printf i<NF?"%s%s%s":"%s%s%sn",line[i],$i,FS}}
Example of this in use:
$ cat test.log
DISK OK - free space: CRITICAL
1/8/2018 7:05:05 Service Required Critical CPU:loadaverage 6%
1/8/2018 7:10:25 Service Alert Critical memoryUsage
:critical alert
DISK OK - free space:
2/8/2018 1:05:20 Service Alert Warning memoryUsage
:1.0,2.0,5.0
CRITICAl:outstanding alert attention
2/8/2018 2:05:20 Service Alert Critical required
$ awk -F"t" '!$1{for(i=1;i<=NF;i++){line[i]=$i};next} {for(i=1;i<=NF;i++){printf i<NF?"%s%s%s":"%s%s%sn",line[i],$i,FS}}' test.log | column -t -s $'t'
1/8/2018 7:05:05 DISK OK - free space:Service Required Critical CRITICALCPU:loadaverage 6%
1/8/2018 7:10:25 Service Alert Critical memoryUsage
2/8/2018 1:05:20 DISK OK - free space:Service Alert Warning memoryUsage
2/8/2018 2:05:20 Service Alert Critical CRITICAl:outstanding alert attentionrequired
edited Nov 20 '18 at 20:32
answered Nov 20 '18 at 19:44
JNevillJNevill
32k31544
32k31544
I tried the above code but its not working .I'm getting same data
– rajaviknesh
Nov 21 '18 at 13:18
Any updates on this issue
– rajaviknesh
Nov 23 '18 at 16:10
@Kvantour can I get any update on this
– rajaviknesh
Dec 5 '18 at 5:29
add a comment |
I tried the above code but its not working .I'm getting same data
– rajaviknesh
Nov 21 '18 at 13:18
Any updates on this issue
– rajaviknesh
Nov 23 '18 at 16:10
@Kvantour can I get any update on this
– rajaviknesh
Dec 5 '18 at 5:29
I tried the above code but its not working .I'm getting same data
– rajaviknesh
Nov 21 '18 at 13:18
I tried the above code but its not working .I'm getting same data
– rajaviknesh
Nov 21 '18 at 13:18
Any updates on this issue
– rajaviknesh
Nov 23 '18 at 16:10
Any updates on this issue
– rajaviknesh
Nov 23 '18 at 16:10
@Kvantour can I get any update on this
– rajaviknesh
Dec 5 '18 at 5:29
@Kvantour can I get any update on this
– rajaviknesh
Dec 5 '18 at 5:29
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53398356%2fmerging-and-aligning-the-line-in-linux%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
Please do add your efforts in your post what you have to solve the problem?
– RavinderSingh13
Nov 20 '18 at 17:29
1
@kvantour now the question is corrected thanks for the finding
– rajaviknesh
Nov 20 '18 at 18:59
This has been asked several times. Have a look at the
column(1)
command here. You want to use the tab literal$'t'
as the column separator.– Elias Toivanen
Nov 20 '18 at 19:01
1
@EliasToivanen its a diffrent scenario
– rajaviknesh
Nov 20 '18 at 19:04
@Kvantour hope you got the scenario expecting the positive reply
– rajaviknesh
Nov 20 '18 at 19:43