Search Results

Search: Posts Made By: brianjb
2,376
Posted By brianjb
Add this to the end: awk...
Add this to the end:


awk '{print$1","$2","$3","$4","$5","$6","$7","$8","$9","$10","$11","$12","$13","$14","$15","$16","$17","$18$","$19","$20","$21","$22","$23","$24","$25","$26}'


Notice...
857
Posted By brianjb
sed -e 's/\"//g' filename > newfile or...
sed -e 's/\"//g' filename > newfile


or for inline editing:

sed -i -e 's/\"//g' filename
2,376
Posted By brianjb
mysql -u username -ppassword instancename -e...
mysql -u username -ppassword instancename -e "select id,name from table;" |awk '{print$1","$2}'


The above will export those two columns from that table and then put a comma between each one. ...
1,985
Posted By brianjb
Put this at top of script: ...
Put this at top of script:


#!/usr/bin/perl
use warnings;


Then run it with -d, like this:


./test.pl -d
1,377
Posted By brianjb
How about: sed 's:\<br\>\<\/br\>::g'...
How about:

sed 's:\<br\>\<\/br\>::g' input.file > output.file


Or you can try:

sed -i -e 's:\<br\>\<\/br\>::g' input.file
Showing results 1 to 5 of 5

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