HI
I want to remove white spaces from a line
I have a file like
I need the output like
0
1
2
3
4
.
.
.
15
I feel sed command cannot be used..
I went through the man page of awk command and found
It prints the number of columns but am unable to proceed after this..
Please teach/suggest a way to implement my requirement..
I have a text file containing
/database/sp/NTR_Vlr_Upload.sql
/database/tables/StatsTables.sql
/mib/ntr.mib
/mib/ntr.v2.mib
/scripts/operations/ntr/IMSITracer.ph
i want the last field after "/" removed like
/database/sp/
/database/tables/
/mib/
/mib/ ... (4 Replies)
my script gives 10 outputs continuously..In each output i have to remove the first line in the output.How to do that.
for eg : below is my output
0.00
1.00
5.00
0.00
7.00
i have to remove the first line of this output ie;0.00 (3 Replies)
Hi,
I have 3 lines in a text file that is similar to this (as a result of a diff between 2 files):
35,36d34
< DATA.EVENT.EVENT_ID.s = "3661208"
< DATA.EVENT.EVENT_ID.s = "3661208"
I am trying to get it down to just this:
DATA.EVENT.EVENT_ID.s = "3661208"
How can I do this?... (11 Replies)
I'm appending header and trailer record for a binary file using
echo "$header" > filename
cat oldfilename >> filename
echo "$trailer" >> filename
The echo is introducing newline character after header and trailer.Please let me know is there any possibility to get rid of newline character. (2 Replies)
Hi, I searched the forums but could not find anything that was very useful. I am trying to remove the very last line from a file and display the rest of the file.
Is there a way to use cut and tail together? Any other suggestions? Thanks (8 Replies)
Hi All,
I have a line like this
" field1;field2;field3 " (single space after and before double quotes).
Now i have to remove these single space . Kindly help me.
Thanks in advance (2 Replies)
Hello ,
I got a text file like that with many same line
main/a/antlr/
main/a/apache2/
main/a/app-install-data-ubuntu/
main/a/apparmor/
main/a/apport/
main/a/apport/
main/a/apport/
main/a/apport/
main/a/apr-util/
main/a/apr-util/
main/a/apt/
main/a/apt/
main/a/apturl/the output... (1 Reply)
Hey everyone, I kinda new to shell programming and learning bits and pieces of stuff from tutorials.
I got this problem, where I asked my user to enter a string, which will delete a specific line in the string, which I'm unable to do it.
Text file(BookDB.txt) as shown:
Three Little... (4 Replies)
So, I've been working on a project which takes layer 7 metadata from pcap dumps and archives it. However, there is a lot of dataless information that I don't want in my output. I know of ways to produce the output I want from the input file below, but I want a method of doing this, regardless of... (2 Replies)