10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all..
I have a text file which looks like below:
abcd
efgh
ijkl
(blank space)
I need to remove only the last (blank space) from the file. When I try wc -l the file name,the number of lines coming is 3 only, however blank space is there in the file.
I have tried options like... (14 Replies)
Discussion started by: Sathya83aa
14 Replies
2. Shell Programming and Scripting
I need to remove ] followed by newline character to convert lines like:
line1]
line2
into:
line1line2 (4 Replies)
Discussion started by: locoroco
4 Replies
3. Shell Programming and Scripting
I want to remove extra spaces from variable in aix script.
We retrieve the data from oracle database and then print the values. We have a value on 90th position.
When we execute the query on sqlplus it shows the length of 90th position as 3, but when we use the same query in aix script it shows... (5 Replies)
Discussion started by: lodhi1978
5 Replies
4. Shell Programming and Scripting
Hi All,
I wanted to know is there any way we can remove white spaces/tabs before & after some pattern { eg. before & after "," }.
Please find below sample data below,
Sat Jul 23 16:10:03 EDT 2011 , 12345678 , PROD , xyz_2345677 , testuuyt , ... (3 Replies)
Discussion started by: gr8_usk
3 Replies
5. Shell Programming and Scripting
hi people;
i have a text, iptables.txt and values are as follows inside: (seperators are TAB)
10.15.2.2 2 40 10.15.3.3 1 10 10.32.2.1 3 40 10.33.6.7 2 50
10.16.3.2 1 60 10.11.3.9 1 20 10.19.2.1 1 80
10.16.9.9 3 20
10.29.7.9 2 90 10.33.2.7 3 40
......
i... (5 Replies)
Discussion started by: gc_sw
5 Replies
6. Shell Programming and Scripting
Hi,
I have input file contains sql queries i need to eliminate newlines from it.
when i open it vi text editor and runs
:%s/'\n/'/g
it provides required result. but when i run sed command from shell prompt it doesn't impact outfile is still same as inputfile.
shell] sed -e... (6 Replies)
Discussion started by: mirfan
6 Replies
7. Shell Programming and Scripting
I was trying to remove tabs from the file using the below command it works when run on command prompt but doesnt works when operated on a file.
echo " New name" | sed -e 's/*//' (7 Replies)
Discussion started by: dinjo_jo
7 Replies
8. Shell Programming and Scripting
Hi All,
I have 5000 records like this
Request_id|Type|Status|Priority|Ticket Submitted Date and Time|Actual Resolved Date and Time|Current Ticket Owner Group|Case final Ticket Owner Group|Customer Severity|Reported Symptom/Request|Component|Hot Topic|Reason for Missed SLA|Current Ticket... (2 Replies)
Discussion started by: j_53933
2 Replies
9. Shell Programming and Scripting
Hi
I need to delete trailing spaces, tabs and unprintable charactes from the file.
This file has a number of blank lines which should be left intact. Another words I am trying to remove the junk at the end of each line. Does anyone come across the similar problem? Thanks a lot for any help -A (3 Replies)
Discussion started by: aoussenko
3 Replies
10. Shell Programming and Scripting
Hello ,
I have the folowing scenario :
I have a text file as follows : (say name.txt)
ABC
DEF
XYZ
And I have one more xml file as follows : (say somexml.xml)
<Name>ABC</Name>
<Age>12</Age>
<Class>D</Class>
<Name>XYZ</Name>
<Age>12</Age>
<Class>D</Class>
<Name>DEF</Name>... (7 Replies)
Discussion started by: shweta_d
7 Replies