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 have a folder that contains many sub folders and files. This tree has to be backed up to an archive system. According to the tech support, one of the archives is failing to back up due to the possibility of trailing spaces on file and folder names. Therefore, I would like to have a script... (16 Replies)
Discussion started by: vipertech
3. Shell Programming and Scripting
I have some strings such as
They will only have letters and numbers. In each case I want to remove the last digit? The lengths will vary. So a hard coded substr won't work. What do I do?
if it doesn't end in a number, I don't want to remove any characters. (6 Replies)
Discussion started by: guessingo
4. Shell Programming and Scripting
Platform : RHEL 5.8
I want to end each line of this file with a single quote.
$ cat hello.txt
snoopyAt VI editor's command mode, I have used the following command to replace the last character with a single quote.
:%s/$/'/gNow, the lines in the... (10 Replies)
Discussion started by: John K
5. Shell Programming and Scripting
I have file1.txt as below
expected output :
152494~~-0.49~201207... (9 Replies)
Discussion started by: i150371485
6. Shell Programming and Scripting
Hi I have a simple request but can't find the answer. I want to remove trailing zeros, and in some cases the fullstops, from the input data. Example of input file:
Desired output file would be:
... (10 Replies)
Discussion started by: theflamingmoe
7. Shell Programming and Scripting
I have a string "disk0 with a trailing white space after it" but I want to get rid of this white space from right to left so that I am left with "disk0" only.
Using sed 's/ $//g' doesn't seem to work
Any ideas ?
Thanks (5 Replies)
Discussion started by: cillmor
8. Shell Programming and Scripting
Hello, I am trying to write a script that will calculate the amount of data remaining in a storage volume. I'm running Tru64 Unix version 5.1B patch kit 6. The script is being run against an AdvFS domain. I am programming in Korn Shell version M-11/16/88f.
The basic idea is that I want to run df... (3 Replies)
Discussion started by: Heathe_Kyle
9. UNIX for Dummies Questions & Answers
I have a file like this
(ADD_MONTHS((Substr(Trim(BOTH FROM Translate(Maximum(closeDa
I have a requirement where i need just the date.
When i do: tail -1... (2 Replies)
Discussion started by: mahek_bedi
10. Shell Programming and Scripting
Not sure why this thread was closed without any explanation, but you can do what you're asking with sed 's/]*$//g' < sourceFile > destFile (1 Reply)
Discussion started by: oombera