Search Results

Search: Posts Made By: Booo
1,112
Posted By Booo
Thanks for your help and It worked fine.
Thanks for your help and It worked fine.
1,112
Posted By Booo
I have already tried that option but I need to...
I have already tried that option but I need to add "call sp_rebuildindex('<tablename>','column" each line. The table name should be copied from the previous line if the call doesn't exist on that...
1,112
Posted By Booo
Spliting a line after 255 characters.
Hi Guys,
I have a file which contains multiple lines. I need to split each line 255 characters and then I need to add call statement in the front and semi colon at the end.

I/P:
call...
2,612
Posted By Booo
Thank Don and Ron for your help. Solution you...
Thank Don and Ron for your help. Solution you suggested worked fine without any issues.
2,612
Posted By Booo
I used sed 's/ / 0/g' filename ...
I used sed 's/ / 0/g' filename
Please use CODE tags (as required by forum rules. Without CODE tags, multiple adjacent spaces and tabs are displayed as a single space.
2,612
Posted By Booo
Never mind and I figure it out easily by using...
Never mind and I figure it out easily by using sed replace command.
2,612
Posted By Booo
Thanks Don. I tried to change the OFS value but...
Thanks Don. I tried to change the OFS value but it didn't work. I am not sure how to fix this one.
2,612
Posted By Booo
Can we replace the empty spaces in the column to...
Can we replace the empty spaces in the column to zero. If its empty while sending as an excel format the empty column is copied by adjacent column data.
2,612
Posted By Booo
Thanks and It worked fine as long as the rows and...
Thanks and It worked fine as long as the rows and columns are same.

if the seventh line contains "2017/02/01 d 70" then it fails.
2,612
Posted By Booo
I am using Linux and I don't know how to...
I am using Linux and I don't know how to accomplish this one.
2,612
Posted By Booo
Pivoting values from column to rows
I/P:
I/P:

2017/01/01 a 10
2017/01/01 b 20
2017/01/01 c 40
2017/02/01 a 10
2017/02/01 b 20
2017/02/01 c 30

O/P:
a b c
2017/01/01 10 20 40
2017/02/01...
1,543
Posted By Booo
I am getting blank line after each line. How to...
I am getting blank line after each line. How to get rid of that one?

---------- Post updated at 05:22 PM ---------- Previous update was at 04:58 PM ----------

It worked fine after removing the...
1,543
Posted By Booo
$ cat test 2017/01/01 a 10 2017/01/01 b 20 ...
$ cat test
2017/01/01 a 10
2017/01/01 b 20
2017/01/01 c 40
2017/01/01 a 60
2017/01/01 b 50
2017/01/01 c 40
$echo | mailx -s "Test Email" -a test xyz@xyz.com


SERIOUSLY: Please use CODE...
1,820
Posted By Booo
Thanks Don. It's a typo, I have tried without $4...
Thanks Don. It's a typo, I have tried without $4 and it worked as expected.
1,543
Posted By Booo
Sending Email in Excel Format
Hello,
I am trying to send an email with the below attachment in .xls file format by default its opening everything in a single column in the email. How to display the column in a separate column...
1,820
Posted By Booo
It worked for me. awk '{a[$1"...
It worked for me.

awk '{a[$1" "$2]+=$3+$4}END{for (i in a){print i,a[i]}}' filename
1,820
Posted By Booo
Sum the values in the column using date column
I have a file which need to be summed up using date column.

I/P:

2017/01/01 a 10
2017/01/01 b 20
2017/01/01 c 40
2017/01/01 a 60
2017/01/01 b 50
2017/01/01 c 40
2017/01/01 a 20...
Showing results 1 to 17 of 17

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