10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to split a tab-delimeted file using awk after the second _ in bold. The awk below is close but splits on the first _, and I am not sure how to use the second _. Thank you :).
file
chr1 92145889 92149424 NM_001195684_exon_0_10_chr1_92145900_r 0 -
chr1 92161218 ... (4 Replies)
Discussion started by: cmccabe
4 Replies
2. Shell Programming and Scripting
Hi All
I have a filename like below
adsf_ghjt_kop_pol.csv
Can you please get me a command for counting the number of underscore in the filename.
In the above filename I should get output as 3, since the file name is having three underscore (5 Replies)
Discussion started by: ginrkf
5 Replies
3. HP-UX
Hello,
I have spent a couple of hours trying to answer this myself, so forgive me if the answer is simple but I have tried.
I have a text file generated from svn log output which contains a list of files.
Two regexps im using are
*
and
*
They both work but some lines has a mixture... (7 Replies)
Discussion started by: YogaBija
7 Replies
4. Shell Programming and Scripting
Hello Friends,
I would appreciate so much if you could explain how the underscores works at the following code? Sorry if it sounds a bit novice question.
awk -F',' 'NR==FNR{_=1;next}!_{print}' exclude infile
KR,
Eagle (6 Replies)
Discussion started by: EAGL€
6 Replies
5. Shell Programming and Scripting
Hi,
I have been trying to change underscores to dots.
For example:
1122_91 1022_233 .
2237_23 9382_2339 2998_234
345_257 . .
Desired output:
1122.91 1022.233 .
2237.23 9382.2339 2998.234
345.257 . .
Any idea?
Thanks (4 Replies)
Discussion started by: iconig
4 Replies
6. Shell Programming and Scripting
Hi all,
I have to insert underscore at certain places(places before and after PAxxx/PAxxxx entries in a big file like this
ESR1 PA156 leflunomide PA450192
CHST3 PA26503 docetaxel tungstate Pa4586; thalidomide Pa34958;
PAxxx/PAxxxx entries are metioned between 2 names in each row
... (4 Replies)
Discussion started by: manigrover
4 Replies
7. Shell Programming and Scripting
Hi Everyone,
I am looking for a command that would do the following:
1) Change all the letters/words in a file to Lower case Letters/words.
2) Remove the Underscore (_) and Change the Character after the underscore (_) to an Uppercase letter.
Example:
File contains the below words:
... (5 Replies)
Discussion started by: filter
5 Replies
8. UNIX for Advanced & Expert Users
How does adding an underscore change a google search? I was searching for John Elway and got different results with and without an unscore. (3 Replies)
Discussion started by: cokedude
3 Replies
9. Shell Programming and Scripting
I am taking an user input which should only be an alphanumeric character or an underscore. How to i do it? (2 Replies)
Discussion started by: vickylife
2 Replies
10. Shell Programming and Scripting
Hi what is the purpose of using underscore in awk. I suppose it is for defining macro's and reducing repeatation but can some one show me an example? (6 Replies)
Discussion started by: ahmedwaseem2000
6 Replies