10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Text file has DEL character(ASCII code 127) as quotes with comma as field delimiter. If any of the field contains new line character then I need to remove it. Please help me to achieve this.
Thanks
Vikram (4 Replies)
Discussion started by: Vikramhm
4 Replies
2. UNIX for Dummies Questions & Answers
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
3. Shell Programming and Scripting
Hi below is my file.
cat input.dat
101,abhilash,1000
102,prave
en,2000
103,partha,4
000
10
4,naresh,5000
(its just a example file)
and my output should be:
101,abhilash,1000
102,praveen,2000
103,partha,4000
104,naresh,5000
below is my code
cat input.dat |tr -d '\n' >... (6 Replies)
Discussion started by: abhilash_nakka
6 Replies
4. Shell Programming and Scripting
I am trying to make a download progress meter with bash and I need to echo a percentage without making a newline and without concatenating to the last output line.
The output should replace the last output line in the terminal.
This is something you see when wget or curl downloads files.... (6 Replies)
Discussion started by: locoroco
6 Replies
5. Shell Programming and Scripting
Hi everyone,
I'd like to use the script validatehtml which returns either the given url is HTML strict or not, using http:// validator . w3 . org .
sh validatehtml
#!/bin/bash
wget -q http:// validator . w3 .org / check?uri=$1
cat check\?uri\=$1 | sed -n '/h2/ p' | sed 's/ */ /g' | sed... (2 Replies)
Discussion started by: azertyazerty
2 Replies
6. Shell Programming and Scripting
Hello Friends,
Input File looks as follows:
>FASTA Header1
line1
line2
line3
linen
>FASTA Header2
Line1
Line2
linen
>FASTA Header3
and so on
.......
Output:
Want something as:
>FASTA Header1
line1line2line3linen
>FASTA Header2 (5 Replies)
Discussion started by: Deep9000
5 Replies
7. UNIX for Dummies Questions & Answers
Hi all,
I have a scripts in csh and whenI do echo command I want to add newline.
I used to do it like this:
#! /bin/csh
echo "\n\n WHAT AREA DO YOU WANT:\n\n"
echo -n " YOUR CHOISE : "
set area=$<
but since weupgrade the oracle to 10g it doesn't do the newline (he print the\n as a... (5 Replies)
Discussion started by: rikyer
5 Replies
8. Shell Programming and Scripting
Hey there - a bit of background on what I'm trying to accomplish, first off. I am trying to load the data from a pipe delimited file into a database. The loading tool that I use cannot handle embedded newline characters within a field, so I need to scrub them out.
Solutions that I have tried... (7 Replies)
Discussion started by: bbetteridge
7 Replies
9. Forum Support Area for Unregistered Users & Account Problems
I have an old file originally created in vi but read and saved by a word processor at some point.
I have ^Ms and know how to substitute them for anything I wish but I still only have one long line when viewed in vi.
So I suppose I need to substitute a newline for each ^M but I don't know the... (2 Replies)
Discussion started by: Gale Gorman
2 Replies
10. Shell Programming and Scripting
Hi,
I'm not very familiar with unix shell. I want to replace the combination of two carriage returns and one newline with one carriage return and one newline. I think the best way to do this is to use sed. I tried something like this:
sed -e "s#\#\#g" file.txt
but it doesn't work.
Thanx... (2 Replies)
Discussion started by: mored
2 Replies