Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Filter valid hexadecimal color codes Post 303045968 by vgersh99 on Monday 20th of April 2020 11:14:09 AM
Old 04-20-2020
I don't know either...
Most likely because you're using Extended RegEx without telling grep to do so (-E)
could you provide a sample file and a desired output (as always)?
 

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Using color escape codes in less

Hi all, Not sure how "for dummies" this question is, but I'd better use understatement... A. My Environment ============== I am using RedHat Linux, version 2.6.18-53.el5. When I type less --version I get: less 394 Copyright (C) 1984-2005 Mark Nudelman ... My terminal is configured... (1 Reply)
Discussion started by: Source2Exe
1 Replies

2. UNIX for Dummies Questions & Answers

Regular expression on hex color codes

I want to have all hex color codes in a given stylesheet in uppercase, so #fff should be converted to #FFF for instance. Here is the regular expression I use to match and convert hex color codes to uppercase: sed -e 's/^#({3}$)|({6}$)/^#({3}$)|({6}$)/' main.css However, no conversion to uppercase... (6 Replies)
Discussion started by: figaro
6 Replies

3. Programming

Using ANSI color codes in gcc compiled program

I have put some yellow color codes and works well. I call the funstion using print_usage(stderr, 0); I would like to know if there is any way, to store the ansi color codes in variables and then call them inside fprintf. Or have a format followed by the strings I want to output. ... (5 Replies)
Discussion started by: kristinu
5 Replies

4. UNIX for Dummies Questions & Answers

Display file with escaped color codes

Hi, I have a file containing color codes: Fri May 25 17:13:04 2012: Starting MTA: exim4^ Loading cpufreq kernel modules...^How can I display it colorized on a linux terminal? (4 Replies)
Discussion started by: ripat
4 Replies

5. Shell Programming and Scripting

Help with awk color codes based on condition

HI i have two files say test and test1 Test.txt Code: Lun01 2TB 1.99TB 99.6% Lun02 2TB 1.99TB 99.5% Lun03 2TB 1.99TB 99.5% Lun04 2TB 1.55TB 89.6% Code: Test1.txt Lun01 2TB 1.99TB 89.5% Lun02 2TB 1.99TB 99.5% Lun03 2TB 1.99TB 99.5% Requirement is to compare... (6 Replies)
Discussion started by: venkitesh
6 Replies

6. Shell Programming and Scripting

Filter Data based on codes

Hello, I have a question on how to filter the data on multiple columns. The problem is I have one table with 25 columns, 4500 rows. I need to filter out the data based on some codes like 'XXXX', I have 25 codes to check on that table. My requirement is that which ever row has this code I... (1 Reply)
Discussion started by: sandeep309
1 Replies
esdsample(1)							   User Commands						      esdsample(1)

NAME
esdsample - play a sample SYNOPSIS
esdsample [-s hostname:port] [-b] [-d] [-e] [-h] [-m] [-r freq] samplename DESCRIPTION
The esdsample utility plays a sample using the Enlighted Sound Daemon (esd). OPTIONS
The following options are supported: -s hostname:portContact the esd server on hostname at port. -b Specify that the output should be in 8-bit format. By default, the output is in 16-bit format. -d Play the sample from file as raw data. The default behavior is to read the data from a sound file (.wav, .au, and so on). If this option is chosen, samplename is the name of a file. -e Play the sample from the esd cache. If this option is chosen, samplename is the name of the sample in the cache. -h Display help text, and exit. -m Specify that the output should be in mono format. By default, the output is in stereo format. -r freq Specify that the output rate should be set to freq. By default, the output rate is set to 44.1 kHz. OPERANDS
The following operands are supported: samplename The name of the sample to be played. If the -e option is used, samplename is the esd cache name. Otherwise, samplename is a filename. EXAMPLES
Example 1: Playing a sample from a file example% esdsample generic.wav Example 2: Playing a sample from the esd cache example% esdsample -e esdctl:generic.wav (where esdctl:generic.wav is the cache name) EXIT STATUS
The following exit values are returned: 0 Application exited successfully >0 Application exited with failure FILES
The following files are used by this application: /usr/bin/esdsample Executable for Enlightened Sound Daemon sound sampler. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-audio | +-----------------------------+-----------------------------+ |Interface stability |External | +-----------------------------+-----------------------------+ SEE ALSO
esdcat(1), esdmon(1), esdplay(1), esdrec(1), esdctl(1), esd-config(1), libesd(3) NOTES
Written by Brian Cameron, Sun Microsystems Inc., 2003. SunOS 5.10 8 Jan 2003 esdsample(1)
All times are GMT -4. The time now is 09:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy