Sponsored Content
Top Forums Shell Programming and Scripting CREATING A SYLLABLE CONCORDANCE WITH POSITIONAL VARIANTS Post 302543658 by DGPickett on Monday 1st of August 2011 03:47:11 PM
Old 08-01-2011
Well, regex for white space vary: Regex Tutorial - \b Word Boundaries

I used to say \< and \> for word boundary, but the PERL guys got to the POSIX and changed it after decades, so both may be \b!

So, you need to check for
  • standalone \<a\>
  • initial \<a[a-z]
  • final [a-z]a\>
  • medial [a-z]a[a-z]
but since the [a-z] check is more expensive, you might be able to check in this order, since if not \<a\> then \<a is initial and a\> is final, and medial is none of the above.
 

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Creating a syllable concordance

Hello, I have two files. The first file contains specific syllables of a language (Hindi) and the second file contains a large database from which these syllables have been culled. The syllable file which has syllables in Hindi has one syllable per line and the corpus file has a data... (8 Replies)
Discussion started by: gimley
8 Replies

2. Shell Programming and Scripting

[All variants] remove first pair of parentheses

How to remove first pair of parentheses and content in them from the beginning of the line? Here's the list: (ok)-test (ok)-test-(ing) (some)-test-(ing)-test test-(ing) Desired result: test test-(ing) test-(ing)-test test-(ing) Here's what I already tried with GNU sed: sed -e... (6 Replies)
Discussion started by: useretail
6 Replies

3. Shell Programming and Scripting

Writing a clustering concordance for a Perso-Arabic script

I am working on a database of a language using Arabic Script. One of the major issues is that the shape of the characters changes according to their initial, medial or final positioning. Another major issue is that of the clustering of vowels within the word: the clustering changes totally the... (9 Replies)
Discussion started by: gimley
9 Replies

4. Shell Programming and Scripting

[All variants] Change settings

Hi, I have a big settings confg (file attached). There are a few separate tasks that I have to accomplish. All scripting/programming languages are appreciated. 1. I need to parse all values and output to stdout. Sample output (truncated): VALUEA 2017-01-01 Lores ipsum Lorem ipsum dolor sit... (11 Replies)
Discussion started by: useretail
11 Replies

5. UNIX for Beginners Questions & Answers

Merge 4 bim files by keeping only the overlapping variants (unique rs values )

Dear community, I am facing a problem and I kindly ask your help: I have 4 different data sets consisted from 3 different types of array. On each file, column 1 is chromosome position, column 2 is SNP id etc... Lets say I have the following (bim) datasets: x2014: 1 rs3094315... (4 Replies)
Discussion started by: fondan
4 Replies
concordance(1)						      General Commands Manual						    concordance(1)

NAME
concordance - for programming your Logitech Harmony remote control SYNOPSIS
concordance For automatic mode: concordance <file> For manual mode: concordance <options> DESCRIPTION
This software supports programming Logitech Harmony remote controls. This software uses libconcord, which in turn uses libusb, which requires the RAWIO capability. That means you probably need root to use it. This software can be run in one of two modes. If you run it in automatic mode, the software will analyze the file to determine what sort of file it is and what to do with it. In some cases, concordance may not be able to deteremine the filetype; if this happens, you should use manual mode. In manual mode, you specify what you want to do. For any command-line option that requires updating the remote, a filename is required. In manual mode, you must first choose a mode (and only one): MODE-SETTING OPTIONS -c, --dump-config [<filename>] Read the config from the remote and write it to a file. If no filename is specified, config.EZHex is used. -C, --write-config <filename> Read a config from <filename> and write it to the remote. -f, --dump-firmware [<filename>] Read firmware from the remote and write it to a file. If no filename is specified firmware.EZUp is used. -F, --write-firmware <filename> Read firmware from <filename> and write it to the remote -h, --help Print this help message and exit. -i, --print-remote-info Print information about the remote. Additional information will be printed if -v is also used. -k, --get-time Get time from the remote -K, --set-time Set the time on the remote -l, --learn-ir <filename> Learn IR commands from other remotes. Use <filename>. When you selected multiple commands to learn on the Logitech website, you can move through this command list and let the Harmony learn the IR code for each command. -r, --reset Reset (power-cycle) the remote control -s, --dump-safemode [<filename>] Read the safemode firmware from the remote and write it to a file. If no filename is specified, safe.bin is used. -t, --connectivity-test <filename> Do a connectivity test using <filename> -V, --version Print the version and exit NOTE: If using the short options (e.g. -c), then *optional* arguments must be adjacent: -c/path/to/file. Required arguments don't have this limitation, and can be specified -C /path/to/file or -C/path/to/file. Additionally, you can specify options to adjust the behavior of the software: OTHER OPTIONS
-b, --binary-only When dumping a config or firmware, this specifies to dump only the binary portion. When use without a specific filename, the default filename's extension is changed to .bin. When writing a config or firmware, this specifies the filename passed in has just the binary blob, not the XML. --force Force. This forces concordance to use the file the way you specified, even if it doesn't think that's the kind of file it is. This is necessary for files dumped by concordance. -R, --no-reset For config or firmware updates, do not reboot the device when done. This is generally only for debugging. -v, --verbose Enable verbose output. -w, --no-web Do not attempt to talk to the website. This is useful for re-programming the remote from a saved file, or for debugging. BUGS None known at time of release, but check the website. BUG REPORTS
Please file all bug reports in the bugs section of our SourceForge Project page. NOTES
This software is not supported, affiliated, or controlled by Logitech in any way. AUTHOR
concordance was written by Kevin Timmerman and Phil Dibowitz http://www.phildev.net/concordance/ concordance(1)
All times are GMT -4. The time now is 05:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy