to make 1 2 3 into 123


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting to make 1 2 3 into 123
# 1  
Old 10-07-2007
Java to make 1 2 3 into 123

suppose u have a file
ABC ADFA AFAF AGBA AHHAH
AJJA AJKA AJAJ AJAJA AJAJAJ
AHAB AAAJ AJAJA AKK AJAJAA

means gaps have to replaced and see also there will be gaps so output shud be

ABCADFAAFAFAGBAAHHAHAJJAAJKAAJAJAJAJAAJAJAJAHABAAAJJAJAAKKAJAJAA

Thanks
# 2  
Old 10-07-2007
Hi.

See man tr to delete characters, such as spaces and newlines ... cheers, drl
# 3  
Old 10-07-2007
This question was asked and aswered by you a few days ago. This thread is closed.
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to grep a pattern having value greater than 123 in a file?

Hi, I have a dynamically growing ascii file which has large data (both text and digits). I need to grep those lines having value greater than '123'. These numeric values may appear at anywhere in the line, hence I could not use awk to split to columns. So, please help me with the grep regular... (12 Replies)
Discussion started by: royalibrahim
12 Replies

2. Shell Programming and Scripting

Increment ABC-123 by 1!!

in a shell script, i hav a variable declared as "ABC-123". i want to incriment th value ABC-123 by 1 so that the result will be ABC-124. Can anyone suggest a solution in shell scripting.. (4 Replies)
Discussion started by: pgmfourms
4 Replies

3. UNIX for Dummies Questions & Answers

convert 1012345601 to $10,123,456.01

i'd like to convert 1012345601 to $10,123,456.01 via aix. (7 Replies)
Discussion started by: tjmannonline
7 Replies
Login or Register to Ask a Question