Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Problem naming file with specific character Post 303044439 by rbatte1 on Friday 21st of February 2020 07:03:52 AM
Old 02-21-2020
The need to create such an oddly named file is a little concerning. You would later on have to read it in a similarly convoluted way and your backup process may not like it either.

Can you elaborate why you think you need to create it like that? Other servers may not accept it as a valid file at all, so that may cause you other problems.

It would be helpful to be accurate with the ICODE tags too. At the moment, I'm not sure if you want to include te double-quotes or not, or if it even needs a leading space. I'm not wanting to berate you, just trying to get an accurate request so we can work on a suitable solution (or negate the need altogether)




Kind regards,
Robin
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to change a specific character in a file

Hi, I have a data file with following structure: a|b|c|d|3|f1|f2|f3 a|b|c|d|5|f1|f2|f3|f4|f5 I want to change this data to: a|b|c|d|3|f1;f2;f3 a|b|c|d|5|f1;f2;f3;f4;f5 Data in column 5 tells the number of following fields. All fields delimiter after the 5th column needs to be... (6 Replies)
Discussion started by: sdubey
6 Replies

2. HP-UX

count occurences of specific character in the file

For counting the occurences of specific character in the file I am issuing the command grep -o 'character' filename | wc -w It works in other shells but not in HP-UX as there is no option -o for grep. What do I do now? (9 Replies)
Discussion started by: superprogrammer
9 Replies

3. Shell Programming and Scripting

Count specific character(s) very large file

I'm trying to count the number of 2 specific characters in a very large file. I'd like to avoid using gsub because its taking too long. I was thinking something like: awk '-F' { t += NF - 1 } END {print t}' infile > outfile which isn't working Any ideas would be great. (3 Replies)
Discussion started by: dcfargo
3 Replies

4. Shell Programming and Scripting

Insert character in a specific position of a file

Hi, I need to add Pipe (|) at 5th and 18th position of all records a file. How can I do this? I tried to add it at 5th position using the below code. It didnt work. Please help!!! awk '{substr($0,5,1) ~ /|/}{print}' $input_file > $temp_file (1 Reply)
Discussion started by: gpaulose
1 Replies

5. UNIX for Advanced & Expert Users

Finding a specific range of character in file

hi, I want to store from 102 character to 128 character to a variable of header record which can be identified as 'HDR' which is the first 3 characters in the same line of a same.txt file. Please advise. Thanks (4 Replies)
Discussion started by: techmoris
4 Replies

6. Shell Programming and Scripting

File character adjustment based on specific character

i have a reqirement to adjust the data in a file based on a perticular character the sample data is as below 483PDEAN CORRIGAN 52304037528955WAGES 50000 89BP ABCD MASTER352 5434604223735428 4200 58BP SOUTHERN WA848 ... (1 Reply)
Discussion started by: pema.yozer
1 Replies

7. UNIX Desktop Questions & Answers

Combining files with specific patterns of naming in a directory

Greetings Unix exports, I am facing some problems in combining files with different name patterns with a directory and I would appreciate if you can help me I have more than 1000 files but they follow a specific pattern of naming. e.g. 64Xtest01.txt They are divided into two sets of test and... (9 Replies)
Discussion started by: A-V
9 Replies

8. Shell Programming and Scripting

How to replace a character in a specific column in a file?

This is a file that I have test line 1 (55) ) test line 2 (45) ) I would like to change all the parens in position 1 of this file to a ); i only want to check position 1 in every line of the file. I have tried different varations of sed, but cannot seem to be able to limit it to... (1 Reply)
Discussion started by: JoeG
1 Replies

9. Shell Programming and Scripting

Removing last character of a specific line from a file

Hello guys, I would need to remove the last character ")" of a specific line. This can be from any line. Your help is appreciated. Below is the line. HOSTNAME=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)) Please help. (6 Replies)
Discussion started by: sang8g
6 Replies

10. Shell Programming and Scripting

Count specific character of a file in each line and delete this character in a specific position

I will appreciate if you help me here in this script in Solaris Enviroment. Scenario: i have 2 files : 1) /tmp/TRANSACTIONS_DAILY_20180730.txt: 201807300000000004 201807300000000005 201807300000000006 201807300000000007 201807300000000008 2)... (10 Replies)
Discussion started by: teokon90
10 Replies
exp(3m) 																   exp(3m)

Name
       exp, expm1, log, log10, log1p, pow - exponential, logarithm, power

Syntax
       #include <math.h>

       double exp(x)
       double x;

       float fexp(x)
       float x;

       double expm1(x)
       double x;

       float fexpm1(x)
       float x;

       double log(x)
       double x;

       float flog(x)
       float x;

       double log10(x)
       double x;

       float flog10(x)
       float x;

       double log1p(x)
       double x;

       float flog1p(x)
       float x;

       double pow(x,y)
       double x,y;

Description
       The and functions return the exponential function of x for double and float data types, respectively.

       The and functions return exp(x-1 accurately, including tiny x for double and float data types, respectively.

       The and functions return the natural logarithm of x for double and float data types, respectively.

       The and functions return the logarithm of x to base 10 for double and float data types, respectively.

       The and functions return log(1+x) accurately, including tiny x for double and float data types, respectively.

       The function returns x**y.

   Error (due to roundoff)
       The and functions are accurate to within an ulp, and is accurate to within approximately 2 ulps; an ulp is one Unit in the Last Place.

       The  function  is accurate to within 2 ulps when its magnitude is moderate, but becomes less accurate as the result approaches the overflow
       or underflow thresholds.  Theoretically, as these thresholds are approached, almost as many bits could be lost from the result as are indi-
       cated  in  the exponent field of the floating-point format for the resultant number.  In other words, up to 11 bits for an IEEE 754 double-
       precision floating-point number.  However, testing has never verified loss of precision as drastic as 11 bits.  The worst cases have  shown
       accuracy  of  results  to within 300 ulps for IEEE 754 double-precision floating-point numbers.	In general, a (integer, integer) result is
       exact until it is larger than 2**53 (for IEEE 754 double-precision floating-point).

Return Values
       All of the double precision functions return NaN if x or y is NaN.

       The function returns HUGE_VAL when the correct value would overflow, and zero when the correct value would underflow.

       The and functions return NaN when x is less than or equal to zero or when the correct value would overflow.

       The function returns NaN if x or y is NaN.  When both x and y are zero, 1.0 is returned.  When x is negative and y is not an  integer,  NaN
       is returned.  If x is zero and y is negative, -HUGE_VAL is returned.

       The function returns NaN when x is negative.

See Also
       math(3m)

								       RISC								   exp(3m)
All times are GMT -4. The time now is 04:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy