Search Results

Search: Posts Made By: pxy2d1
1,633
Posted By pxy2d1
Works perfectly. Thanks all.
Works perfectly.

Thanks all.
1,633
Posted By pxy2d1
Combine csv's
All,

I would like to combine two csv's.

File1

text,text,value1
text,text,value1
text,text,value1


file2

text,text,value2
text,text,value2
text,text,value2


Note: Text...
3,191
Posted By pxy2d1
Franklin, Perfect, exactly what I wanted. ...
Franklin,

Perfect, exactly what I wanted.

Thanks for your help.
3,191
Posted By pxy2d1
A diff only gives me lines where a difference...
A diff only gives me lines where a difference occurs.

I would like to also identify the field(s) in the line which are different
3,191
Posted By pxy2d1
Detect differences in two files
All,

I have two csv files, the format of which are exactly the same.

I would like to find differences between the two files but would like to identify the difference as opposed to just...
2,794
Posted By pxy2d1
Fixing this data at source is not currently an...
Fixing this data at source is not currently an option although I agree it would make more sense, I currently have to work with the data I am sent.

A typical example of the data would be

...
2,794
Posted By pxy2d1
Checking file for duplicates
Hi all,

I am due to start receiving a weekly csv containing around 6 million rows. I need to do some processing on this file and then send it on elsewhere.

My problem is that after week 1...
81,823
Posted By pxy2d1
You can use: uuencode <source_file>...
You can use:

uuencode <source_file> <encoded filename> |mailx <mail_address>
Forum: Solaris 02-03-2010
7,430
Posted By pxy2d1
Disable ftp
HI all,

I am using Solaris 10 and would like to know if it possible to disable ftp use for a single entry in my /etc/hosts file.

Thanks
14,146
Posted By pxy2d1
Auto enable/disable cron job
Hi all,

Does anyone know if it is possible to enable/disable a cron job within a script?

I currently have a cron job which runs every minute but now it seems that sometimes I would like to...
8,703
Posted By pxy2d1
I have used the following in the past on Solaris...
I have used the following in the past on Solaris to create a message body and add an attachment


(echo "BODY";uuencode filename output_filename)|mailx -s "SUBJECT" someone@mail.com
14,487
Posted By pxy2d1
Thanks ppl. Went for the simple approach in...
Thanks ppl.

Went for the simple approach in the end and used Cabraos method of just creating new files without the offending fields.
14,487
Posted By pxy2d1
Diff with ignoring certain fields
Hi all,

I would lke to compare two pipe delimited files but I already expect one field to be different and would like to disregard this field. So for the example below I would like to disregard...
26,527
Posted By pxy2d1
In your original code the problem is that you...
In your original code the problem is that you need a space between the first square bracket and variable name. Also the = is to assign not compare. Try

if [ $SIZE -eq $ZERO ]
7,963
Posted By pxy2d1
You could try using the length function ...
You could try using the length function


if (length(f10) == 0){
print "Field 10 is Correct";}
else{
print "Field 10 is Wrong";}
13,579
Posted By pxy2d1
Thanks alot, worked great
Thanks alot, worked great
13,579
Posted By pxy2d1
splitting a zip file
Hi all,

I have a zip file of around 20GB that I am transferring via ftp.

One transfer of the file has already failed after around 15GB had been sent and I have now started the transfer again....
4,463
Posted By pxy2d1
Thanks radoulov. Perfect.
Thanks radoulov. Perfect.
4,463
Posted By pxy2d1
reverse sort file
Hi all

I am trying to numerically reverse sort a file but I seem to be having trouble.

Example of file contents:

text1,1
text2,-1
text3,0

I can sort using sort -k 2n -t, filename...
2,904
Posted By pxy2d1
check for new file over 24 hrs
Hi all,
I am trying to figure out a method to flag an error if a file has not arrived in a certain directory within 24 hrs of the last one arriving.
I am currently writing the time to a file when a...
62,713
Posted By pxy2d1
Thank you I Did look at the man page but it...
Thank you
I Did look at the man page but it didn't register why I was getting a one.
62,713
Posted By pxy2d1
The code i have posted contains an x as the...
The code i have posted contains an x as the substitution character. Ignore this as it is a typing error. My code uses "" as substitution character
62,713
Posted By pxy2d1
awk gsub
Hi all
I want to do a simple substitution in awk but I am getting unexpected output. My function accepts a time and then prints out a validation message if the time is valid. However some times may...
3,156
Posted By pxy2d1
thanks ppl
thanks ppl
3,156
Posted By pxy2d1
awk processing
Hi all
Is there a way in awk to know that you are processing your final line of input if you do no know how many lines were in the input to begin with?

Thanks
Showing results 1 to 25 of 34

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