Search Results

Search: Posts Made By: venkatajay_18
2,267
Posted By venkatajay_18
Hi Anurag, Thanks for your replies. ...
Hi Anurag,

Thanks for your replies.

Here is the list of commands that I ran:

delim=,
echo $delim
output is ,

sed 's/"\([^,]*\),\([^"]*\)"/"\1\2"/g" test.csv | awk '{FS=del; if(cnt &&...
2,267
Posted By venkatajay_18
Thanks Anuraj. But the posted command is not...
Thanks Anuraj.

But the posted command is not giving the desired result. It always ends up going to the if(a==1) and prints the "delim count is not same in all lines" even though the delimiter...
2,267
Posted By venkatajay_18
Hi Anuraj, The command does not solve the...
Hi Anuraj,

The command does not solve the purpose.



I need to pass delimeter as a variable and at the same time want to get the output 1 or 0 if the all the rows has the same delimeter...
2,267
Posted By venkatajay_18
Delimeters Count in a FlatFile
Hi,

I have the below script to check the count of delimeters for a file (here is File : test.csv Delimeter is ",")

awk '{gsub(/"[^"]*"/,x);print gsub(/,/,x)}' test.csv
And it return the output...
33,146
Posted By venkatajay_18
Record Length too long -- AWK Problem
Hi All,
I have a txt file which is an export of a query result from the database. The txt file contains 'Processid#sqlquery' from the database table.As the sqlquery is too long.... i am unable to...
20,187
Posted By venkatajay_18
Thanks Glenn. Is there anyway to modify the...
Thanks Glenn.
Is there anyway to modify the file itself without using the temporary file?
20,187
Posted By venkatajay_18
Replace a Directory path with another in a file
Hi,

I have abt 20-30 scripts using a directory structure. I have to replace a directory structure in a file for example "/i01/proc" with "/dwftp/scripts" using sed.

The command :-

cat...
Showing results 1 to 7 of 7

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