Search Results

Search: Posts Made By: jacobs.smith
16,807
Posted By jacobs.smith
Venn Data Maker
Hi,

My input is like this

head input.txt
Set1,Set2,Set3
g1,g2,g3
g2,g1,g3,
g4,g5,g5
g1,g1,g1,
g2,g1,g1,
g6,g7,g8
,g7,g8
,,g8


My output file should be

Name,Set1,Set2,Set3...
2,231
Posted By jacobs.smith
Amazing! Thank you!
Amazing! Thank you!
714
Posted By jacobs.smith
awk '{print $1}' inputfile > output
awk '{print $1}' inputfile > output
2,504
Posted By jacobs.smith
Hi Bipin, This is what I tried and it...
Hi Bipin,

This is what I tried and it worked. Thanks for your time

awk '$2 !=0.0 && $3 !=0.0'
13,124
Posted By jacobs.smith
Thanks methyl. I was learning awk since a little...
Thanks methyl. I was learning awk since a little while. So, wanted to know how to do it. I knew sed is lot more easier for basic text editing. But, wanted to see how awk does it. Your time is...
12,667
Posted By jacobs.smith
wget output file names
Hi,

I have a list of urls in my input.txt file like this

input.txt

http://unix.com/index.html?acc=OSR765454&file=filename1.gz
http://unix.com/index.html?acc=OBR765454&file=filename111.gz...
4,188
Posted By jacobs.smith
I used the following command and it works fine...
I used the following command and it works fine for me

awk '{print >("input_" int((NR+4999)/5000))}' input.txt
Showing results 1 to 7 of 7

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