10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello there
I'd like to make a copy of 2nd column and have it printed in place of column 1. Remaining columns are needed as it.
test data:
ProbeSet GeneSymbol X22565285 X22566285
ILMN_1050008 MYOCD 6.577 7.395
ILMN_1050014 GPRC6A 6.595 6.668
ILMN_1050017 ... (2 Replies)
Discussion started by: genome
2 Replies
2. Shell Programming and Scripting
Hi All,
I am having a text file like below
ERROR - Not a valid
ID : 123
ERROR - Not a valid
hello
ID : 124
SUCCESS - Valid
ID : 12
I need to display like below after reading the file if it finds the error keyword
along with displaying this first line when error pattern... (10 Replies)
Discussion started by: rohit_shinez
10 Replies
3. Shell Programming and Scripting
Want to get the remaining line after pattern match Here it starts - executed commands : - pattern to identify 100:27:500:1:34:END
Required output:100:27:500:1:34:END
awk '{if(/pattern to identify/) print $2}' < file
I have used above code and it not giving... (3 Replies)
Discussion started by: rozee
3 Replies
4. Shell Programming and Scripting
Hi all,
For no particular reason, I would like to use awk on a file that contains multiple columns, but let's say only columns 1 and 2 have some text values, and the remainder of the line contains text that I would like to treat as one column, considering I have spaces as delimiter for the... (33 Replies)
Discussion started by: ppucci
33 Replies
5. Solaris
Hi,
We have 2 unix solaris 10 machines continuously checking each other using ping and rsh commands and I can see many rsh ghosts remaining commands doing ps -ef.
The rsh commands succeed but remain stuck on the system.
Telnet service is stopped, can it be the reason or should we use ssh instead... (2 Replies)
Discussion started by: zionassedo
2 Replies
6. Shell Programming and Scripting
I'm an infrequent user of sed. I searched this and other forums and read quite a bit of the O'Reilly book for an answer without luck.
In my script I want sed to write the remainder of the input file and quit if it matches a pattern.
e.g
/Google/
Does anyone have an answer?
thank. (5 Replies)
Discussion started by: lyledp
5 Replies
7. Shell Programming and Scripting
Hi ,
could any one suggest me that how to determine if the first field is numeric and if it is greater than another number then from that point everything else should be printed using awk.
I have tried this
:
awk -v xxxx=$xxxxx '
BEGIN {
enable=0
}
{
print $1
if ( ( $1 !~ "^*$" ... (5 Replies)
Discussion started by: hitmansilentass
5 Replies
8. Shell Programming and Scripting
I would like to create a script for calculating size and remaining space of a directory automatically every 24 hours, then send an email to report to the admin.
* POSIX and PERL are preferred.
Can anyone help, please? (1 Reply)
Discussion started by: leonall
1 Replies
9. Programming
Does anyone know any C code to get the remaining disk space ? (2 Replies)
Discussion started by: spu230479
2 Replies
10. UNIX for Advanced & Expert Users
DOES ANYONE KNOW IF THERE IS ANY C CODE YOU CAN USE WITHIN UNIX TO FIND THE REMAINING DISK SPACE ON A HARD DRIVE. (4 Replies)
Discussion started by: spu230479
4 Replies