Sponsored Content
Top Forums UNIX for Advanced & Expert Users Without the aid of the escape mechanism, how to put a raw string into a variable? Post 303045753 by wisecracker on Sunday 12th of April 2020 06:26:02 AM
Old 04-12-2020
Hi RudiC...

I already know about conjoining strings and this is the way 'set' does it from the working part of the code:
Code:
STRING=' !"#$%&'"'"'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~'

But I did say I would like to be able to edit the STRING on the fly so what if I deleted say ' or " inside the STRING?


EDIT:
Just seen your edit and that looks like a good idea thanks I'll try it...

Last edited by wisecracker; 04-12-2020 at 07:42 AM.. Reason: See EDIT:
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Put raw data to column data

Dear all, I want below data to make it in column format.so i will see the data like this cdrID teleServiceCode chargedPartyNumber ... ... ... ... "egmailcom0w10ggzx00" 'sMS (5)' "716323770" "m17ifi5z30w0z6o7200" 'sMS (5)' ... (7 Replies)
Discussion started by: Nayanajith
7 Replies

2. UNIX for Advanced & Expert Users

Remove escape characters from string

Hello all, I have a string var which contains formatting characters at the end, it is a string with EScape sequences at the end of it. How can I remove them so that I only keep the 'real' text? I tried : var1=${var1%%\033[0m} does not seem to do the job .... Please help Thanks (2 Replies)
Discussion started by: gio001
2 Replies

3. Programming

how to use hex escape char with string in C?

I want it to ouput "abcd", but it dosen't. 1 #include<stdio.h> 2 int main() 3 { 4 printf("a\x62cd"); 5 } 6 gcc alarm.c -o alarm alarm.c: In function 'main': alarm.c:4:9: warning: hex escape sequence out of range It seems that the complier joint "cd" as part of... (8 Replies)
Discussion started by: vistastar
8 Replies

4. Shell Programming and Scripting

awk not escape my bash variable

I tried to parse data from switch configuration files vlan 1727 name SQ5506-15 by port tagged ethe 8/1 to 8/2 untagged ethe 1/13 ! vlan 2105 name SQ5620-7007(BR2) by port tagged ethe 8/1 to 8/2 untagged ethe 1/17 ! interface ethernet 1/13 port-name SQ5506-15.nic0 rate-limit... (2 Replies)
Discussion started by: winggundamth
2 Replies

5. Shell Programming and Scripting

How to store a escape character in a Variable.?

How to store escape character in the variable. Var=abc,def,ghi,jkl echo ${Var} | sed -e "s/,/|\\\\./g;s/^/\\\\./g" \.abc|\.def|\.ghi|\.hjk Var1=`echo ${Var} | sed -e "s/,/|\\\./g;s/^/\\\./g"` Actual: ------- echo $Var1 .abc|.def|.ghi|.jkl Expected: --------- echo $Var1... (4 Replies)
Discussion started by: deepakwins
4 Replies

6. UNIX for Beginners Questions & Answers

String has * as the field delimiter and I need echo/awk to escape it, how?

Hi, I am trying to read an Oracle listener log file line by line and need to separate the lines into several fields. The field delimiter for the line happens to be an asterisk. I have the script below to start with but when running it, the echo command is globbing it to include other... (13 Replies)
Discussion started by: newbie_01
13 Replies

7. Shell Programming and Scripting

How to escape colon sign from variable in shell?

Hello, Below script works fine when I manually enter required information for each file. When it comes to shell in auto mode, it gives various errors. I am under ubuntu 14.04 / trusty. manual_run.sh: #!/bin/bash /usr/bin/ffmpeg -start_at_zero -copyts -i nicki.mp4 -c:v mpeg2video \ -b:v 500k... (3 Replies)
Discussion started by: baris35
3 Replies

8. Shell Programming and Scripting

Escape characters in a variable

Debian 9 64x - LXDE How can i disable escape sequences in a variable? #!/bin/bash #mainscript . "./links.bash" echo "$red_start This text should be red $color_end"#!/bin/bash #links.bash #colors red_start="\eOutput that i get: \e Output expected: This text should be... (5 Replies)
Discussion started by: int3g3r
5 Replies
DRC(1)							      General Commands Manual							    DRC(1)

NAME
drc - a program for acoustic compensation of audio systems SYNOPSIS
drc [options] DRCFile DRCFile is name of DRC configration file DESCRIPTION
This manual page documents briefly the drc program. This manual page was written for the Debian distribution because the original program does not have a manual page. drc is program used to generate correction filters for acoustic compensation of HiFi and audio systems in general, including listening room compensation. Program generates just the FIR correction filters, which can be used with a real time or offline convolver to provide real time or offline correction. drc doesn't provide convolution features, and provides only some simplified, although really accurate, measuring tools. OPTIONS
--help Show the full options list --BCBaseDir <STRING> --BCInFile <STRING> --BCInFileType <STRING> --BCSampleRate <INTEGER> --BCImpulseCenterMode <STRING> --BCImpulseCenter <INTEGER> --BCInitWindow <INTEGER> --BCPreWindowLen <INTEGER> --BCPreWindowGap <INTEGER> --BCNormFactor <FLOAT> --BCNormType <STRING> --MCFilterType <STRING> --MCInterpolationType <STRING> --MCMultExponent <INTEGER> --MCFilterLen <INTEGER> --MCNumPoints <INTEGER> --MCPointsFile <STRING> --MCMagType <STRING> --MCFilterFile <STRING> --MCFilterFileType <STRING> --MCOutWindow <INTEGER> --MCNormFactor <FLOAT> --MCNormType <STRING> --MCOutFile <STRING> --MCOutFileType <STRING> --BCDLType <STRING> --BCDLMinGain <FLOAT> --BCDLStartFreq <FLOAT> --BCDLEndFreq <FLOAT> --BCDLStart <FLOAT> --BCDLMultExponent <INTEGER> --HDMultExponent <INTEGER> --HDMPNormFactor <FLOAT> --HDMPNormType <STRING> --HDMPOutFile <STRING> --HDMPOutFileType <STRING> --HDEPNormFactor <FLOAT> --HDEPNormType <STRING> --HDEPOutFile <STRING> --HDEPOutFileType <STRING> --MPPrefilterType <STRING> --MPPrefilterFctn <STRING> --MPWindowGap <INTEGER> --MPLowerWindow <INTEGER> --MPUpperWindow <INTEGER> --MPStartFreq <FLOAT> --MPEndFreq <FLOAT> --MPWindowExponent <FLOAT> --MPFilterLen <INTEGER> --MPFSharpness <FLOAT> --MPBandSplit <INTEGER> --MPHDRecover <STRING> --MPEPPreserve <STRING> --MPHDMultExponent <INTEGER> --MPPFFinalWindow <INTEGER> --MPPFNormFactor <FLOAT> --MPPFNormType <STRING> --MPPFOutFile <STRING> --MPPFOutFileType <STRING> --DLType <STRING> --DLMinGain <FLOAT> --DLStartFreq <FLOAT> --DLEndFreq <FLOAT> --DLStart <FLOAT> --DLMultExponent <INTEGER> --EPPrefilterType <STRING> --EPPrefilterFctn <STRING> --EPWindowGap <INTEGER> --EPLowerWindow <INTEGER> --EPUpperWindow <INTEGER> --EPStartFreq <FLOAT> --EPEndFreq <FLOAT> --EPWindowExponent <FLOAT> --EPFilterLen <INTEGER> --EPFSharpness <FLOAT> --EPBandSplit <INTEGER> --EPPFFlatGain <FLOAT> --EPPFOGainFactor <FLOAT> --EPPFFlatType <STRING> --EPPFFGMultExponent <INTEGER> --EPPFFinalWindow <INTEGER> --EPPFNormFactor <FLOAT> --EPPFNormType <STRING> --EPPFOutFile <STRING> --EPPFOutFileType <STRING> --PCOutWindow <INTEGER> --PCNormFactor <FLOAT> --PCNormType <STRING> --PCOutFile <STRING> --PCOutFileType <STRING> --ISType <STRING> --ISPETType <STRING> --ISPrefilterFctn <STRING> --ISPELowerWindow <INTEGER> --ISPEUpperWindow <INTEGER> --ISPEStartFreq <INTEGER> --ISPEEndFreq <INTEGER> --ISPEFilterLen <INTEGER> --ISPEFSharpness <FLOAT> --ISPEBandSplit <INTEGER> --ISPEWindowExponent <FLOAT> --ISPEOGainFactor <FLOAT> --ISSMPMultExponent <INTEGER> --ISOutWindow <INTEGER> --ISNormFactor <FLOAT> --ISNormType <STRING> --ISOutFile <STRING> --ISOutFileType <STRING> --PTType <STRING> --PTReferenceWindow <INTEGER> --PTDLType <STRING> --PTDLMinGain <FLOAT> --PTDLStart <FLOAT> --PTDLStartFreq <FLOAT> --PTDLEndFreq <FLOAT> --PTDLMultExponent <INTEGER> --PTBandWidth <FLOAT> --PTPeakDetectionStrength <FLOAT> --PTMultExponent <INTEGER> --PTFilterLen <INTEGER> --PTFilterFile <STRING> --PTFilterFileType <STRING> --PTNormFactor <FLOAT> --PTNormType <STRING> --PTOutFile <STRING> --PTOutFileType <STRING> --PTOutWindow <INTEGER> --PLType <STRING> --PLMaxGain <FLOAT> --PLStart <FLOAT> --PLStartFreq <FLOAT> --PLEndFreq <FLOAT> --PLMultExponent <INTEGER> --PLOutWindow <INTEGER> --PLNormFactor <FLOAT> --PLNormType <STRING> --PLOutFile <STRING> --PLOutFileType <STRING> --RTType <STRING> --RTPrefilterFctn <STRING> --RTWindowGap <INTEGER> --RTLowerWindow <INTEGER> --RTUpperWindow <INTEGER> --RTStartFreq <FLOAT> --RTEndFreq <FLOAT> --RTWindowExponent <FLOAT> --RTFilterLen <INTEGER> --RTFSharpness <FLOAT> --RTBandSplit <INTEGER> --RTOutWindow <INTEGER> --RTNormFactor <FLOAT> --RTNormType <STRING> --RTOutFile <STRING> --RTOutFileType <STRING> --PSFilterType <STRING> --PSInterpolationType <STRING> --PSMultExponent <INTEGER> --PSFilterLen <INTEGER> --PSNumPoints <INTEGER> --PSPointsFile <STRING> --PSMagType <STRING> --PSOutWindow <INTEGER> --PSNormFactor <FLOAT> --PSNormType <STRING> --PSOutFile <STRING> --PSOutFileType <STRING> --MSMultExponent <INTEGER> --MSOutWindow <INTEGER> --MSFilterDelay <INTEGER> --MSNormFactor <FLOAT> --MSNormType <STRING> --MSOutFile <STRING> --MSOutFileType <STRING> --TCNormFactor <FLOAT> --TCNormType <STRING> --TCOutFile <STRING> --TCOutFileType <STRING> --TCOWFile <STRING> --TCOWFileType <STRING> --TCOWNormFactor <FLOAT> --TCOWNormType <STRING> --TCOWSkip <INTEGER> --TCOWPrewindow <INTEGER> --TCOWLength <INTEGER> Refer to the manual and samples for options details and file format. AUTHOR
This manual page was written by Jaromir Mike <mira.mikes@seznam.cz>, for the Debian project (but may be used by others). August 30, 2011 DRC(1)
All times are GMT -4. The time now is 05:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy