9 More Discussions You Might Find Interesting
1. What is on Your Mind?
I've always used code tags for code but not for showing terminal input and output. I noticed a mod edited one of my threads and now I'm confused as to proper protocol.
Mike (5 Replies)
Discussion started by: Michael Stora
5 Replies
2. UNIX for Beginners Questions & Answers
If run the below code today its creating all directory and getting output files,I f run same code tomorrow I am getting error.
can any one give suggestion to sortout this error.
OSError: no such file or directory : '062518'My code looks like this
import paramiko
import sys
import os ... (8 Replies)
Discussion started by: haribabu2229
8 Replies
3. UNIX for Beginners Questions & Answers
so i have scripts that are piped and then run through one of the following mechanisms:
cat myscript.sh | sh
cat myscript.pl | perl
what i want to do is, after either of the above commands are run, if the output from the command contains a certain string, i want it to avoid printing... (3 Replies)
Discussion started by: SkySmart
3 Replies
4. Shell Programming and Scripting
Dear all,
I am using sed as an alternative to grep in order to get a specific line from each of multiple files located in the same directory. I am using sed because it prints the lines in the correct order (unlike grep).
When I write sed code that prints out the output I get it correct, but... (1 Reply)
Discussion started by: JaNaJaNa
1 Replies
5. Shell Programming and Scripting
Hello,
I have a much larger data set like the attached example. Is there a code that will output the data to look like? Thank you.
hg19_pseudoYale60_PGOHUM00000245279 chr1:242220709-242223574
hg19_pseudoYale60_PGOHUM00000243857 chr1:120820-133580
hg19_pseudoYale60_PGOHUM00000243858 ... (2 Replies)
Discussion started by: cmccabe
2 Replies
6. Programming
Hi guys,
After compiling a .f90 code and executing it, i get strange characters in the output file like :
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
Are these windows characters? how can i get rid of this?
Much appreciated.
Paul (1 Reply)
Discussion started by: Paul Moghadam
1 Replies
7. Shell Programming and Scripting
Hi, i have the below code that will compare the value from 2 variables:
./wlst.sh JMSmon.py > out.dat
w=`sed -e 's/\(.*!\)\(.*\)\(, Queue.*$\)/\2/' out.dat | awk '/'$1'/{n=0;{print $n}}'|head -n 1`
if
then
x=`sed -e 's/\(.*!\)\(.*\)\(, Queue.*$\)/\2/' out.dat | awk '/'$1'/{n=2;next}n{print... (2 Replies)
Discussion started by: scripter123
2 Replies
8. UNIX for Dummies Questions & Answers
I am back again with one more question,
so I have a phonebook file with names, phone#s
for example: smith, joe 123-456-7890
using awk I want to display all entries with a specific area code. here 's what i have tried so far:
awk '$2~/^123/ {print}' phonebook
I can't figure... (1 Reply)
Discussion started by: Nirav4
1 Replies
9. Shell Programming and Scripting
Hey All,
Quick question...
I'm writing a short script to check if a continuous port is running on a server.
I'm using "ps -ef | grep -v grep | grep processName" and I was wondering if it was better/more reliable to just check the
return code from the command or if its better to pipe to... (12 Replies)
Discussion started by: mrm5102
12 Replies