Id like to delete a line from a file using (preferably a single line unix command) if it contains a certain string pattern.
If line contains "abcdef" then delete that line.
Help greatly appreciated. (7 Replies)
Hi Everyone,
I have:
$val="QQ3_1899_CD4".
The output will be:
1899.
I did $val =~ /(\d+)/g; the output is 318994, then i use substr to get those 1899. This is not efficient.
Is any simple way, like just one line can do? Thanks (1 Reply)
Can someone tell me how I can do this?
e.g:
Say file1.txt contains:
today is monday
the 22 of
NOVEMBER
2010
and file2.txt contains:
the
11th
month
of
How do i replace the word NOVEMBER with (5 Replies)
I have a list of strings in file:
10 10 AAA
120 13 BBBBB
23 11 CCCCC
11 32 DDDDDD
I want to replace first column of the text such as: 10, 129, 23, 11 with 11, 22, 33, 44.
I can do line by line, but just not sure how to replace partial string without... (1 Reply)
Hi,
I am facing issue while reading data from a file in UNIX. my requirement is to compare two files and for the text pattern matching in the 1st file, replace the contents in second file by the contents of first file from start to the end and write the contents to thrid file.
i am able to... (2 Replies)
Hi, I have a tab delimited text file like this one. I need to do a partial match of a particular cell and then replace matches with an empty cell. So here is a sample:
Smith FordMustang ChevroletCamaro
Miller FordFiesta
Jones KiaSorrento
Davis ChevroletCamaro
Johnson ToyotaHighlander
I... (4 Replies)
I have a file comp.pkglist which mention package version and release . In 'version change' and 'release change' line there are two versions 'old' and 'new' Version Change: --> Release Change: -->
cat comp.pkglist
Package list: nss-util-devel-3.28.4-1.el6_9.x86_64
Version Change: 3.28.4 -->... (1 Reply)
I have the below string which i need to compare with a file and replace this string in the file which matches closely. Can anyone help me on this.
string(Scenario 1)- user::r--,user::ourfrd:r--
String(Scenario 2)- user::r--
File
****
# file: /local/Desktop/myfile
# owner: me
# group:... (6 Replies)
Discussion started by: sarathy_a35
6 Replies
LEARN ABOUT DEBIAN
xsystem35
XSYSTEM35(6) xsystem35 User Manual XSYSTEM35(6)NAME
xsystem35 - program to play System 3.5 games
SYNOPSIS
xsystem35 [OPTIONS]
DESCRIPTION
This manual page documents briefly the xsystem35 command.
This manual page was written for the Debian distribution because the original program does not have a manual page.
xsystem35 is a program to run System 3.5 games. Known games are:
o Kichikuou Rance
o Ikenai Katsumi Sensei
o Rance IV for WIN
o Tshin Toshi 2 for WIN
o Kaerunyo Panyon
o Ikusamiko
o Ningengari (in Alice no Yakata 456)
o Type Zero (in Alice no Yakata 456)
o ATLACH=NACHA (in Alice no Yakata 456)
o DALK (in Alice no Yakata 456)
o Tshin Toshi (in Alice no Yakata 456)
o Dr. Stop! (in Alice no Yakata 456)
o Rance I (in Alice no Yakata 456)
o Rance II (in Alice no Yakata 456)
o Rance III (in Alice no Yakata 456)
o
o DiaboLiQuE
o AmbivalenZ for Win95
o Pastel Chime
o Prostudent GOOD
o Mamorigami-sama
o Mamatoto
o Hushaby Baby
o DARCROWS
o Persiom
o
o SeeIN Ao
o D.P.S.? (in 20 seiki Alice)
o (in 20 seiki Alice)
o Only You - Re cross
o Lv1.5
o Daiakuji (Not opening)
o (Not opening)
OPTIONS
The program start with the following options starting with one dash (`-'). A summary of options is included below.
-gamefile file
set game resouce file to 'file'
-no-shm
don't use MIT-SHM (use in another display)
-devcd device
set cdrom device name to 'device'
-devmidi device
set midi device name to 'device'
-devdsp device
set audio device name to 'device'
/dev/dsp : oss type (device name)
-O?
select output audio device
-Oo
OSS mode
-Os
ALSA mode
-Oe
Enlightened Sound Daemon mode
-O0
Disable Audio output
-M?
select output midi methods
-Me
External midi player
-Mr
Raw Midi device
-Ms?
Sequenceer device (?:devicenumber)
-M0
Disable MIDI output
-midiplayer cmd
set external midi player to 'cmd'
-devmix device
set mixer device name to 'device' (effective only for oss)
-devjoy device
set joystick device name to 'device'
if 'device' is set to 'none', don't use the device
-savekanji #
kanji code of filename (0 or 1 ... 0:euc, 1:sjis)
-antialias
always draw antialiased string (for !256 colors game)
-noantialias
never use antialiased string (for !256 colors game)
-fullscreen
start with fullscreen
-noimagecursor
disable image cursor
-version
Show version of program.
-h, --help
Show summary of options.
FILES
${HOME}/.xsys35rc
The per-user configuration file to control the behaviour of xsystem35.
AUTHOR
Ying-Chun Liu <paulliu@debian.org>
Wrote this manpage for the Debian system.
COPYRIGHT
Copyright (C) 2010 Ying-Chun Liu (PaulLiu)
This manual page was written for the Debian system (and may be used by others).
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or (at
your option) any later version published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2.
xsystem35 11/20/2011 XSYSTEM35(6)