Search Results

Search: Posts Made By: zhshqzyc
Forum: Red Hat 11-27-2013
1,387
Posted By zhshqzyc
Access Linux server from windows
I can access the linux server in my company from my desktop windows explorer. I guess samba is working.

Please see the images.
http://imageshack.us/a/img854/7106/9yvl.png
I have a few questions....
3,461
Posted By zhshqzyc
Grep and ls
Q: Use ls -l and grep to find all the files in the directory /etc that were last modified in 2008(hint: search "2008"). Send this list to s6.

My script:
grep "2008" /etc |ls - l >s6
Thanks for...
2,769
Posted By zhshqzyc
I heard about WinScp, but I have no idea of...
I heard about WinScp, but I have no idea of private key file. I don't have it.


http://img69.imageshack.us/img69/5508/capturetim.png
2,769
Posted By zhshqzyc
Can you recommend a scp tools?
Can you recommend a scp tools?
2,769
Posted By zhshqzyc
Access UNIX server based on windows
I want to look up log files on the unix server. My machine is windows 7 pro.
I can view them from windows explorer but it is slow because huge amount logs files there.

Is there a way or tools to...
1,683
Posted By zhshqzyc
loop through 1 to 22
Hi I have a command:

awk '/^@chr1$/,/^+$/' consensus.fastq | perl -pe "s/@/>/ ; s/\\+//" > chr1.fasta
This for chr 1, now I want to loop from chr1 to chr 22.
Then
#!/bin/bash...
1,592
Posted By zhshqzyc
Entire section until meeting >chr
Entire section until meeting >chr
1,592
Posted By zhshqzyc
I just found that in my file there are some other...
I just found that in my file there are some other lines beginning with
>DDD]]] or other wild chars
Anyway I want to exclude these. Only for beginning with
>chr
How to
2,975
Posted By zhshqzyc
Transpose a text file.
Hello,
I have a text file which is like a matrix m rows and n columns. Now I want to convert it into n rows and m columns.

Thanks for hint.
1,592
Posted By zhshqzyc
Split one file into many
Hello, I have one huge file(20GB maybe). The format likes
>chr1
AGCTTCACTTACTAGATCATGTCA
AGTCGTCATGTTTATTTTAACCAC
....
>chr2
gGCTTCACTTACTAGATCATGTCA
TGTCGTCATGTTTATTTTAACCAC
....
>chr23...
985
Posted By zhshqzyc
In the original command, it is a single quote,...
In the original command, it is a single quote, 'chr1' instead of "chr1".
What I used:
for((i=1;i<=23;i++))
do
...
done
Does your code work?
985
Posted By zhshqzyc
loop 1 to 23
Hello, I have a command which likes
application input.txt 'chr1' | awk '{print $3, $4, $10;}' >chr1.txt
I want to loop it from 1 to 23, need for loop command.
for example
application input.txt...
1,572
Posted By zhshqzyc
Thanks. I want to mark ir as resloved but not...
Thanks. I want to mark ir as resloved but not sure how.
1,572
Posted By zhshqzyc
Merge files
Hello,

I have a application software plink. It can merge files with some kinds of way.
The command likes:
plink --file 1 --merge 2 --recode --out merged

That means merge file 1 and 2 then...
3,120
Posted By zhshqzyc
Linux: Fedora
Linux: Fedora
3,120
Posted By zhshqzyc
Pass two parameters
Hi I have a batch file aaa.exe which needs two input parameters:
Usually the command's format likes
aaa 555 10000
But I want to use parameters to do it.
aaa $1 $2
These two parameters come from...
Forum: Linux 05-27-2011
1,803
Posted By zhshqzyc
Monitor memory
Suppose our application limit use for up to 20GB of data. How to monitor the usage?

Do we need to consider swap?

Thanks.
3,785
Posted By zhshqzyc
No guarantee that the duplicate lines are...
No guarantee that the duplicate lines are clustered and I worry the memory.
Can we use uniq command?
3,785
Posted By zhshqzyc
Remove duplicate lines
Hi, I have a huge file which is about 50GB. There are many lines. The file format likes
21 rs885550 0 9887804 C C T C C C C C C C
21 rs210498 0 9928860 0 0 C C 0 0 0 0 0 0
21 rs303304 0 9941889 A...
3,223
Posted By zhshqzyc
Incorrect, the output file size is always jumping...
Incorrect, the output file size is always jumping between 0kb and 1kb
It looks the bottom line overwritesd the previous line. Only one line in the file.
3,223
Posted By zhshqzyc
awk syntax
Hi I have a bash file which will split a big file to many small files.
But I got a syntax error.H="$(head -1 CCC.tped)"
awk 'print $0 > $1 ".tped"' CCC.tped
for f in $(ls *.tped); do echo "$H\n"...
1,480
Posted By zhshqzyc
list files
Use [] brackets to list all the files in /usr/bin with names starting with a,b or c.
My code:
ls ^[abc].* /usr/bin
What is wrong?
5,013
Posted By zhshqzyc
No, it is not my homework. It is a bash practice...
No, it is not my homework. It is a bash practice problem from
Bash Guide for Beginners (http://tille.garrels.be/training/bash/)
I am using Linux fedora 14. I just want to improve myself.

Thanks....
5,013
Posted By zhshqzyc
setting and displaying variables
Hello, I need a little help.
1. Edit /etc/profile so that all users are greeted upon login.
2. For the root account, set the prompt to something like "Danger!! root is doing stuff in \w",...
7,189
Posted By zhshqzyc
hashed commands
How to display hashed commands for your current shell session?

Thanks.
Showing results 1 to 25 of 65

 
All times are GMT -4. The time now is 08:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy