8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to use either awk or sed to make names like
J. A. Smith and J.A. Martin Smith become
JA Smith and JA Martin SmithThe code should concatenate abbreviated letters that have a dot after them.
I have only been able to do this:
echo $name | sed 's/\.\ //g'But that concatenates the... (3 Replies)
Discussion started by: locoroco
3 Replies
2. Shell Programming and Scripting
I wish to convert the following in shell. Help me SED or AWK
ID= 12345,23456,67859 , 90225 , 67583
I can extract the right hand side of "=" using cut command "cut -d "=" -f2
after extracting that right side i would need like this
'12345','23456','67859','90225','67583'
1 ) the... (2 Replies)
Discussion started by: ilugopal
2 Replies
3. Shell Programming and Scripting
Hi,
Please can I have some command to get yesterday in YYMMDD format?
This will be used in ksh
Thanks, (2 Replies)
Discussion started by: smalya
2 Replies
4. Shell Programming and Scripting
I have a text file sample.txt which contains some details like
Order
9001
Item Code
34
Quantity
4
Entry Date
2009-04-23
Ordered by
Ram
Order
9002
Item Code
34
Quantity
3 (1 Reply)
Discussion started by: lazydev
1 Replies
5. Shell Programming and Scripting
Hi guys,
I have a text file with lots of lines like this:
MCOGT23R27815 27/07/07 27/05/09
SO733AM0235 30/11/07 30/11/10
NL123403N 04/03/08 04/03/11
0747AM7474 04/04/08 04/04/11
I want to change each line so the date format looks like this:
MCOGT23R27815 07/07/27 09/05/27 ... (7 Replies)
Discussion started by: Tornado
7 Replies
6. Shell Programming and Scripting
Hi,
using a shell script to get values from a CSV
eg:
12345.67,5678990.89,76232882.90
12345,5678990.89,76232882
Need the format of these numbers to change to
12,345.67:5,678,990.89:76,232,882.90
12,345:5678990.89:76232882
Using nawk on solaris, to parse these values, need the... (10 Replies)
Discussion started by: pgop
10 Replies
7. Shell Programming and Scripting
Hi All,
this is my second post, last post reply was very helpful.
I have a data that has date in DD/MM/YYYY (07/11/2008) format i want to replace the backslash by a dot(.) so that my awk script can read it inside the C shell script that i have written.
i want to change 07/11/2008 to... (3 Replies)
Discussion started by: asirohi
3 Replies
8. Shell Programming and Scripting
I have about 300 files which has the function getDBBackend().
How to write a program to change the empty function from the old format to the new format?
Old empty function format are either:
function getDBBackend()
{
// Not available
} // getDBBackend
or:
function... (0 Replies)
Discussion started by: powah
0 Replies