Detecting subset of a word


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Detecting subset of a word
# 8  
Old 01-30-2013
The answer was in there. What presentation on output for mixed lines and three+somes? (Detecting can be simpler than presenting!)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Cannot subset ranges from another range set

Ca21chr2_C_albicans_SC5314 2159343 2228327 Ca21chr2_C_albicans_SC5314 636587 638608 Ca21chr2_C_albicans_SC5314 5286 50509 Ca21chr2_C_albicans_SC5314 634021 636276 Ca21chr2_C_albicans_SC5314 1886545 1900975 Ca21chr2_C_albicans_SC5314 610758 613544... (9 Replies)
Discussion started by: cryptodice
9 Replies

2. Shell Programming and Scripting

How to check if file2 is a subset of file1?

In-order to check and print if file2 is a subset of file one i do the below. var1=$(cat //tmp/file1 | sort -u | wc) var2=$(cat /tmp/file2 /tmp/file1 | sort -u | wc) if ; then echo "file2 is a subset of file1 becoz var1 and var2 have the same values." fi However, i get the following error ... (1 Reply)
Discussion started by: mohtashims
1 Replies

3. Shell Programming and Scripting

How-to check if file1 a subset of file2 ?

I need to know if file1 is a subset of file2 i.e all the contents of file1 are present in file2 or not. Here is how i would do it. Read line by line file1 and grep every line in file2 in a for loop. any failing grep would means that it is not a subset. Is there a quicker or easier way... (3 Replies)
Discussion started by: mohtashims
3 Replies

4. UNIX for Advanced & Expert Users

How to extract subset file from dataset?

Hello I have a data set which looks like this : progeny sire dam gender 12 1 3 M 13 2 4 F 14 2 5 F 15 6 5 ... (13 Replies)
Discussion started by: sajmar
13 Replies

5. UNIX for Dummies Questions & Answers

How to subset data?

Hi. I have a large data file. the first column has unique identifiers. I have approximately 5 of these files and they have varying number of columns in their rows. I need to extract ~300 of the rows in to a separate file. I'm not looking for something that would do all 5 files at once, but... (7 Replies)
Discussion started by: kadm
7 Replies

6. Shell Programming and Scripting

Creating subset of compilation errors

I am compiling a fortran program using gfortran and the result looks as below I want to write a bash or awk script that will scan the information and output only problems within a range of line numbers Example: If I specify the file createmodl.f08, start line 1000 and end line 1100, I will... (8 Replies)
Discussion started by: kristinu
8 Replies

7. UNIX for Dummies Questions & Answers

how to get a subset of such a file

Dear all, I have a file lik below: n of row=420, n of letters in each row=100000 like below: there is no space between the letters. what I want is: the 75000th letter to the 85000th letter in each row. how to do that? thanks a lot! ... (2 Replies)
Discussion started by: forevertl
2 Replies

8. UNIX for Dummies Questions & Answers

Find EXACT word in files, just the word: no prefix, no suffix, no 'similar', just the word

I have a file that has the words I want to find in other files (but lets say I just want to find my words in a single file). Those words are IDs, so if my word is ZZZ4, outputs like aaZZZ4, ZZZ4bb, aaZZZ4bb, ZZ4, ZZZ, ZyZ4, ZZZ4.8 (or anything like that) WON'T BE USEFUL. I need the whole word... (6 Replies)
Discussion started by: chicchan
6 Replies

9. UNIX for Dummies Questions & Answers

Help with subset and if-then statements

Hello everyone. I'm new to the boards, I hope I can get and possibly give some help through these forums. I need some help. I have two CSV files, let's call them File A and File B. This is the structure for File A: ID, VAR1, VAR2, VAR3 - VAR50 (where the VAR 1-VAR50 are either 0 or 1) ... (1 Reply)
Discussion started by: JWill
1 Replies

10. Shell Programming and Scripting

How to extract a subset from a huge dataset

Hi, All I have a huge file which has 450G. Its tab-delimited format is as below x1 A 50020 1 x1 B 50021 8 x1 C 50022 9 x1 A 50023 10 x2 D 50024 5 x2 C 50025 7 x2 F 50026 8 x2 N 50027 1 : : Now, I want to extract a subset from this file. In this subset, column 1 is x10, column 2 is... (3 Replies)
Discussion started by: cliffyiu
3 Replies
Login or Register to Ask a Question
stl_scp(4)						     Kernel Interfaces Manual							stl_scp(4)

NAME
stl_scp - Subset control program conventions for the setld utility DESCRIPTION
Each software subset that is distributed for the setld(8) command can have an associated subset control program. These programs perform the application-specific management operations that configure the subset into the system. Because subset control programs must be executed during installation to non-native file hierarchies, they must be written in an architecture-neutral language. Because these programs may also be required to run while the system is in the single-user run state, the interpreter must not use shared libraries. The use of /sbin/sh is strongly recommended. As subsets are installed and deleted, they pass through several system management states. Software is in the NEW state immediately after being extracted from the distribution media and verified. Software in this state is exactly as it was prepared for distribution by the software vendor. The subset control program is responsible for placing the software in the PROTOTYPE state at the request of setld. Software in this state is configured for use at a particular site. All of the software remains sharable but has undergone some level of customization. Software becomes runnable on a particular system and ceases to be sharable after it has been placed in the CONFIGURED state by the subset control program, again at the request of setld. Subset control programs are executed by setld to perform specific requested operations. Before executing a subset control program, setld sets the environment variable ACT to an action value. The subset control program is expected to inspect this variable and any command-line arguments to determine which actions to perform. The action values, the command-line arguments, and the behavior that setld expects are as follows: Configure subset The first command-line argument is a configuration message for the subset. The subset control program can interpret this message as it chooses. There are two reserved subset messages: Perform any management operations required to change the subset from the PROTO- TYPE state to the CONFIGURED state. Subset control programs called to perform this action must assume that the /usr file system is write locked and that the currently visible execution context (contents of /dev/kmem and so forth) is the same as that in which the application will execute. Perform any management operations required to change the subset from the CONFIGURED state to the PROTO- TYPE state. The execution environment is identical to that for C, INSTALL. Menu Request The first argument is one of -l or -x and specifies whether the user is installing or extracting software from the media. Determine if the subset is suitable for presentation to the user in the subset selection menu. If the subset is to be presented, the subset control program should return exit status 0. If the subset is not to be presented, the subset control program should return a nonzero status. Prepare for Deletion The subset is about to be deleted from the system. Perform any management operations required to change the subset from the PROTO- TYPE state to the NEW state. A nonzero return status can be returned to indicate that the subset should not be deleted. Prepare for Load The subset is about to be loaded onto the system. Verify that the system is ready for the subset to loaded from the installation media. A nonzero exit status can be returned to indicate that the subset should not be installed. Post Deletion Cleanup The subset control program should perform any management operations required to return the system to the state that it was in prior to installation of the subset. Post Load Configuration The subset has been loaded from the media and is on the system in the NEW state. The subset control program must change the subset from the NEW state to the PROTOTYPE state. Verify Subset The setld utility checks for the existence of the installed subset. If the subset exists, the setld utility verifies the size and checksum information for each file in the subset. If the subset control program includes any V phase processing, it is executed at this time. The setld utility does not execute subset control processing during the installation process. RELATED INFORMATION
setld(8) Guide to Preparing Product Kits delim off stl_scp(4)