Hi There!
My final task for today is to delete lines starting with certain numbers
for e.g., my text block is
and i want to delete all lines starting with 11 or 17 or 21
I know i can use multiple sed commands like
sed '/^11,/d' <filename>
sed '/^17,/d' <filename>
sed '/^21,/d'... (2 Replies)
Hi,
I have a file such as:
---
>contig00001 length=35524 numreads=2944
gACGCCGCGCGCCGCGGCCAGGGCTGGCCCA
CAGGCCGCGCGGCGTCGGCTGGCTGAG
>contig00002 length=4242 numreads=43423
ATGCCGAAGGTCCGCCTGGGGCTGG
CGCCGGGAGCATGTAGCG
---
I would like to concatenate the lines not starting with ">"... (9 Replies)
Hi All,
I have a .txt file with some contents as below:
Hi How are you?
# Fine and you?
I want a script file which reads the .txt file and output the lines which does not start with #.
Hi How are you?
Help is highly appreciated.
Please use code tags when posting data and... (5 Replies)
Hello All,
i am a newbie and need some help when reading a csv file in a bourne shell script. I want to read 10 lines, then wait for a minute and then do a reading of another 10 lines and so on in the same way. I want to do this till the end of file.
Any inputs are appreciated
... (3 Replies)
Hi all,
I'm new in unix. Need some help here.
I have a file called server.cfg which contains the servers name, if I don't want to run on that server, I'll put a "#" infront it.
username1@hostname.com
username2@hostname.com
#username3@hostname.com
#username4@hostname.com... (17 Replies)
I am new to ksh scripts. I would like to be able to read a file line by line from a certain line number. I have a specific line number saved in a variable, say $lineNumber. How can I start reading the file from the line number saved in $lineNumber? Thanks! (4 Replies)
I have a combination of patterns to search.
file.txt contains below:
H2016-02-10
A74867712
I1556539758
Xjdflk534jfl
W0000055722327732
W0000056029009389
A74867865
I1556536434
W0000055822970840
W0000055722325916
A74868015
I1556541270
C0000055928920421
E
lines starting with A are... (5 Replies)
e.g.
File name: File.txt
cat File.txt
Result:
#INBOUND_QUEUE=FAQ1
INBOUND_QUEUE=FAQ2
I want to get the value for one which is not commented out.
Thanks, (3 Replies)
Discussion started by: Tanu
3 Replies
LEARN ABOUT DEBIAN
uni
UNI(8) System Manager's Manual UNI(8)NAME
uni - a program to interface with the UniConf configuration system
SYNOPSIS
uni get KEY [DEFAULT]
uni set KEY [VALUE]
uni xset KEY [VALUE]
uni keys KEY
uni hkeys KEY
uni xkeys KEY
uni dump KEY
uni hdump KEY
uni xdump KEY
DESCRIPTION
UniConf is the One True Configuration system that includes all the others because it has plugin backends and frontends. Or, less
grandiosely, it's a lightweight, distributed, cacheable tree of strings.
uni is used to interface directly with the UniConf system. It's primary use is for diagnostic purposes, but it can be used to add UniConf
support to shell scripts.
ENVIRONMENT VARIABLE
UNICONF
Before using uni, you must tell it which UniConf moinker you wish to query by setting this environment variable.
Monikers are used to contact UniConf back-ends, be they a uniconfd server, or a local file. For example, they could be:
o a filename (ini:/var/lib/app/config.ini),
o or a network address, (tcp:open.nit.ca:4111).
COMMANDS
get Retreive the VALUE associated with the provided KEY within the UniConf database. If a DEFAULT is provided, this will be returned if
the KEY has no associated VALUE.
set Assign the provided VALUE the the provided KEY. UniConf provides no guarentee that the entry committed throughout the database.
The next "get" command for this KEY may not return the most recently "set" value due to caching, or the existance of a read-only
generator.
xset Assign, to the provided KEY, the contents of the standard-input stream. Use this command to pipe information into the UniConf data-
base.
keys List all the sub-keys contained within the provided KEY.
hkeys List all the sub-keys, recursively, contained within the provided KEY. Since any KEY may contain sub-keys, UniConf provides no
guarentee that there are no circular references.
xkeys List all the sub-keys contained within the provided KEY, which can contain wildcards. See the WILDCARDS section.
dump List all the sub-keys and their values, contained within the provided KEY.
hdump List all the sub-keys and their values, recursively, contained within the provided KEY.
xdump List all the sub-keys and their values, contained within the provided KEY, which can contain wildcards.
WILDCARDS
A KEY looks just like a normal slash-delimited path. The root of the UniConf tree has a KEY named "/". Sub-keys can be accessed by names
such as "/software/myapp/version".
With wildcards, you can access more than one key at a time.
* To access a sub-key within any one level of keys, use the asterix like so: "/software/*/version". This retrieves all keys of "ver-
sion" that are one level beneath "/software".
... To access a sub-key anywhere beneath a key, use the ellipsis like so: "/.../version". This retrieves all keys of "version" that are
zero or more levels beneath the root (i.e. any appearance of "version" within the database.
SEE ALSO uniconfd(8)AUTHORS
This software was written by the hackers at Net Integration Technologies. Contact us at <wvstreams-dev@lists.nit.ca>
Uni 4.2.2 September 2004 UNI(8)