Re: Assistance with 'split -l' command

2020-08-13 Thread Mark Hansen

On 8/12/2020 8:24 AM, Andrey Repin wrote:

Greetings, Gary Vaughan!


I am working with csv files and when I perform the split -l, it splits the
file correctly, but is putting the 'aa','ab','ac' after the file extension.


Be very careful to use generic text tools on CSV files.
On any non-textual files, actually.




I agree with your comment regarding non-text files, but a CSV file is a textual 
file.

--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Assistance with 'split -l' command

2020-08-12 Thread Gary Vaughan via Cygwin
Thank you for the reply and information.


Gary Vaughan
Analyst
Calero-MDSL
o:+1 469-808-3047
www.calero.com<https://www.calero.com>
www.mdsl.com<https://www.mdsl.com>


CONFIDENTIALITY NOTICE: This e-mail transmission and any attachments to it is 
information belonging to the sender and is intended only for the use of the 
individual or entity named above and the privilege and the privileges are not 
waived by virtue of having been sent by e-mail. If you have received this 
transmission in error, please immediately notify the sender by return e-mail 
and delete the original transmission and its attachments without reading or 
saving in any manner.


From: Andrey Repin 
Sent: Wednesday, August 12, 2020 10:24 AM
To: Gary Vaughan ; cygwin@cygwin.com 
Subject: Re: Assistance with 'split -l' command

WARNING! EXTERNAL EMAIL: Please confirm its authenticity before acting on any 
requests it may contain.


Greetings, Gary Vaughan!

> I am working with csv files and when I perform the split -l, it splits the
> file correctly, but is putting the 'aa','ab','ac' after the file extension.

Be very careful to use generic text tools on CSV files.
On any non-textual files, actually.


--
With best regards,
Andrey Repin
Wednesday, August 12, 2020 18:22:46

Sorry for my terrible english...

--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Assistance with 'split -l' command

2020-08-12 Thread Andrey Repin
Greetings, Gary Vaughan!

> I am working with csv files and when I perform the split -l, it splits the
> file correctly, but is putting the 'aa','ab','ac' after the file extension.

Be very careful to use generic text tools on CSV files.
On any non-textual files, actually.


-- 
With best regards,
Andrey Repin
Wednesday, August 12, 2020 18:22:46

Sorry for my terrible english...

--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Assistance with 'split -l' command

2020-08-11 Thread René Berber via Cygwin

On 8/11/2020 6:57 PM, Gary Vaughan via Cygwin wrote:


I am working with csv files and when I perform the split -l, it
splits the fioe correctly, but is putting the 'aa','ab','ac' after
the file extension.  Would love to know how to get it after the file
name before the file extension. as an exampole, command split -l 5000
/desktop/ESM.csv /desktop/ESM.csv is resulting ESM/csvaa and would
like it to be ESMaa.csv


`man split` is your friend.

Try: split -l 5000 --additional-suffix=.csv /desktop/ESM.csv 
/desktop/ESM.csv ESM


(all in one line)

It means split ... with resulting prefix "ESM", and suffix ".csv").

The command you show has default prefix x, no sufix, then the result 
should have been xaa, xab, xac, etc.

--
R. Berber

--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Assistance with 'split -l' command

2020-08-11 Thread Gary Vaughan via Cygwin
I am working with csv files and when I perform the split -l, it splits the fioe 
correctly, but is putting the 'aa','ab','ac' after the file extension.  Would 
love to know how to get it after the file name before the file extension.
 as an exampole, command split -l 5000 /desktop/ESM.csv /desktop/ESM.csv
is resulting ESM/csvaa and would like it to be ESMaa.csv


Gary Vaughan
Analyst
Calero-MDSL
o:+1 469-808-3047
www.calero.com
www.mdsl.com


CONFIDENTIALITY NOTICE: This e-mail transmission and any attachments to it is 
information belonging to the sender and is intended only for the use of the 
individual or entity named above and the privilege and the privileges are not 
waived by virtue of having been sent by e-mail. If you have received this 
transmission in error, please immediately notify the sender by return e-mail 
and delete the original transmission and its attachments without reading or 
saving in any manner.
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple