Search Results

Search: Posts Made By: ajahuja
Forum: Fedora 09-20-2013
6,136
Posted By ajahuja
If your question is to know the list of distros,...
If your question is to know the list of distros, I say count goes on increasing. But the Best way to differentiate is by package management.


Debian based. packages are installed using .deb...
1,605
Posted By ajahuja
Need help with using a script variable in awk
Hi All,

Please help me with a issue in below code

head -1 sample.txt > header.txt
field_count=`head -1 sample.txt | tr -dc '\t' | wc -c`
field_count=`expr $field_count + 1`
i=1
while [ $i...
19,437
Posted By ajahuja
Issue Resolved :D first added "" at the end...
Issue Resolved :D

first added "" at the end of each line in the file using

/usr/xpg4/bin/sed 's/$/""/g' $file >file2

this basically avoids all too long records. As every line now has...
19,437
Posted By ajahuja
oops an issue again !! /usr/xpg4/bin/awk...
oops an issue again !!


/usr/xpg4/bin/awk '(NR-1)%2{$1=$1}1' RS=\" ORS=\" STD_H.txt > STD_TRUE.txt

/usr/xpg4/bin/awk: line 0 (NR=1561): Record too long (LIMIT: 19999 bytes)
19,437
Posted By ajahuja
It worked !! Attached are the Screenshots! ...
It worked !!
Attached are the Screenshots!
onlt thing is ther is an extra line in the output with a " in it

please can you explain it. I didn't understand the code. :confused:
19,437
Posted By ajahuja
It worked fine. It would be a great help if you...
It worked fine. It would be a great help if you can explain it a bit
19,437
Posted By ajahuja
Replace newline character between a double quotes to a space
Hi Guys,

I have a file with content as below

aj.txt

"Iam
allfine" abcdef
abcd "all is
not well"

What I'm trying to say is my data has some new line characters in between quoted text....
Showing results 1 to 7 of 7

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