10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have this fastq file:
@M04961:22:000000000-B5VGJ:1:1101:9280:7106 1:N:0:86
GGGGGGGGGGGGCATGAAAACATACAAACCGTCTTTCCAGAAATTGTTCCAAGTATCGGCAACAGCTTTATCAATACCATGAAAAATATCAACCACACCA
+test-1
GGGGGGGGGGGGGGGGGCCGGGGGFF,EDFFGEDFG,@DGGCGGEGGG7DCGGGF68CGFFFGGGG@CGDGFFDFEFEFF:30CGAFFDFEFF8CAF;;8... (10 Replies)
Discussion started by: Xterra
10 Replies
2. Shell Programming and Scripting
I want to swap hyphen (-) and underscore (_) in a string. In fact only one will be present. So if it is hyphen I want to make it underscore and if it is underscore I want to make it hyphen.
I can write a long code like below. Is there any easy way?
#!/bin/ksh
typeset -i exists... (3 Replies)
Discussion started by: Soham
3 Replies
3. UNIX for Dummies Questions & Answers
Hi all,
I am trying to write a script for renaming some files and I can't understand how to replace a set of characters between delimiters with sed.
The current filename is:
<ID1>_<ID2>_<DATE>_<ID3>.PDF
And I need to get the following:
<ID1>_<ID2>_<DATE>_X01<ID2>.PDF
I have tried the... (5 Replies)
Discussion started by: bartleby
5 Replies
4. Shell Programming and Scripting
Hello Folks..
I need your help ..
here the example of my problem..i know its easy..i don't all the commands in unix to do this especiallly sed...here my string..
dwc2_dfg_ajja_dfhhj_vw_dec2_dfgh_dwq
desired output is..
dwc2_dfg_ajja_dfhhj
it's a simple task with tail... (5 Replies)
Discussion started by: victor369
5 Replies
5. Shell Programming and Scripting
Hi Everyone,
I have a.txt
12341" <sip:191@vo.my>;asdf=q"
116aaaa<sip:00091@vo.my>;penguin
would like to get the output
191
00091
Please advice.
Thanks (4 Replies)
Discussion started by: jimmy_y
4 Replies
6. Shell Programming and Scripting
Hi there, I have some user input in a variable called $VAR, and i need to ensure that the string is 5 or less characters .... does anybody know how i can count the characters in the variables ?
any help would be great, cheers (2 Replies)
Discussion started by: rethink
2 Replies
7. Shell Programming and Scripting
Hi.
for the following line:
Var1=${Array}
now Array has text as "{hello there}"
how do I remove the {} brackets before assigning the string to Var1?
Thanks. (3 Replies)
Discussion started by: shadow_boi
3 Replies
8. Shell Programming and Scripting
Hi,
In principle I am searching for a Perl equivalent for this sed command:
sed "/TIM_AM_ARGS=/ s/60/1440/" $EDIT_FILE > $TEMP_FILE
cp $TEMP_FILE $EDIT_FILE
I was wondering if it needs to be like this, or that there other, shorter, alternatives:
open (TIMENVFILE, "<$timenvfile") or die... (5 Replies)
Discussion started by: ejdv
5 Replies
9. UNIX for Advanced & Expert Users
Hi,
I have a requirement like this.
String=abcdefghijkl
I need to split this string into a substrign each 3 characters and write output into a file.
Output:
abc
def
ghi
jkl
Can any one please help me how can i acheive this
Thanks (3 Replies)
Discussion started by: ukatru
3 Replies
10. Shell Programming and Scripting
Hello everyone,
I'm writing a script to add a string to an XML file, right after a specified string that only occurs once in the file. For testing purposes I created a file 'testfile' that looks like this:
1
2
3
4
5
6
6
7
8
9
And this is the script as far as I've managed:
... (2 Replies)
Discussion started by: heliode
2 Replies