cat file.txt | awk -F':' '{print 'INSERT INTO table SET field1=$1, field2=$2\n;'}'
LOAD DATA LOCAL INFILE 'abc.csv' INTO TABLE abc
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\r\n'
IGNORE 1 LINES
(col1, col2, col3, col4, col5...);
<script src="bundled.js"></script>
<script>
const browser = bowser.getParser(window.navigator.userAgent);
alert(browser.getBrowserName()); // в моём случае выдаёт Firefox
</script>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
function isWord () {
var word = $('#word').val();
$.ajax({
type: "POST",
url: "/dispatcher.php",
dataType: "json",
data: { word: word },
success: function ( res ) {
console.log( res )
},
error: function ( res ) {
console.log( res )
},
async: true
});
}
</script>
</head>
<body>
<input type='text' id='word'><input type='submit' onClick='isWord()'>
</body>
</html>