Search Results

Search: Posts Made By: batcho
6,920
Posted By batcho
-bash-3.00$ awk 'NR%2{s=$0 ",";next}{print s $0}'...
-bash-3.00$ awk 'NR%2{s=$0 ",";next}{print s $0}' infile>outfile
awk: syntax error near line 1
awk: bailing out near line 1

no good

---------- Post updated at 08:05 AM ---------- Previous...
6,920
Posted By batcho
That's only giving me: ,2nd line ,4th line...
That's only giving me:

,2nd line
,4th line
,6th line
...

I need:

1st line,2nd line
3rd line,4th line
5th line,6th line


Thanks for the quick response
6,920
Posted By batcho
1st column,2nd column on first line 3rd,4th on second line ect...
I need to take one column of data and put it into the following format:

1st line,2nd line
3rd line,4th line
5th line,6th line
...

Thanks!
17,629
Posted By batcho
Looks great so far. I'm just going to verify the...
Looks great so far. I'm just going to verify the data against something else. Thanks for the quick reply!
17,629
Posted By batcho
Where do I specify the input and output filenames?
Where do I specify the input and output filenames?
17,629
Posted By batcho
List unique values and count instances in .csv file
I need to take the second column of a .csv file and count the number of instances of each unique value in that same second column. I'd like the output to be value,count sorted by most instances....
Showing results 1 to 6 of 6

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