10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello Folks,
I have a file named as date.dat present at /tmp/abc location which has following data -
20161030,20161031,20161101
I need to remove this line and replace it with something like below -
$param1,$param2,$param3
Param1, Param2 and param3 stores the date based on some calculation in... (1 Reply)
Discussion started by: ektubbe
1 Replies
2. Shell Programming and Scripting
i have to append a text file
grep for a word, if found, put comment in starting of the line.
here is an example
cat test.sh
bin/ksh
Hello World
Test Message
:wq!
search for "bin" word in test.sh file if found comment it out at starting of the line:
Output as follows:
#bin/ksh... (5 Replies)
Discussion started by: raghur77
5 Replies
3. Shell Programming and Scripting
hi, could someone share a short script that would process a .txt file and do the following, for example the text file has this form
0:1.0 1:1.0 2:2.0 3:3.0 4:4.0 5:5.0 6:6.0 7:7.0 8:8.0 ... {newline}
9:9.0 10:10.0 11:11.0 12:12.0 13:13.0 14:14.0 15:15.0 16:16.0 17:17.0 ... {newline}
and I... (3 Replies)
Discussion started by: c_lady
3 Replies
4. Shell Programming and Scripting
Hi friends,
Issue1:
I have a text file with the first line like this
#chrom start end Readcount_A Normalized_Readcount_A ReadcountB Normalized_Readcount_B Fc_A_vs_B pvalue_A_vs_B FDR_A_vs_B Fc_B_vs_A pvalue_B_vs_A FDR_B_vs_A <a href="http://unix.com/">Link</a>
How can I change it to the... (11 Replies)
Discussion started by: jacobs.smith
11 Replies
5. Shell Programming and Scripting
Hi,
I lack the utter fundamentals on how to craft an awk script.
I have hundreds of text files that were mangled by .doc format so all the lines are broken up so I need to join all of the lines of text into a single line. Normally I use vim command "ggVGJ" to join all lines but with so many... (3 Replies)
Discussion started by: n00ti
3 Replies
6. Shell Programming and Scripting
Hello all.
I was wondering if it possible to write a bash script that would do the following:
I perform molecular modelling calculations and the output files are all text files with various different extensions.
For example, I submit the input file "job_name.inp" and when it is done or the... (18 Replies)
Discussion started by: marcozd
18 Replies
7. UNIX for Dummies Questions & Answers
hi,
i need to remove the first column (and dash) from this text file.
Is there any unix command allowing me to do it ?
1-16
2-28
3-16
4-20
5- 8
6-32
7-19
8-16
9-27
10- 7
11-14
12-18
thanks (2 Replies)
Discussion started by: aneuryzma
2 Replies
8. Shell Programming and Scripting
Hello,
I have to add the string "YES" to the end of all records of files in a dir other than the first(header) and the last(trailer) record. viz, the first and the last record in a file has to be identified and exempted from the edit.
I tried an awk script. But there seems to be no direct... (8 Replies)
Discussion started by: rogersed
8 Replies
9. Shell Programming and Scripting
I have a command stream that will parse down an ftp DIR listing of a remote directory and return the name of the newest file that I am interested in. The command is
sed -e '/^d/d' sppay.listing |sed -n -e '/SPPAY/p'|sort -r -k 43M,45 -k 47,48 -k 50,54|sed -n -e '1p'|cut -c 56-99
and what it... (2 Replies)
Discussion started by: beilstwh
2 Replies
10. Shell Programming and Scripting
Hello All,
Can somebody please help me how to accomplish the following :
I have a text file called data.txt that has the following information :
M|88494-998494
M|98jd#0094
M|88394-994049
M|GFG9980#009944
and so on...
I need to replace the value of M to either "S" or "X"... (3 Replies)
Discussion started by: negixx
3 Replies