reducing values in columns with both numbers and letters
Hi,
I columns with both number and letters however i need the number 4 trimmed off the lines that have 3 numbers in them so it just because the 2 preceding numbers only
How do I check if a variable consisted of letters, numbers or both letters and numbers?
For example, I have a variable $X and I want to print "1" if it contains only letters, "2" if it contains only numbers and "3" if it contains both (2 Replies)
Hello all I am a unix newbie....
I have a sun netra t1 and it is freaking out
I am connected to it through a console port, and it is just spitting out a ton on numbers and letters like below its just keeps going and going.
I have tried rebooting it and I cannot get it back to any kind of a... (1 Reply)
If I have a set of strings,
C21
F231
H42
1C10
1F113
and I want to isolate the ints following the char, what would the sed string be to find numbers after letters?
If I do,
*, I will get numbers after letters, but I am looking to do something like,
sed 's/*/\t*/g'
this will give me... (14 Replies)
Hello all. I am a beginner UNIX user who is using UNIX to work on a bioinformatics project for my university.
I have a bit of a complicated issue in trying to use sed (or awk) to "find and replace" bases (letters) in a genetics data spreadsheet (converted to a text file, can be either... (3 Replies)
Hi Experts,
I am finding difficulty to get exact match:
file
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1
INTERFACE_NAME="lan3"
IP_ADDRESS="10.53.52.241"
SUBNET_MASK="255.255.255.192"
BROADCAST_ADDRESS=""
INTERFACE_STATE=""
DHCP_ENABLE=0
INTERFACE_NAME="lan3:1"... (6 Replies)
Hello,
I have a file such as this:
chr1
chr2
chr1
chr2
chr3
chr10
chr4
chr5
chrz
chr1AI want to sort it, I use this command:
sort -k1 -th -n testfilebut I get this output, how can I fix this?
chr1
chr1
chr10
chr1A
chr2
chr2 (3 Replies)
I have a file with hundreds of lines in it. I wanted to extract anything that matches the following:
KR followed by 4 digits:
example KR1201
cat list | sed "s///g"
Is the closest I've come, and obviously it is not what I want. This would remove all of the items that I want and leave me... (2 Replies)
I have a file full of coordinates of the form:
37.68899917602539 58.07500076293945 57.79100036621094
The numbers don't always have the same number of decimal points. I need to reduce the decimal points of all the numbers (there are 128 rows of 3 numbers) to 2.
I have tried to do this... (2 Replies)
Heyas
Just a little fun script (code block) i'd like to share for fun.
#/bin/bash
# roman.sh
#
# Function
#
num2roman() { # NUM
# Returns NUM in roman letters
#
input=$1 # input num
output="" # Clear output string
len=${#input} # Initial length to count down
... (9 Replies)
Hi!
I found and then adapt the code for my pipeline...
awk -F"," -vOFS="," '{printf "%0.2f %0.f\n",$2,$4}' xxx > yyy
I add -F"," -vOFS="," (for input and output as csv file) and I change the columns and the number of decimal...
It works but I have also some problems... here my columns
... (7 Replies)
Discussion started by: echo manolis
7 Replies
LEARN ABOUT OSF1
dialcodes
Dialcodes(4) Kernel Interfaces Manual Dialcodes(4)NAME
Dialcodes - Contains the initial digits of telephone numbers used to establish remote connections over a telephone line
SYNOPSIS
/usr/lib/uucp/Dialcodes
DESCRIPTION
The /usr/lib/uucp/Dialcodes file contains the initial digits of telephone numbers used by the uucp program to establish remote connections
over a telephone line. The Dialcodes file simplifies entries in the /usr/lib/uucp/Systems file for sites where a number of device tele-
phone numbers have the same prefix. If users at your site communicate regularly by way of telephone lines and modems to multiple systems
all located at the same remote site, or to multiple systems located at different remote sites, use dial-code abbreviations in the
/usr/lib/uucp/Systems file rather than entering the complete telephone number of each remote modem in that file.
The Dialcodes file contains dial-code abbreviations and partial telephone numbers that complete the telephone entries in the
/usr/lib/uucp/Systems file. Entries in the Dialcodes file contain an alphabetic prefix attached to a partial telephone number that may
include the following information, in the order listed: Codes for an outside line. Long-distance access codes (1 and the area code, if the
modem is out of the local area). The 3-digit exchange number. The relevant alphabetic prefix (representing the partial telephone number),
together with the remaining four digits of that number, is then entered in the Phone field in the /usr/lib/uucp/Systems file.
Following is the form of an entry in a Dialcodes file: DialCodeAbbreviation DialingSequence
The DialCodeAbbreviation part of the entry is an alphabetic prefix containing up to eight letters, established when setting up the dial-
code listing.
The DialingSequence comprises all the digits in the number that precede the actual 4-digit telephone number.
Note that if your site uses only a relatively small number of telephone connections to remote systems, include the complete telephone num-
bers of the remote modems in the /usr/lib/uucp/Systems file rather than using dial-code abbreviations.
Enter each prefix only once in the Dialcodes file. When you have set up a dial-code abbreviation, use that prefix in all relevant entries
in the /usr/lib/uucp/Systems file.
Only someone with superuser authority can edit the Dialcodes file, which is owned by the uucp program login ID.
EXAMPLES
The Dialcodes file on system venus contains the following dial-code prefix for use with a number in the /usr/lib/uucp/Systems file: local
9=555
The Systems file on system venus contains the following entry for system zeus, including a telephone number and a dial-code prefix: zeus
Any ACU 1200 local1212 in:--in: nuucp word: thunder
When the uucp program on system venus dials system zeus, it uses the expanded telephone number =5551212.
FILES
Contains all the configuration files for the uucp program, including the Dialcoddes file Contains information about available devices Spec-
ifies initial handshaking on a connection Describes accessible remote systems
RELATED INFORMATION
Commands: cu(1), tip(1), uucp(1), uuto(1), uux(1) delim off
Dialcodes(4)