Sponsored Content
Full Discussion: Removing \n from a text file
Top Forums UNIX for Dummies Questions & Answers Removing \n from a text file Post 302944951 by xbin on Sunday 24th of May 2015 11:36:47 AM
Old 05-24-2015
Using RE's search for the backlash character then the following n character
Code:
sed 's/[\][n]/,/g' filename

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

removing commas from text file

Dear all I have a file which looks like this xxxxxxxxxxxxxx,xxx,xxxxxxxxxx xxxxxxxxxxxxxx,xxx,xxxxxxxxxx etc basically 14 characters then a comma, three characters, then a comma then 10 characters. We are uploading this file to our mainframe and they want the commas removed, so it... (6 Replies)
Discussion started by: hcclnoodles
6 Replies

2. Shell Programming and Scripting

Removing lines in a text file.

Here is my problem I'm hoping you guru's can help me figure out. I have a text file that contains comma delimited columns. What I'm looking to do is see if the 24th column on each row in the file contains a value (not null), and then write/append that line to a different file. I've been... (4 Replies)
Discussion started by: WABonnett
4 Replies

3. Shell Programming and Scripting

Removing a particular line from a text file

Hi, I have a file called inp.txt the contents of the file are as follows MANI123|23|41 MANI123|96|23 I want to reove the first line of this file. How can I do it. Thanks in advance (5 Replies)
Discussion started by: sendhilmani123
5 Replies

4. Shell Programming and Scripting

Removing text from a line in a file

Hi All, I would like to know how to remove text from a line in a file. eg to The 4 sets of numbers are not static ie they change on each line in each different file so if anyone can help that would be great. Jeremy (10 Replies)
Discussion started by: outthere_3
10 Replies

5. Shell Programming and Scripting

removing carriage returns in text file

Hi I have a text file that looks like this: A B C D E F G H I I want it to be reformatted to A;B;C; D;E;F; G;H;I; (4 Replies)
Discussion started by: coolnfunky
4 Replies

6. UNIX for Dummies Questions & Answers

Removing a string of text from a file - help please

Hey Folks, I have a file that contains data that I am working with, sometimes this file has a very long string of text that messes with an awk command in a script i am trying to build. I would like to cut this string of text out of a file and then redirect everything except that string to a new... (5 Replies)
Discussion started by: deepslp
5 Replies

7. Shell Programming and Scripting

Removing files with same text but different file names

Hi All, I have some 50,000 HTML files in a directory. The problem is; some HTML files are duplicate versions that is wget crawled them two times and gave them file names by appending 1, 2, 3 etc after each crawl. For example, if the file index.html has been crawled several times, it has been... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies

8. Shell Programming and Scripting

Removing zero values from text file

Hi all, I wrote the following code to remove the value which are 0 in the input file (a columns if numbers). awk 'BEGIN { for (i=1; i<=NF; i++) if ($i) printf("%13.6e\n",$i) }' $1 >> $2 The script works if the zeros are written as 0.0000 but not as 0.000000e+00 In... (10 Replies)
Discussion started by: f_o_555
10 Replies

9. Shell Programming and Scripting

Removing rows and chars from text file

Dear community, maybe I'm asking the moon :rolleyes:, but I'm scratching my head to find a solution for it. :wall: I have a file called query.out (coming from Oracle query), the file is like this: ADDR TOTAL -------------------- ---------- TGROUPAGGR... (16 Replies)
Discussion started by: Lord Spectre
16 Replies

10. UNIX for Dummies Questions & Answers

Removing PATTERN from txt without removing lines and general text formatting

Hi Everybody! First post! Totally noobie. I'm using the terminal to read a poorly formatted book. The text file contains, in the middle of paragraphs, hyphenation to split words that are supposed to be on multiple pages. It looks ve -- ry much like this. I was hoping to use grep -v " -- "... (5 Replies)
Discussion started by: AxeHandle
5 Replies
thai/thwctype.h(3)						      libthai							thai/thwctype.h(3)

NAME
thai/thwctype.h - Thai wide-char character classifications. SYNOPSIS
Functions int th_wcistis (thwchar_t wc) Is the wide character convertible to a valid TIS-620 code? int th_wcisthai (thwchar_t wc) Is the wide character a Thai character? int th_wciseng (thwchar_t wc) Is the wide character an English character? int th_wcisthcons (thwchar_t wc) Is the wide character a Thai consonant? int th_wcisthvowel (thwchar_t wc) Is the wide character a Thai vowel? int th_wcisthtone (thwchar_t wc) Is the wide character a Thai tone mark? int th_wcisthdiac (thwchar_t wc) Is the wide character a Thai diacritic? int th_wcisthdigit (thwchar_t wc) Is the character a Thai digit? int th_wcisthpunct (thwchar_t wc) Is the character a Thai punctuation? int th_wcistaillesscons (thwchar_t wc) Is the wide character a Thai consonant that fits the x-height? int th_wcisovershootcons (thwchar_t wc) Is the wide character a Thai consonant with stem above ascender? int th_wcisundershootcons (thwchar_t wc) Is the wide character a Thai consonant with stem below baseline? int th_wcisundersplitcons (thwchar_t wc) Is the wide character a Thai consonant with split part below baseline? int th_wcisldvowel (thwchar_t wc) Is the wide character a Thai leading vowel? int th_wcisflvowel (thwchar_t wc) Is the wide character a Thai following vowel? int th_wcisupvowel (thwchar_t wc) Is the wide character a Thai upper vowel? int th_wcisblvowel (thwchar_t wc) Is the wide character a Thai below vowel? int th_wcchlevel (thwchar_t wc) Position for rendering: Detailed Description Thai wide-char character classifications. Function Documentation int th_wcchlevel (thwchar_twc) Position for rendering: o 3 = above/top o 2 = top o 1 = above o 0 = base o -1 = below int th_wcistis (thwchar_twc) Is the wide character convertible to a valid TIS-620 code? TIS-620 here means US-ASCII plus TIS-620 extension. Author Generated automatically by Doxygen for libthai from the source code. Version 0.1.14 Tue Jun 17 2014 thai/thwctype.h(3)
All times are GMT -4. The time now is 05:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy