10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All, I am a newbie to Shell scripting. I have a requirement to Delimit the file fields of a Input file having special characters and spaces with ";".
Input File
----------------------------------
Server Port
----------------------------------
Local ... (5 Replies)
Discussion started by: Suganbabu
5 Replies
2. Shell Programming and Scripting
Hi,
I need help with one problem, I came across recently.
I have one input file which I need to delimit based on character length.
$ cat Input.txt
12345sda231453
asd760kjol62569
sdasw4g76gdf57
And, There is one comma separated file which mentions "start of the field" and "length... (6 Replies)
Discussion started by: Prathmesh
6 Replies
3. Shell Programming and Scripting
There was a sample code on forum I found sometime back:
$ f() { local foo=; : ${foo=unset}; declare -p foo; }; f
declare -- foo=""
$ f() { local foo; : ${foo=unset}; declare -p foo; }; f
declare -- foo="unset"
Can someone explain why was colon (:) is being used here. Whats its use? (4 Replies)
Discussion started by: Rameshck
4 Replies
4. Shell Programming and Scripting
Hi All ,
I am facing a small challenge i need unix command to remove space as well as replace "|" to "," in a csv file .
original file :
A | B | c | D
E | F | G | H
I | J | K | L
P | M | N | O
Expected o/p:
A,B,c,D
E,F,G,H
I,J,K,L
P,M,N,O (4 Replies)
Discussion started by: Sweety532
4 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
Greetings !!! :)
Am having issues with wc -l command.
My requirement is to delimit the output with comma seperated values and use that file as input in informatica.
wc -l *.ksh
Output :
16 espress_raise.ksh
173 espresso_monitoring.ksh
189 total
... (6 Replies)
Discussion started by: srivignesh.kn
6 Replies
6. Shell Programming and Scripting
Hello,
I have a huge file of over 2,00,00,00 strings in UTF8 format. I have managed to write a script in Perl which sorts them neatly as per their Unicode ranges.
However I am now stuck with a script which will pipe out all strings between 3 and 20 letters/characters. I am not very good at... (2 Replies)
Discussion started by: gimley
2 Replies
7. UNIX for Dummies Questions & Answers
Can some one please explain why do we use colon in a grep statement .
for eg:
ORACLE_SID=$(grep :$(echo $JOBNAME |cut -c1-3): ${SWENV_TAB}|awk -F: '{print $1}')
Thanks in advance
Sri (5 Replies)
Discussion started by: Sri3001
5 Replies
8. UNIX for Advanced & Expert Users
Hi all,
Great thanks to all for support till today..today i came here for 1 new issue :-( in our organization we are developing a job portal web application for a client. using Apache-tomcat we are hosting this application, now i need to delimit the applications directory comer under the webapps... (1 Reply)
Discussion started by: anishkumarv
1 Replies
9. Shell Programming and Scripting
Hi,
Im a pretty large noob to linux/perl etc and im trying to use mysql slurp to take a delimited file and import it into mysql using stdin (in the hope its faster)
mysqlslurp - slurp <STDIN> into a MySQL table - search.cpan.org
Christopher Brown / MySQL-Slurp - search.cpan.org
Using... (3 Replies)
Discussion started by: newtony
3 Replies
10. Shell Programming and Scripting
Hi gurus, hoping someone can help with a sed line that can do the following...
I have a flat file with about 1000 records, but in order to import into openoffice spreadsheet, I need to create a delimited file. I'd like to do 2 things with the SED command:
1- add a pipe character "|" at the end... (4 Replies)
Discussion started by: RogCor
4 Replies