All...
I want to remove blank spaces in file . I just leraned that we can use
" cat <Input filename> | tr -s ‘ ‘ > <Target file name> "
i also know with SED we can replace a blank space by other character by
sed s/ /*/g filename.
Please let me know how can i do that by... (1 Reply)
Hi,
I need a help in deleting extra spaces in a text.
I have a huge file, a part of it is :-
3 09/21/08 03:32:07 started undef mino Oracle nmx004.wwdc.numonyx.com Message Text : The Oracle session with the PID 1103 has a CPU time ... (6 Replies)
Hi,
I have a source file as mentioned below: I want to remove all the extra spaces between the fields.
a b--------|sa df-------|3232---|3
sf sa------|afs sdf-----|43-----|33
a b c------|adfsa dsf---|23-32|23
*Here '-' idicates spaces
Now, I want output as below:
a b|sa df|3232|3... (7 Replies)
Hi,
I have a string like this and i want to remove extra spaces that exists between the words.
Here is the sentence.
$string="The small DNA genome of hepadnaviruses is replicated by reverse transcription via an RNA intermediate. This RNA "pregenome" contains ... (2 Replies)
Suppose, I have a variable var=" name is ".
I want to remove the blank spaces from the begining and endonly, not from the entire string.
So, that the variable/string looks like following
var="name is".
Please look after the issue. (3 Replies)
I have a file which contains certain records about users. the row length is always fixed to 205 characters.
Now I want to read each record line from the file, substring some portion out of it and put into another file. But I have observed that my script is trimming the extra spaces I have used for... (4 Replies)
HI,
I need the help from the experts like I have created one file with text like:
a b c d
e f g h
i j k l
So my question is that i have to write the script in which like in the first sentence it will take only one space after d and remove all the extra space in the end.I dont... (8 Replies)
Hi guru's,
I am trying to write a script to generate a csv file by connecting to database run a query and put the values into csv file.
But the problem i face is i am getting lot of space after one value.how can i remove those values?.
Please help.
#!/bin/bash
export... (2 Replies)
I have a file of about 10k records and eace line is having an extra space of 5 byte at the end.. Iwant to remove the extra spaces at the end of each line.. Can someone please help me out.. I tried using sed command and its not working... can someone please help me out. (3 Replies)
Hi,
I want to remove all extra spaces, line breaks .
Need a new line entry only for term starting"array"
For eg: my input is
array(),
array(),
array(),
and my expected output is
array(),
array(),
array(),
Is it possible using awk? (5 Replies)
Discussion started by: rsi.245
5 Replies
LEARN ABOUT BSD
l-dialcodes
L-DIALCODES(5) File Formats Manual L-DIALCODES(5)NAME
L-dialcodes - UUCP phone number index file
DESCRIPTION
The L-dialcodes file defines the mapping of strings from the phone number field of L.sys(5) to actual phone numbers.
Each line in L-dialcodes has the form:
alpha_string phone_number
The two items can be separated by any number of blanks or tabs. Lines beginning with a `#' character are comments.
A phone number in L.sys can be preceded by an arbitrary alphabetic character string; the string is matched against the list of
alpha_strings in L-dialcodes. If a match is found, phone_number is substituted for it. If no match is found, the string is discarded.
L-dialcodes is commonly used either of two ways:
(1) The alphabetic strings are used as prefixes to denote area codes, zones, and other commonly used sequences. For example, if L-dialcodes
included the following lines:
chi 1312
mv 1415
In L.sys you could enter:
chivax Any ACU 1200 chi5551234 ogin:--ogin: nuucp
mvpyr Any ACU 1200 mv5556001 ogin:--ogin: Uuucp
instead of
chivax Any ACU 1200 13125551234 ogin:--ogin: nuucp
mvpyr Any ACU 1200 14155556001 ogin:--ogin: Uuucp
(2) All phone numbers are placed in L-dialcodes, one for each remote site. L.sys then refers to these by name. For example, if L-dialcodes
contains the following lines:
chivax 13125551234
mvpyr 14155556601
then L.sys could have:
chivax Any ACU 1200 chivax ogin:--ogin: nuucp
mvpyr Any ACU 1200 mvpyr ogin:--ogin: Uuucp
This scheme allows a site administrator to give users read access to the table of phone numbers, while still protecting the login/password
sequences in L.sys.
FILES
/etc/uucp/L-dialcodes
/etc/uucp/UUAIDS/L-dialcodes L-dialcodes example
SEE ALSO uucp(1), uux(1), L.sys(5), uucico(8).
4.3 Berkeley Distribution October 22, 1996 L-DIALCODES(5)