10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to remove $1 along with the blank values from the file. Thank you :).
file
R_Index Chr Start End Ref Alt Func.IDP.refGene Gene.IDP.refGene GeneDetail.IDP.refGene Inheritence ExonicFunc.IDP.refGene AAChange.IDP.refGene avsnp147 PopFreqMax ... (5 Replies)
Discussion started by: cmccabe
5 Replies
2. Shell Programming and Scripting
Hi Freinds,
I have file1.txt as below
file1.txt
1521894~~-0.400~201207
1521794~~-0.486~201207
152494~~-0.490~201207
152154894~~-0.490~201207
1521894354~~-0.489~201207
expected output :
1521894~~-0.4~201207
1521794~~-0.486~201207
152494~~-0.49~201207... (9 Replies)
Discussion started by: i150371485
9 Replies
3. 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:
FR002_15.000_20.000
SD475_5.000_10.500
FG5647_12.250_15.500
BH2463_30.555_32.000
Desired output file would be:
... (10 Replies)
Discussion started by: theflamingmoe
10 Replies
4. Shell Programming and Scripting
Does anyone know of a way with C Shell that will work on both Linux and Sun to clear all leading and trailing blanks from a previously specified string? I am using the following code to replace blanks with underscores:
set Company = `echo $Company | sed 's/ /_/g
but I don't want any... (1 Reply)
Discussion started by: phudgens
1 Replies
5. Shell Programming and Scripting
Hi,
I have data as below
And I want output as
Thanks (5 Replies)
Discussion started by: Anjan1
5 Replies
6. 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
7. Shell Programming and Scripting
Hi all,
I need to prune a var's content as follows:
VAR='blah blah # seew seew'
NEWVAR='blah blah'
(without blanks)
I need also to perform this change by using variable substitution within bash shell. I've tried it with the following subst:
VAR2=${VAR/ \#*/}
but the... (7 Replies)
Discussion started by: yomaya
7 Replies
8. Shell Programming and Scripting
how to remove all tabs and newline (\n) from the exicting file (2 Replies)
Discussion started by: pvr_satya
2 Replies
9. 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
3 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I have a file like this
(ADD_MONTHS((Substr(Trim(BOTH FROM Translate(Maximum(closeDa
------------------------------------------------------------
2007-06-30 00:00:00
I have a requirement where i need just the date.
When i do: tail -1... (2 Replies)
Discussion started by: mahek_bedi
2 Replies