Sponsored Content
Top Forums Shell Programming and Scripting Help with regular expressions Post 302443937 by pxalpine on Tuesday 10th of August 2010 01:05:02 PM
Old 08-10-2010
Thanks agama. Just to learn, what does the /p at the end of the code do?
 

10 More Discussions You Might Find Interesting

1. Programming

regular expressions in c++

How do I use the regular expressions in c++? (2 Replies)
Discussion started by: szzz
2 Replies

2. Shell Programming and Scripting

regular expressions

Hi, can anyone advise me how to shorten this: if || ; then I tried but it dosent seem to work, whats the correct way. Cheers (4 Replies)
Discussion started by: jack1981
4 Replies

3. Shell Programming and Scripting

Help with regular expressions

I have following content in the file CancelPolicyMultiLingual3=U|PC3|EN RestaurantInfoCode1=U|restID1|1 ..... I am trying to use following matching extression \|(+) to get this PC3|EN restID1|1 Obviously it does not work. Any ideas? (13 Replies)
Discussion started by: arushunter
13 Replies

4. UNIX for Dummies Questions & Answers

regular expressions

Hi Gurus, I need help with regular expressions. I want to create a regular expression which will take only alpha-numeric characters for 7 characters long and will throw out an error if longer than that. i tried various combinations but couldn't get it, please help me how to get it guys. ... (2 Replies)
Discussion started by: ragha81
2 Replies

5. Shell Programming and Scripting

regular expressions

Hello, Let say I have a string with content "Free 100%". How can extract only "100" using ksh? I would this machanism to work if instead of "100" there is any kind of combination of numbers(ex. "32", "1238", "1"). I want to get only the digits. I have written something like this: ... (4 Replies)
Discussion started by: whatever
4 Replies

6. UNIX for Advanced & Expert Users

Regular Expressions

Hi, below is a piece of code written by my predecessor at work. I'm kind of a newbie and am trying to figure out all the regular expressions in this piece of code. It is really a tough time for me to figure out all the regular expressions. Please shed some light on the regular expressions... (3 Replies)
Discussion started by: ramky79
3 Replies

7. UNIX for Dummies Questions & Answers

Regular expressions

In regular expressions with grep(or egrep), ^ works if we want something in starting of line..but what if we write ^^^ or ^ for pattern matching??..Hope u all r familiar with regular expressions for pattern matching.. (1 Reply)
Discussion started by: aadi_uni
1 Replies

8. Shell Programming and Scripting

Regular Expressions

#!/usr/bin/perl $word = "one last challenge"; if ( $word =~ /^(\w+).*\s(\w+)$/ ) { print "$1"; print "\n"; print "$2"; } The output shows that "$1" is with result one and "$2" is with result challenge. I am confused about how this pattern match expression works step by step. I... (8 Replies)
Discussion started by: DavidHe
8 Replies

9. Shell Programming and Scripting

Regular Expressions

I am new to shell scripts.Can u please help me on this req. test_user = "Arun" if echo "test_user is a word" else echo "test_user is not a word" (1 Reply)
Discussion started by: chandrababu
1 Replies

10. Shell Programming and Scripting

Regular expressions

I need to pick a part of string lets stay started with specific character and end with specific character to replace using sed command the line is like this:my audio book 71-skhdfon1dufgjhgf8.wav' I want to move the characters beginning with - end before. I have different files with random... (2 Replies)
Discussion started by: XP_2600
2 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 03:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy