10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have simply made a shell script to convert *.csv to *.xml file. Xml file is required for input to one tool. But i am getting space after last field. How can i remove it.
Shell script is as follows :-
echo "Wrong syntax, Databse_update.sh... (6 Replies)
Discussion started by: stillrules
2. Shell Programming and Scripting
I need to read in the string from input file and reform it by cut each segment and check the last segement lenght. If the last segment length is not as expected (see below segment file or table. It is predefined), then pad enough space.
FU22222222CA6666666666AKxvbFMddreeadBP999... (11 Replies)
Discussion started by: menglm
3. UNIX for Dummies Questions & Answers
I need the help from the experts like I have created one file with text like:
a b c de f g hi j k l
So my question is that i have to write the script in which like in the first sentence it will take only one space after d and remove all the extra space in the end.I dont... (0 Replies)
Discussion started by: bhanudhingra
4. Shell Programming and Scripting
i have i/p file as:
change end of line
my require ouput is like:
i wnt to change end of line
==================== (7 Replies)
Discussion started by: RahulJoshi
5. Shell Programming and Scripting
I guess this is very simple....
I want to add a space at the last line in a file.
The space has to be the last charachter on the last line, not at a new line.
Anyone ?? (7 Replies)
Discussion started by: disel
6. Shell Programming and Scripting
Good afternoon! Im new at scripting and Im trying to write a script to
calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
7. UNIX for Advanced & Expert Users
cat file1|while read i
with this command the space in the end of the line not considered
how can solve that
4 (2 Replies)
Discussion started by: Ehab
8. Shell Programming and Scripting
what can I use ??
In vi, I can use :set list <-- and see end of line $.. or use cat -A but I am wondering if there is command or program that allows me to see all the hidden characters( space, tab and etc)
thanks. (3 Replies)
Discussion started by: convenientstore
9. Shell Programming and Scripting
I have a txt file called a.txt which contain over 10,000 records and I would like to remove space before comma or after comma....like below:
The input (for example two record 00001,00002):
00001,client,card limited ,02292,N ,162:41 , 192, ... (6 Replies)
Discussion started by: happyv
10. Shell Programming and Scripting
I have a situation...I have a data file...that has space(an extra row with no data) at the end of file. I am trying to remove that spaces only if the file has a space at the end of file and if there is no space I don't want to do anything.
Can you please help me in this regards.
... (4 Replies)
Discussion started by: rkumar28