Vis enkelt innlegg
Gammel 31-05-18, 07:39   #4
HP
Administrator
 
HP sin avatar
 
Medlem siden: Sep 2006
Hvor: Bergen
Innlegg: 13.952
Blogginnlegg: 6
HP har en fantastisk fremtidHP har en fantastisk fremtidHP har en fantastisk fremtidHP har en fantastisk fremtidHP har en fantastisk fremtidHP har en fantastisk fremtidHP har en fantastisk fremtidHP har en fantastisk fremtidHP har en fantastisk fremtidHP har en fantastisk fremtidHP har en fantastisk fremtid
Standard

Sv: Linux/Mac: Endring av stor tekstfil med awk, sed eller grep

Opprinnelig lagt inn av Einar, her.

har du litt mer fullverdige testdata, kan jeg skrible..

Her er en, linjen over er ikke lik for alle jeg vil fjerne.

Kode:
--
-- Table structure for table `post`
--

DROP TABLE IF EXISTS `post`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `post` (
  `postid` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `threadid` int(10) unsigned NOT NULL DEFAULT '0',
  `parentid` int(10) unsigned NOT NULL DEFAULT '0',
  `username` varchar(100) NOT NULL DEFAULT '',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `title` varchar(250) NOT NULL DEFAULT '',
  `dateline` int(10) unsigned NOT NULL DEFAULT '0',
  `pagetext` mediumtext,
  `allowsmilie` smallint(6) NOT NULL DEFAULT '0',
  `showsignature` smallint(6) NOT NULL DEFAULT '0',
  `ipaddress` varchar(15) NOT NULL DEFAULT '',
  `iconid` smallint(5) unsigned NOT NULL DEFAULT '0',
  `visible` smallint(6) NOT NULL DEFAULT '0',
  `attach` smallint(5) unsigned NOT NULL DEFAULT '0',
  `infraction` smallint(5) unsigned NOT NULL DEFAULT '0',
  `reportthreadid` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`postid`),
  KEY `userid` (`userid`),
  KEY `threadid` (`threadid`,`userid`),
  FULLTEXT KEY `title` (`title`,`pagetext`)
) ENGINE=MyISAM AUTO_INCREMENT=4699964 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `post`
--

HP er ikke aktiv   Svar med sitat