10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I have a filename that looks like this:
ABC_96_20141031_041133.232468
I need to shorten only the "_2014" part of the filename to simply "_14" so the filename looks like:
ABC_96_141031_041133.232468
I have to do a search for this string because there are hundreds of files and... (17 Replies)
Discussion started by: bbbngowc
17 Replies
2. Shell Programming and Scripting
I have modified the .bashrc. The problem is that when I write a long command,
it does not write on the next line but continues to write on the same line.
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for... (1 Reply)
Discussion started by: kristinu
1 Replies
3. Shell Programming and Scripting
I have a script that currently runs fine and I need to add or || (or) condition to the if statement and I'm not sure the exact syntax as it relates to the use of brackets.
my current script starts like this:
errLog="/usr/local/website-logs/error.log"
apacheRestart="service httpd restart"... (3 Replies)
Discussion started by: jjj0923
3 Replies
4. UNIX for Dummies Questions & Answers
I have a FASTA file with thousands of sequences that looks something like this:
I need to modfy the header in such way that everything after the dot is remove. Thus, I will end up with something like this:
Thanks (1 Reply)
Discussion started by: Xterra
1 Replies
5. Shell Programming and Scripting
Hi,
I am having trouble modifying this line. It is because there is a space that I dont know how to deal with.
So the file looks like this
>YM4911-Contig4
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
>YM4915-Contig5
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
There are two spaces between contig#... (6 Replies)
Discussion started by: phil_heath
6 Replies
6. IP Networking
Hi,
HP-UX 11iV2, but it's probably universal (tcp/ip)
I have a production and a test server. The test server gets the application updated nightly from the production server software. The application accesses a set of process servers on a separate subnet (192.163.22.30,31,32), but reachable... (1 Reply)
Discussion started by: monroedoug
1 Replies
7. Shell Programming and Scripting
hi ,
I have a javascript file like this:
function fnValidateId(){
var array_id = new Array("444","7888","6633","555","146562","3333","33332")
var tmp_id = document.form1.id.value;
var num=0;
while(1)
{
if(tmp_id ==... (9 Replies)
Discussion started by: Sreejith_VK
9 Replies
8. UNIX for Dummies Questions & Answers
Hi all, how do i modify a variable's value.
var1='abcd efgh ijkl mnop abcd'
how do i get var2 from var1
var2=$(......)
$echo var2
abcd efgh ijkl mnop
i.e. i have removed a duplicate occurence.
or in general how to modify a varible.
thanks in advance (6 Replies)
Discussion started by: kartikkumar84@g
6 Replies
9. Shell Programming and Scripting
Hi,
I have a file which has data kind of like this.
Apr 13 08:20:38 uslis10a sendmail: m3DDKSx3006432: usliss26.ca.com
Apr 13 08:20:38 uslis10b sendmail: m3DDKSoK006433: usliss26.ca.com
Apr 13 08:20:38 uslis10b sendmail: m3DDKcSo006442: usliss26.ca.com
Apr 13 08:20:38 uslis10c... (2 Replies)
Discussion started by: eamani_sun
2 Replies
10. Shell Programming and Scripting
Hello,
I have installed a new program called chimera under the directory /usr/local/bin/chimera.
the executable is under the directory /usr/local/bin/chimera/bin/chimera.e
If i put myself under the latest directiry and I type ./chimera, the program works.
I would like to avoid this and I... (1 Reply)
Discussion started by: nico-hellas
1 Replies