Search Results

Search: Posts Made By: Krispy
2,663
Posted By Krispy
Nice one anbu - much appreciated mate. :)
Nice one anbu - much appreciated mate. :)
2,663
Posted By Krispy
Remove lines with n columns
Hi folks - hope you are all well.

I am trying to perform some pre-processing on a data file, to make sure it is in a valid format before performing a data upload.

Each row of data in the file...
1,558
Posted By Krispy
You can use sed or perl.... sed 's/\"//g'...
You can use sed or perl....

sed 's/\"//g' test.csv > newtest.csv

perl -i -pe 's/\"//g' test.csv
I prefer using the perl command as it does not have the added overhead of creating a new file.
30,377
Posted By Krispy
Hi reborg, Yeah, a similar question was...
Hi reborg,

Yeah, a similar question was asked a couple of days ago, but that was asking for a way to delete all items from a mailbox. I was wondering if there was a quick and simple way of...
30,377
Posted By Krispy
How to mark ALL mail items as read?
Hi guys.

Does anyone know if there is a mail command that will allow you to flag all mail items as being read? I've checked out the man mail pages, but can't seem to find what I'm looking for. ...
139,862
Posted By Krispy
Thanks for the swift response guys - much...
Thanks for the swift response guys - much appreciated.

Thestevew was right - I was misunderstanding the vi 'set list' option, so thanks for putting me straight.

I eventually came up with a...
139,862
Posted By Krispy
Trying to remove '^M' characters from a file.
Hi guys,

Hope you are all well.

This is a line of data from a csv file. I have used vi and set the 'set list' option to display the trailing $ character.

"01","Grocery","01006","eat Fish &...
1,803
Posted By Krispy
Thanks linuxpenguin. Maybe I am being a bit...
Thanks linuxpenguin.

Maybe I am being a bit picky. :D
1,803
Posted By Krispy
Regular Expression Question
Hi - I am trying to ignore the following items from a list.

lp0
lp11
lp12
lp14

The following code works fine, but I was wondering if there was a tidier way to write the lp[0 |11|12|14]...
Showing results 1 to 9 of 9

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