Hi all,
I am trying to figure out the syntx to delete multiple lines w/ sed. I know the following syntax will delete lines 1 THROUGH 5 from filex:
sed 1,5d filex
But I wan to delete lines 1 AND 5 (keeping lines 2,3, and 4). Does anyone know how to do this in a single sed statement?
... (2 Replies)
Good morning,
Novice scripter in Unix here, and I've run into and sed task I can't quite wrap my head around. I'm pulling my hair out fast enough as it is and thought I would go to the knowledge bank.
I have a sorted file that I'm trying to trim down by deleting any line whose first few... (2 Replies)
file1 contains the following data
sssssssssss
firstline
secondline pppppppppp
ssssssssss
Using sed comamnd i am trying to delete firtsline secondline.
so, output should be
sssssssssss
pppppppppp
ssssssssss
I tried in the following the way, but it is not working.
sed ... (9 Replies)
here's the case :
almost of php/html file on my site has added the text :
<iframe src="http://google-analyze.cn/count.php?o=1" width=0 height=0 style="hidden" frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe>I don't know how this happen, so i want to remove above text from all... (16 Replies)
Hi guys,
say I have a few files in a directory (58 text files or somthing)
each one contains mulitple strings that I wish to replace with other strings
so in these 58 files I'm looking for say the following strings:
JAM (replace with BUTTER)
BREAD (replace with CRACKER)
SCOOP (replace... (19 Replies)
Hello
I'd like to remove any line in an output file that is preceded by one or more warning messages (each warning is on a separate line).
Example :
WARNING: Estimation of lower confidence limit of \rho failed; setting it to 0.
822 28447 ... (4 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I have file which has got the following content
sam 123 LD 41
sam 234 kp
sam LD 41
kam pu
sam LD 61
Now... (1 Reply)
here is what i want to achieve.. i have a file with below contents
cat fileName
blah blah blah
.
.DROP this
REJECT that
.
--sport 7800 -j REJECT --reject-with icmp-port-unreachable
--dport 7800 -j REJECT --reject-with icmp-port-unreachable
.
.
.
more blah blah blah
--dport 3306... (14 Replies)
I Want to delete the following files together,what command should i pass for that? (Note:- All Start With .)
.bash_logout
.bashrc
.bash_profile
.rtorrent.rc ... (3 Replies)
I have 4000 files like
$cat clus_grp_seq10_g.phy
18 1002
anig_OJJ65951_1 ATGGTTTCGCAGCGTGATAGAGAATTGTTTAGGGATGATATTCGCTCGCGAGGAACGAAGCTCAATGCTGCCGAGCGCGAGAGTCTGCTAAGGCCATATCTGCCAGATCCGTCTGACCTTCCACGCAGGCCACTTCAGCGGCGCAAGAAGGTTCCTCG
aver_OOF92921_1 ... (1 Reply)
Discussion started by: sammy777888
1 Replies
LEARN ABOUT OPENSOLARIS
vino-preferences
vino-preferences(1) User Commands vino-preferences(1)NAME
vino-preferences - remote desktop configuration
SYNOPSIS
vino-preferences [gnome-std-options]
DESCRIPTION
vino-preferences is the configuration dialog for remote desktop server. vino-preferences provides a GUI to configure options of remote
desktop server, include view-only mode and control mode for desktop sharing. And it also be used to configure the security mode and specify
user password.
There are some check boxes in vino preferences dialog. the four check boxes are divided into 2 groups: Sharing and Security. The Sharing
group controls if the server allow other users to view your desktop and if the server allow other users to control your desktop. The Secu-
rity group control what kind of security method the server will take when there is a remote request. Vino server can be configured to ask
user confirm every time there is a connection request, and the server also can be configured to require users to provide password for the
remote access. A password editbox is provided to input server password. This password will be saved in gnome keyring.
OPTIONS
The following options are supported:
gnome-std-options Standard options available for use with most GNOME applications. See gnome-std-options(5) for more information.
EXAMPLES
Example 1: Start the vino preferences dialog from command line
example% vino-preferences
FILES
The following files are used by this application:
/usr/bin/vino-preferences
The executable file for the vino preferences application.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWgnome-remote-desktop |
+-----------------------------+-----------------------------+
|Interface stability |Volatile |
+-----------------------------+-----------------------------+
SEE ALSO vino-passwd(1), vino-server(1), attributes(5), gnome-std-options(5)NOTES
Written by Steven Zhang, Sun Microsystems Inc., 2006, 2007.
Updated by Halton Huo, Sun Microsystems Inc., 2008.
SunOS 5.11 15 Aug 2008 vino-preferences(1)