Sponsored Content
Top Forums Shell Programming and Scripting sed behaving oddly, repeats lines Post 302667847 by pereyrax on Saturday 7th of July 2012 02:43:22 PM
Old 07-07-2012
Alister, thanks! That's really helpful. I need to get my hands on a thorough sed manual
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Search for repeats in text file - how?

I have a text file that I want to search for repeated lines and print those lines. These would be lines in the file that appear more than once. Is there a way to do this? Thanks (4 Replies)
Discussion started by: aarondesk
4 Replies

2. Shell Programming and Scripting

sed and cut behaving differently

I have attached a file with few records. First 2 characters of each record are binary characters. I can remove it by and it works fine. But is behaving differently and removing more than expected characters. Can someone help me in accomplishing it through sed? Thanks in advance. (13 Replies)
Discussion started by: amicon007
13 Replies

3. UNIX for Dummies Questions & Answers

awk repeats counter

if I wanted to know if the word DOG(followed by several random numbers) appears in col 1, how many times will that same word DOG* appeared in col 2? This is a very large file Thanks! (7 Replies)
Discussion started by: verse123
7 Replies

4. UNIX for Dummies Questions & Answers

Can't figure out why this repeats

#!/bin/sh while IFS=: read address port; do : ${port:=443} address=$address port=$port cd $f_location number=`grep "$address" thing.txt -A 1 | grep "addresses=" | cut -d'"' -f2` echo "$address,$port,$number,$answer" >>... (9 Replies)
Discussion started by: shade917
9 Replies

5. Shell Programming and Scripting

Remove brackets repeats and separate in columns

Hi all, I want to remove the remove bracket sign ( ) and put in the separate column I also want to remove the repeated entry like in first row in below input (PA156) is repeated ESR1 (PA156) leflunomide (PA450192) (PA156) leflunomide (PA450192) CHST3 (PA26503) docetaxel... (4 Replies)
Discussion started by: manigrover
4 Replies

6. Solaris

Remove oddly named file

I accidentally saved a txt file in vi with the name ":q!". no amount of regex tomfoolery I can think of will allow me to remove the file. anyone got any ideas? (4 Replies)
Discussion started by: os2mac
4 Replies

7. Shell Programming and Scripting

sed parser behaving strange on replacing multiple words in multiple files

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

8. UNIX for Beginners Questions & Answers

Non printing option in sed is behaving oddly

Hi I'm having a problem with a sed command that I thought I was using correctly but apparently that's not the case. I was hoping someone here could point out what it is I am doing wrong? I am using the print, no print option for a matched pattern in sed. Everything seemed to be working fine... (5 Replies)
Discussion started by: Paul Walker
5 Replies

9. UNIX for Beginners Questions & Answers

Non printing option in sed is behaving oddly

Hi I'm having a problem with a sed command that I thought I was using correctly but apparently that's not the case. I was hoping someone here could point out what it is I am doing wrong? I am using the print, no print option for a matched pattern in sed. Everything seemed to be working fine... (2 Replies)
Discussion started by: harveyclayton
2 Replies
xclock(1X)																xclock(1X)

NAME
xclock - analog / digital clock for X SYNOPSIS
xclock [-help] [-analog] [-digital] [-chime] [-hd color] [-hl color] [-update seconds] [-padding number] OPTIONS
xclock accepts all of the standard X Toolkit command line options along with the additional options listed below: This option indicates that a brief summary of the allowed options should be printed on the standard error. This option indicates that a conventional 12 hour clock face with tick marks and hands should be used. This is the default. This option indicates that a 24 hour digital clock should be used. This option indicates that the clock should chime once on the half hour and twice on the hour. This option specifies the color of the hands on an analog clock. The default is black. This option specifies the color of the edges of the hands on an analog clock, and is only useful on color displays. The default is black. This option specifies the frequency in seconds at which xclock should update its display. If the clock is obscured and then exposed, it will be updated immediately. A value of 30 seconds or less will enable a second hand on an analog clock. The default is 60 seconds. This option specifies the width in pixels of the padding between the window border and clock text or picture. The default is 10 on a digital clock and 8 on an analog clock. DESCRIPTION
The xclock program displays the time in analog or digital form. The time is continuously updated at a frequency which may be specified by the user. X DEFAULTS
This program uses the Clock widget. It understands all of the core resource names and classes as well as: Specifies the width of the clock. The default for analog clocks is 164 pixels; the default for digital clocks is whatever is needed to hold the clock when displayed in the chosen font. Specifies the height of the clock. The default for analog clocks is 164 pixels; the default for digital clocks is whatever is needed to hold the clock when displayed in the chosen font. Specifies the frequency in seconds at which the time should be redisplayed. Specifies the color for the tic marks. The default depends on whether reverseVideo is specified. If reverseVideo is speci- fied the default is lwhite, otherwise the default is black. Specifies the color of the insides of the clock's hands. The default depends on whether reverseVideo is specified. If reverseVideo is specified the default is lwhite, otherwise the default is black. Specifies the color used to highlight the clock's hands. The default depends on whether reverseVideo is specified. If reverseVideo is specified the default is lwhite, otherwise the default is black. Specifies whether or not an analog clock should be used instead of a digital one. The default is True. Specifies whether or not a bell should be rung on the hour and half hour. Specifies the amount of internal padding in pixels to be used. The default is 8. Specifies the font to be used for the digital clock. Note that variable width fonts currently will not always display correctly. WIDGETS
In order to specify resources, it is useful to know the hierarchy of the widgets which compose xclock. In the notation below, indentation indicates hierarchical structure. The widget class name is given first, followed by the widget instance name. XClock xclock Clock clock ENVIRONMENT
to get the default host and display number. to get the name of a resource file that overrides the global resources stored in the RESOURCE_MANAGER property. FILES
specifies required resources BUGS
xclock believes the system clock. When in digital mode, the string should be centered automatically. SEE ALSO
X(1X), xrdb(1X), time(3) AUTHORS
Tony Della Fera (MIT-Athena, DEC) Dave Mankins (MIT-Athena, BBN) Ed Moy (UC Berkeley) xclock(1X)
All times are GMT -4. The time now is 04:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy