Search Results

Search: Posts Made By: scripter12
2,761
Posted By scripter12
awk -F, '$6!="\"\"" ' infile Hi, A little...
awk -F, '$6!="\"\"" ' infile
Hi,

A little explanation will be of great help

Thanks
3,537
Posted By scripter12
I think using a comma between the email addresses...
I think using a comma between the email addresses will do the work.
2,138
Posted By scripter12
Thanks Pravin. But can you check the second...
Thanks Pravin.
But can you check the second row, last column.
The code will delete that also
$ cat x.csv
baseball,NULL,8798765,Most played,0,5,12367,NULL,NULL,98,67,Reason is not sufficient...
2,138
Posted By scripter12
csv manipulation
Hi,

I want to delete the null values that are present in all the columns except the last column
$ cat x.csv
baseball,NULL,8798765,Most played,0,5,12367,NULL,NULL,98,67,Reason is not sufficient...
1,242
Posted By scripter12
csv's in many tab
Hi,

I am generating 20 csv's and I am sending it to the client in one mail.

But it is awkward to open 20 csv's one by one.

Can somebody tell me how to generate the data in one csv's but...
1,162
Posted By scripter12
Ohh I resolved the issue of the space ...i...
Ohh I resolved the issue of the space ...i replace the \t with " " and it worked...
1,162
Posted By scripter12
Thanks very much. Why was it not working in...
Thanks very much.

Why was it not working in my code ?
Can you please explain the code that you have written

Thanks

---------- Post updated at 01:28 AM ---------- Previous update was at...
1,162
Posted By scripter12
Last column is getting deleted
Hi,
I am having a problem in the below code:-.

$ cat x.csv
baseball,NULL,8798765,Most played,0,5,12367,NULL,NULL,98,67,Reason is not sufficient
baseball,NULL,8928192,Most...
3,710
Posted By scripter12
Thanks Franklin
Thanks Franklin
3,710
Posted By scripter12
Leading white spaces
Hi,

I am having problem in deleting the leading spaces:-

cat x.csv
baseball,NULL,8798765,Most played
baseball,NULL,8928192,Most played
baseball,NULL,5678945,Most played...
4,442
Posted By scripter12
Yes it is cygwin bash shell...that i executed...
Yes it is cygwin bash shell...that i executed the script
4,442
Posted By scripter12
yes Cgwin
yes Cgwin
4,442
Posted By scripter12
I am not sure if you are asking for this :- $...
I am not sure if you are asking for this :-
$ cat f1.sh
#!/bin/sh
Rundate=`date +%Y-%m-%d`
echo $Rundate
Filecrtdate=`date +%Y-%m-%d`
echo $Filecrtdate

if [ $Filecrtdate == $Rundate ]
then...
5,772
Posted By scripter12
grep -i "search_string" log_filename status=$? ...
grep -i "search_string" log_filename
status=$?
if [ $status -eq 0 ]
then
echo "grep successful"
else
echo "unsucessful"
fi
1,776
Posted By scripter12
problem in dollar substitution
Hi,

I have a problem in dollar substitution:-
$ csv1="first_csv"
$ csvnumber=1
$ echo {csv$csvnumber}
{csv1}
$ echo "${csv$csvnumber}"
bad substitution

I want first_csv...why is it not...
2,545
Posted By scripter12
Thanks for the explanation Franklin.It was really...
Thanks for the explanation Franklin.It was really of great help

From the last two days, I am seeing you guys are solving the issues like any thing else. I am overwhelmed by the quick and thorough...
2,545
Posted By scripter12
It worked... Thanks very much.. Can you...
It worked...
Thanks very much..
Can you please explain it, so that it can be useful to me...
and also I can make some modification if it is necessary...
2,545
Posted By scripter12
Hi, It is giving the below error:- awk ...
Hi,
It is giving the below error:-
awk 'BEGIN{FS=OFS=","}!a[$1] {print;a[$1]++;next}{print "\t"$2,$3,$4}' input.csv

awk: syntax error near line 1
awk: bailing out near line 1
2,545
Posted By scripter12
awk not generating the expected output
Hi,

I am presently stuck in a csv file.

INPUT CSV

baseball,NULL,8798765,Most played
baseball,NULL,8928192,Most played
baseball,NULL,5678945,Most played...
2,715
Posted By scripter12
It is a sybase stored procedure... Some...
It is a sybase stored procedure...

Some lines of the stored procedure are:-

select
"Counter Number" ,",",
"Counterparty1" ,",",
.........
........
from table
...
2,715
Posted By scripter12
Hi, I don't want to hard code the things. ...
Hi,
I don't want to hard code the things.

I am able to generate a csv file where the data is coming in all the columns properly from the procedure.I am running the procedure in the shell...
2,715
Posted By scripter12
Atleast please tell me for the above three...
Atleast please tell me for the above three columns that I have posted, so that i can get some insight and idea....

Another thing that i can do is, I can delete the spaces between any header names...
2,715
Posted By scripter12
@Franklin & Tyler, Thanks for the reply. ...
@Franklin & Tyler,

Thanks for the reply.
Still it is hard coding in the script giving the header names directly. If that the case then my lines were working fine.

But i want a generic...
2,715
Posted By scripter12
awk and sed problem
Hi,
I am able to generate a csv file which has 3 columns. But the header is not coming out exactly i.e it doesnot have a comma in between it but the data is getting produced with the comma.
The...
Showing results 1 to 24 of 24

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