10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear Guru's
I'm using Putty and want to edit a file. I know we generally use vi editor to do it. As I'm not good in using vi editor, I want to convert the vi into something like text pad. Is there any option in Putty to do the same ? Thanks for your response.
Srini (6 Replies)
Discussion started by: thummi9090
6 Replies
2. Shell Programming and Scripting
i have data in 3 columns in the format below
2011-11-01-0936,2115,978
2011-11-01-0937,2242,1046
2011-11-01-0938,2538,1186
2011-11-01-0939,2295,1074
2011-11-01-0940,2454,1142
2011-11-01-0941,2545,1184
2011-11-01-0942,2491,1153
I however want to either remove the date on the timestamp and... (2 Replies)
Discussion started by: thinktank
2 Replies
3. Shell Programming and Scripting
Hi,
I have a folder that contains many (multiple) files
1.fasta
2.fasta
3.fasta
4.fasta
5.fasta
.
.
100's of files
Each such file have data in the following format
for example:
vi 1.fasta
58 390
A
GTATACATTATTGATGAAGTCCACATGCTTTCTATGGGTGCCTTCAATGCGCTTTTAAAA (7 Replies)
Discussion started by: Lucky Ali
7 Replies
4. Shell Programming and Scripting
I have a script with 100's of lines in it. I want to edit the script with out manually openning it (with vi editor or some thing like that). Basically I want to do a substitution using regular expression (%s/G_/28_/i). Please let me know the best way to do this. (4 Replies)
Discussion started by: Lucky Ali
4 Replies
5. UNIX for Dummies Questions & Answers
Hello all, I need some help with sed. seems like i cant get through it. So here is what i am trying. when i do ps -ef|grep bla blah ...like below...i get /u01/app/oracle/11g/bin/tnslsnr .... but i want to replace that string with something using sed. So basically i want to get rid of... (3 Replies)
Discussion started by: abdul.irfan2
3 Replies
6. Shell Programming and Scripting
Hi,
I have a folder that contains many (multiple) files
1.fasta
2.fasta
3.fasta
4.fasta
5.fasta
.
.
100's of files
Each such file have data in the following format
for example:
vi 1.fasta
>AB_1 200bp
MLKKPIIIGVTGGSGGGKTSVSRAILDSFPNARIAMIQHDSYYKDQSHMSFEERVKTNYDHPLAFDTDFM... (4 Replies)
Discussion started by: Lucky Ali
4 Replies
7. UNIX for Dummies Questions & Answers
I use usermod -g dave devgroup, I can edit files under group devgroup, but when I check the /etc/group file, my name is not listed with devgroup.
Do I have to reload the /etc/group file or something for the changes to be apparent? (3 Replies)
Discussion started by: dhinge
3 Replies
8. UNIX and Linux Applications
Hello,
We use BRU to back up the UNIX machines on our network. We need to tell BRU NOT to backup a director, call it directory1, on a particular machine.
I have been told that a modification needs to be made to BRUTAB on that machine. If this is the case, what do I need to do? if it is not,... (0 Replies)
Discussion started by: mojoman
0 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I am new to UNIX. I have a text file where each line ends on the hexadecimal character "0A". In the file there are some records that contain the Hex characters "0D0A" which I need to replace by Hex "20".
Is there a simple way to do this?
Regards,
Swanie (3 Replies)
Discussion started by: Swanie
3 Replies
10. Shell Programming and Scripting
Hi,
I am in a situation wherein am getting file file certailn values
suppose
1u56979hhghhklklkkkjkjkjk 0 0 0
The file will have values like above only.
I need to add another field of NULL value(of length 9) at the end of first column i.e.
It should like this after editing:... (4 Replies)
Discussion started by: rahul303
4 Replies
ATA_SLAVE_LINK_INIT(9) libata Library ATA_SLAVE_LINK_INIT(9)
NAME
ata_slave_link_init - initialize slave link
SYNOPSIS
int ata_slave_link_init(struct ata_port * ap);
ARGUMENTS
ap
port to initialize slave link for
DESCRIPTION
Create and initialize slave link for ap. This enables slave link handling on the port.
In libata, a port contains links and a link contains devices. There is single host link but if a PMP is attached to it, there can be
multiple fan-out links. On SATA, there's usually a single device connected to a link but PATA and SATA controllers emulating TF based
interface can have two - master and slave.
However, there are a few controllers which don't fit into this abstraction too well - SATA controllers which emulate TF interface with both
master and slave devices but also have separate SCR register sets for each device. These controllers need separate links for physical link
handling (e.g. onlineness, link speed) but should be treated like a traditional M/S controller for everything else (e.g. command issue,
softreset).
slave_link is libata's way of handling this class of controllers without impacting core layer too much. For anything other than physical
link handling, the default host link is used for both master and slave. For physical link handling, separate ap->slave_link is used. All
dirty details are implemented inside libata core layer. From LLD's POV, the only difference is that prereset, hardreset and postreset are
called once more for the slave link, so the reset sequence looks like the following.
prereset(M) -> prereset(S) -> hardreset(M) -> hardreset(S) -> softreset(M) -> postreset(M) -> postreset(S)
Note that softreset is called only for the master. Softreset resets both M/S by definition, so SRST on master should handle both (the
standard method will work just fine).
LOCKING
Should be called before host is registered.
RETURNS
0 on success, -errno on failure.
AUTHOR
Jeff Garzik
Author.
COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 ATA_SLAVE_LINK_INIT(9)