I am having problem in deleting the leading spaces:-
when i send it through mail to my personal mail id I can see a box sign in the csv sheet in windows..
can somebody please help me to resolve this
Thanks
Hi,
how to i remove leading and trailing spaces from a line? the spaces can be behind or in front of any field or line
example of a line in the input data:
Amy Reds , 100 , /bin/sh
how to i get it to be: Amy Read,100,/bin/sh
i saw something on this on the Man pages for AWK... (7 Replies)
How would I delete white spaces in a specified file?
Also, I'd like to know what command I would use to take something off a regular expression, and put it onto another.
ie.
.
.
.
expression1 <take_off>
.
.
.
expression2 (put here)
.
.
.
Any help would be great, thanks! (10 Replies)
I am trying to strip all leading and trailing spaces of a shell variable using either awk or sed or any other utility, however unscuccessful and need your help.
echo $SH_VAR | command_line Syntax.
The SH_VAR contains embedded spaces which needs to be preserved. I need only for the leading and... (6 Replies)
hi all...
i have the next question:
i have a flat file with a lot of records (lines). Each record has 10 fields, which are separated by pipe (|). My problem is what sometimes, in the first record, there are white spaces (no values, nothing) in the beginning of the record, like this:
ws ws... (2 Replies)
I have a variable that calls in a string from txt file. Problem is the string comes with an abundance of white spaces trailing it. Is there any easy way to trim the tailing white spaces off at the end? Thanks in advance. (9 Replies)
Hi,
Can anybody suggest me how to combine two strings with two or more white spaces and assign it to a variable?
E.g.
first=HAI
second=HELLO
third="$first $second" # appending strings with more than one white spaces
echo $third
this would print
HAI HELLO
Output appears... (2 Replies)
Hi Experts,
In a file tht i copied from the web , i am not able to remove the leading white spaces. I tried the below , none of them working . I opened the file through vi to check for the special characters if any , but no such characters found.
Your advice will be greatly appreciated.
sed... (5 Replies)
I have about 350 programs in which I have to add 2 lines; one before and one after a specfic line.
The following script does the job except that I lose the indentation.
#!/usr/bin/bash
while read line ... (8 Replies)
OS : RHEL 6.7
Shell : bash
I am trying to remove the leading the spaces in the below file
$ cat pattern2.txt
hello1
hello2
hello3
hello4
Expected output is shown below.
$ cat pattern2.txt
hello1
hello2
hello3
hello4 (2 Replies)
Discussion started by: John K
2 Replies
LEARN ABOUT DEBIAN
cfsndserv
CFSNDSERV(6) cfsndserv CFSNDSERV(6)NAME
cfsndserv - crossfire client sound server
DESCRIPTION
getzone adjusts and mixes sounds before playing them
USAGE
getzone none - started automatically by crossfire client
CONFIGURATION OPTIONS
~/.crossfire/sndconfig can contain the following options:
stereo
1 means stereo sound, 0 - mono
bits
bitrate of generated sound - 8 or 16
signed
if we should sent signed data to the soundcard. 1 means yes.
frequency
speed of playing data. This should be 11025, or sound pitch will change
buffers
how many buffers to allocate
buflen
how big the buffers should be. buffers*buflen shouldn't be smaller than the longest sound to be played.
simultaneously
home many sound can be played at the same time. When this setting is bigger, each sound volume will decrease.
HOW DOES IT WORK ?
The sound server gets information about sounds to be played on standard input.
The information is a line: <sound number> <sound type> <relative x> <relative y> All those numbers are hex. The file ~/.crossfire/sounds
contains description of sound numbers and types. For example:
3 0 5 0
Means that normal sound SOUND_FUMBLE spell should be played as it's source was5 units to the right of player.
Sounds are mixed in special buffers, which are in fact one buffer, which should be big enough for the biggest sound to be played.
The buffers, if contain anything, are sent one by one to the sound device. Each buffer is cleaned after playing.
Sounds data is multiplied by some ratio (<1) evaluated from it's position and volume and added to the buffers, starting from the next after
the one being played.
So bigger buffer means bigger delay, before th sound is actually played, but the smaller buffer is, the bigger is possibility, we won't
succeed filling the next buffer, before last is played.
SEE ALSO crossfire(1)
http://crossfire.real-time.com
AUTHOR
Jaakko Niemi put this page together for Debian packages by cutting
and pasting from README file of crossfire-client.
3rd Berkeley Distribution 2002-02-23 CFSNDSERV(6)