Sponsored Content
Top Forums Shell Programming and Scripting Removing characters from a string Post 73707 by Ygor on Friday 3rd of June 2005 11:17:16 AM
Old 06-03-2005
NewVar=$(basename $FileName)
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Removing characters from end of $string

I am writing a script to search PCL output and append more PCL data to the end accordingly. I need to remove the last 88 bytes from the string. I have searched for a few hours now and am coming up with nothing. I can't use head or tail because the PCL output is all on one line. awk crashes on... (3 Replies)
Discussion started by: craig2k
3 Replies

2. Shell Programming and Scripting

Help with removing characters like ^M

I have few files in unix which are in dos format. While I am copying these files, ^M, ^@, etc characters are being generated. I tried dos2unix command in Linux and it doesn't work. I tried sed to remove these characters but they won't go. I came to about this 'tr' command and tried to use it... (16 Replies)
Discussion started by: chiru_h
16 Replies

3. HP-UX

Removing ^D and ^H characters

Hi, I have a very huge file and it contains some unprintable characters like ^H and ^D. If I try to remove using cat test1.ser| tr -d '\136 110'>newfile1 it is only removing ^and all spaces in the file. How can I remove these characters (^D ^H) and keep my spaces as it is? Thanks &... (1 Reply)
Discussion started by: arsheshadri
1 Replies

4. UNIX for Dummies Questions & Answers

removing characters

Hi all, Any help on how to do the following? :eek: I have an infile as follows: _thisishowyouwritehelloworld _thisisalsohowyouwritehelloworld2 I want to delete the characters from "_" to "how" and be left with: youwritehelloworld youwritehelloworld2 I am able to do delete from a... (2 Replies)
Discussion started by: dr_sabz
2 Replies

5. UNIX for Advanced & Expert Users

Removing ^M characters

hi I have a perl script conv.pl. when i execute this file and direct i to log file I see lots of ^M characters in the log file. There is no ^M in conv.pl file. Log file is generated only after conv.pl is executed. Please help as how to get rid of these. This conv.pl is going to get schduled... (0 Replies)
Discussion started by: infyanurag
0 Replies

6. UNIX for Dummies Questions & Answers

Removing ^M characters

hi I have a perl script conv.pl. when i execute this file and direct i to log file I see lots of ^M characters in the log file. There is no ^M in conv.pl file. Log file is generated only after conv.pl is executed. Please help as how to get rid of these. This conv.pl is going to get schduled... (5 Replies)
Discussion started by: infyanurag
5 Replies

7. Shell Programming and Scripting

Removing ^M characters from a file

Hi, I want to removing ^M characters from a file and combine the line with the next line. ex: issue i have: ABC^M^M DEF solution i need: ABCDEF I found that you by using the following command you can remove new line characters. tr -d '\r' < infile.csv > outfile.csv still... (10 Replies)
Discussion started by: mwrg
10 Replies

8. UNIX for Dummies Questions & Answers

Removing characters from end of string

Hello, I have records like below that I want to remove any five characters from the end of the string before the double quotes unless it is only an asterik. 3919,5020 ,04/17/2012,0000000000006601.43,,0000000000000000.00,, 132, 251219,"*" 1668,0125 ... (2 Replies)
Discussion started by: jyoung
2 Replies

9. Shell Programming and Scripting

Removing last and first characters in a file

bash-3.00$ cat temp.txt ./a/REA01/ces1/apps/ces_ces1_init3_aa.ear/ces.war/WEB-INF/classes/reds/common/environment.properties ./a/REA01/ces1/apps/ces_ces1_init3_aa.ear/commonproperties/hi/HostIntegration.properties... (9 Replies)
Discussion started by: bhas85
9 Replies

10. Shell Programming and Scripting

Outputting characters after a given string and reporting the characters in the row below --sed

I have this fastq file: @M04961:22:000000000-B5VGJ:1:1101:9280:7106 1:N:0:86 GGGGGGGGGGGGCATGAAAACATACAAACCGTCTTTCCAGAAATTGTTCCAAGTATCGGCAACAGCTTTATCAATACCATGAAAAATATCAACCACACCA +test-1 GGGGGGGGGGGGGGGGGCCGGGGGFF,EDFFGEDFG,@DGGCGGEGGG7DCGGGF68CGFFFGGGG@CGDGFFDFEFEFF:30CGAFFDFEFF8CAF;;8... (10 Replies)
Discussion started by: Xterra
10 Replies
sasl(7) 						   Erlang Application Definition						   sasl(7)

NAME
sasl - The SASL Application DESCRIPTION
This section describes the SASL (System Architecture Support Libraries) application which provides the following services: * alarm_handler * overload * rb * release_handler * systools The SASL application also includes error_logger event handlers for formatting SASL error and crash reports. Note: The SASL application in OTP has nothing to do with "Simple Authentication and Security Layer" (RFC 4422). ERROR LOGGER EVENT HANDLERS
The following error logger event handlers are defined in the SASL application. sasl_report_tty_h : Formats and writes supervisor reports , crash reports and progress reports to stdio . sasl_report_file_h : Formats and writes supervisor reports , crash report and progress report to a single file. error_logger_mf_h : This error logger writes all events sent to the error logger to disk. It installs the log_mf_h event handler in the error_logger process. CONFIGURATION
The following configuration parameters are defined for the SASL application. See app(5) for more information about configuration parame- ters: sasl_error_logger = Value <optional> : Value is one of: tty : Installs sasl_report_tty_h in the error logger. This is the default option. {file,FileName} : Installs sasl_report_file_h in the error logger. This makes all reports go to the file FileName . FileName is a string. false : No SASL error logger handler is installed. errlog_type = error | progress | all <optional> : Restricts the error logging performed by the specified sasl_error_logger to error reports, progress reports, or both. Default is all . error_logger_mf_dir = string() | false<optional> : Specifies in which directory the files are stored. If this parameter is undefined or false , the error_logger_mf_h is not installed. error_logger_mf_maxbytes = integer() <optional> : Specifies how large each individual file can be. If this parameter is undefined, the error_logger_mf_h is not installed. error_logger_mf_maxfiles = 0<integer()<256 <optional> : Specifies how many files are used. If this parameter is undefined, the error_logger_mf_h is not installed. overload_max_intensity = float() > 0 <optional> : Specifies the maximum intensity for overload . Default is 0.8 . overload_weight = float() > 0 <optional> : Specifies the overload weight. Default is 0.1 . start_prg = string() <optional> : Specifies which program should be used when restarting the system. Default is $OTP_ROOT/bin/start . masters = [atom()] <optional> : Specifies which nodes this node uses to read/write release information. This parameter is ignored if the client_directory parameter is not set. client_directory = string() <optional> : This parameter specifies the client directory at the master nodes. Refer to Release Handling in OTP Design Principles for more informa- tion. This parameter is ignored if the masters parameter is not set. static_emulator = true | false <optional> : Indicates if the Erlang emulator is statically installed. A node with a static emulator cannot switch dynamically to a new emulator as the executable files are written into memory statically. This parameter is ignored if the masters and client_directory parameters are not set. releases_dir = string() <optional> : Indicates where the releases directory is located. The release handler writes all its files to this directory. If this parameter is not set, the OS environment parameter RELDIR is used. By default, this is $OTP_ROOT/releases . utc_log = true | false <optional> : If set to true , all dates in textual log outputs are displayed in Universal Coordinated Time with the string UTC appended. SEE ALSO
alarm_handler(3erl) , error_logger(3erl), log_mf_h(3erl), overload(3erl) , rb(3erl) , release_handler(3erl) , systools(3erl) Ericsson AB sasl 2.1.9.3 sasl(7)
All times are GMT -4. The time now is 09:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy