I use SAS (a statistical software) and have to remove last character or the last 1/2 numbers that appear after characters from the string using Perl Regular Expression (which is recognized by SAS).
Input: f183ii10 f183ii2 f182ii1 f182ii2 f183iim f22ii f22ii11 f22ii12 pmh4 pmhm
Desired... (2 Replies)
Hello,
I would like to find an efficient way to compare a pair of strings that differ at one position, and return the difference and position.
For example:
String1 123456789
String2 123454789
returning something - position 6, 6/4
Thanks in advance,
Mike (5 Replies)
Hello Can Any1 help me.
I want to replace a specific character string inside a file at a specific location with a particular character with the help of a command or a shell script.
The tr command replaces a specific character with another for all the occurences of that character in the file.
I... (5 Replies)
Hi!
I am not a whiz at awk and very unsure about the aplication of awk solve my problem. I was hoping for some quick pointers so I can figure this out.
I have a file that looks like so:
label.Asked=\u8CEA\u554F\u6E08\u307F
button.Edit=\u7DE8\u96C6... (3 Replies)
Hello,
I want to writte a script that replace two character strings by two variables with the command sed butmy solution doesn't work. I'm written this: sed "s/TTFactivevent/$TTFav/g && s/switchSLL/$SLL/g" templatefile.
I want to replace TTFactivevent by the variable $TTFav, that is a... (4 Replies)
This might be a dummy question, but is there a command in UNIX that compare two strings character-by-character and display the difference?
---------- Post updated at 11:25 AM ---------- Previous update was at 10:32 AM ----------
Or probably what I'm looking is how to break a string into... (3 Replies)
I have a variable containing a list of strings, and want to create a string with the first character being -.
Example:
var="-name fred paul -surname winnett dimech"
I want a string, namely
errStr="-name -surname" (2 Replies)
Greetings.
I have a file with information like this:
AMNDHRKEOEU?AMNDHRKEOEU?AMNDHRKEOEU?AMNDHRKEOEU?
AMNDHRKEEU?AMNDHREOEU?
AMNDHREU?AHRKEOEU?AMNDHRKEU?AMNDKEOEU?
What I need to extract is the position, in every line, of every occurrence of '?'
A desired output would be something... (6 Replies)
Here is my task, I feel sure this can be accomplished with see/awk but can't seem to figure out how.
I have large flat file from which I need to extract every case of a pairing of characters (GG) in this case PLUS the previous 20 characters. The output should be a list (which I plan to make... (17 Replies)
Hi all,
I need to remove DBPATH= and /db from the string below using awk (or sed, as it also exists on the machine).
Input: DBPATH=/some/path/database/db
Desired output: /some/path/database
Thank you! (8 Replies)
Discussion started by: ejianu
8 Replies
LEARN ABOUT OSX
uuconv
uuconv(1) General Commands Manual uuconv(1)NAME
uuconv - convert UUCP configuration files
SYNOPSIS
uuconv -i type -o type [-p program] [--program program]
uuconv --input type --output type [-p program] [--program program]
DESCRIPTION
The uuconv program can be used to convert UUCP configuration files from one format to another. This can be useful for administrators con-
verting from an older UUCP package. Taylor UUCP is able to read and use old configuration file formats, but some new features can not be
selected using the old formats.
The type of configuration file to read is specified using the -i or --input options. The type of configuration file to write is specified
using the -o or --output options.
The supported configuration file types are taylor, v2, and hdb. For a description of the taylor configuration files, use the info command
and see "*Note Configuration Files::" for uucp. The other types of configuration files are used by traditional UUCP packages, and are not
described in this manual.
An input configuration of type taylor is read from a compiled in directory by default.
The output configuration is written to files in the directory in which uuconv is run.
Some information in the input files may not be representable in the desired output format, in which case uuconv will silently discard it.
The output of uuconv should be carefully checked before it is used. The uuchk(8) program may be used for this purpose.
The -p or --program option may be used to convert specific cu configuration information, rather than the default of only converting the
uucp configuration information.
OPTIONS -i, --input
Set input type (one of taylor, v2, hdb)
-o, --output
Set output type (one of taylor, v2, hdb)
-p, --program
Program to convert (e.g., uucp or cu)
Standard UUCP options:
-v, --version Report version information and exit.
--help
Print a help message and exit.
SEE ALSO cu(1), info(1), uucp(1), uuchk(8)AUTHOR
Ian Lance Taylor <ian@airs.com>. Text for this Manpage comes from Taylor UUCP, version 1.07 Info documentation.
Taylor UUCP 1.07 uuconv(1)