Search Results

Search: Posts Made By: onthetopo
167,832
Posted By onthetopo
I think NR isn't the right thing to use, suppose...
I think NR isn't the right thing to use, suppose for some lines, field 3 is empty, I think somehow you need an emptiness check and average =s/(NR-numemptylines)
2,751
Posted By onthetopo
How to add a space after an Upper case letter
Hi I have two questions.
1. how to convert "EverythingIsFine" to "Everything Is Fine" in a txt file.
2. how to convert everything to upper case letter and reverse, I hope there is a general purpose...
6,546
Posted By onthetopo
calculate average of column 2
Hi I have fakebook.csv as following:

F1(current date) F2(popularity) F3(name of book) F4(release date of book)
2006-06-21,6860,"Harry Potter",2006-12-31
2006-06-22,,"Harry Potter",2006-12-31...
5,874
Posted By onthetopo
Thank you , but how to import date from column...
Thank you , but how to import date from column one of a csv file and then output it. I'm rusty in file manipulations.
5,874
Posted By onthetopo
script to convert absolute date
Hi ,
I have a csv file and column 1 is date in the cursed YYYY-[M]M-[D]D format. Is there any way to convert 1st column to an absolute date say using 1977-1-1 as day 1?
Thanks a lot.
2,737
Posted By onthetopo
thanks a lot, so there is no other way? In my...
thanks a lot, so there is no other way? In my school it takes $1000 to get a IP address from the bureaucracy of tech service. I don't want to contact tech service if there is a work around.
2,737
Posted By onthetopo
How to handle my own mail
I installed sendmail and pine and I could send emails to other people succesffly. However no matter what I try I cannot receive other people's email. The only messages sitting in my pine inbox are...
1,865
Posted By onthetopo
booting from which harddrive
Hi, both of my /dev/hda and my /dev/hdb contain /boot partition. I'm wondering how to tell which harddrive's /boot is actually being read? Thanks
23,050
Posted By onthetopo
thanks that's a good way to start if you are...
thanks that's a good way to start if you are installing a brand new system.
But i can't afford a system reinstalltion of my primary hd.

If my primary didn't have LVM partition I would just...
4,852
Posted By onthetopo
Is there a tutorial on how to create RAID 1 on top of lvm?
Hi, there are tons of RAID1 tutorials, but none of them deal with lvm. The problem is that I want to expand my current lvm partition over RAID1 rather than creating a new lvm partition after RAID1 is...
10,548
Posted By onthetopo
thx for reminder
thx for reminder
10,548
Posted By onthetopo
How to mount lvm
Hi, I'm stuck in an awkward situation please help

I have two identical Seagate 80GB harddrives.
My objective is a bit strange.
1.I want to have a cloned disk as bootable backup
2.When booting...
23,050
Posted By onthetopo
how to mirror a disk? You mean like setup a...
how to mirror a disk? You mean like setup a software RAID-1. That sounds ok. I hope it's not too complicated to do so. Please tell me instructions.
I think specifically I would need to create RAID-1...
23,050
Posted By onthetopo
How to mount duplicated LVM harddrives resulted from cloning
Hi, I'm stuck in an awkward situation please help :)

I have two identical Seagate 80GB harddrives.
My objective is a bit strange.
1.I want to have a cloned disk as bootable backup
2.When...
2,343
Posted By onthetopo
Thanks a lot ghostdog74. It works! But it's...
Thanks a lot ghostdog74. It works!
But it's really slow for large data files.
Join is surprisingly much faster in managing large files, only join couldn't work in this case.
1,590
Posted By onthetopo
what is 2> and 1> and <<?
Too bad google didn't support symbol serach.
I wished to find explanations on them on google.
32,058
Posted By onthetopo
Compare two variables
Hi guys, How do I compare two variables using diff?
The way I'm thinking:

#!/bin/sh
a=cat asdf.x | wc -l
b=cat asdf.y |cut -d',' -f5 |grep -v '^$' |wc -l
diff $a $b

How to...
2,343
Posted By onthetopo
It didn't work! The join command requires two...
It didn't work!
The join command requires two files to be sorted according the index field.
What I have as index field is a date
07/08/1998
Join can't figure it out on its own., all it sees is 07...
2,675
Posted By onthetopo
How to change field seperator
Hi Please help me out with this problem:

I want to have a script that would change the nth field seperator in a line into something else.


like
a,d,4,2,97,8,9
into
a,d,4,2,97/8/9

Thanks
3,889
Posted By onthetopo
What if in filetwo there are multiple entries for...
What if in filetwo there are multiple entries for 1999? How do I detect that?
3,889
Posted By onthetopo
Thanks a lot guys suppose I want to have a .csv...
Thanks a lot guys
suppose I want to have a .csv extention, I tried
awk -F"," '{print $1.csv }' databasefile.name didn't work
3,889
Posted By onthetopo
thanks a lot, but why does it work? print > $1?...
thanks a lot, but why does it work?
print > $1? print into field 1?
suppose I want to have a .csv extention, I tried
awk -F"," '{print $1.csv }' databasefile.name didn't work
3,889
Posted By onthetopo
Help please!Split files according to index
Suppose I have a csv file like this:
27, california , A3
27, vermont, B6
27, ontario, B7
34, kansas, C9
34, washington, A2

How do I split this file into two files according to field1.
file1:...
2,343
Posted By onthetopo
Combine a datafile with Master datafile, emergent!
Hi guys, my supervisor has asked me to solve the problem in 7 days, I've taken 3 days to think about it but couldn't figure out any idea.
Please give me some thoughts with the following problem,
...
Showing results 1 to 24 of 24

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