Sponsored Content
Top Forums Shell Programming and Scripting How to get a third line in shell?? Post 302761489 by Jotne on Friday 25th of January 2013 04:58:06 PM
Old 01-25-2013
Its still not clear. How do you know sofa is the world you like?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell script to count number of ~ from each line and compare with next line

Hi, I have created one shell script in which it will count number of "~" tilda charactors from each line of the file.But the problem is that i need to count each line count individually, that means. if line one contains 14 "~"s and line two contains 15 "~"s then it should give an error msg.each... (3 Replies)
Discussion started by: Ganesh Khandare
3 Replies

2. Shell Programming and Scripting

get the fifth line of a text file into a shell script and trim the line to extract a WORD

FOLKS , i have a text file that is generated automatically of an another korn shell script, i want to bring in the fifth line of the text file in to my korn shell script and look for a particular word in the line . Can you all share some thoughts on this one. thanks... Venu (3 Replies)
Discussion started by: venu
3 Replies

3. Shell Programming and Scripting

Shell script to read a text file line by line & process it...

Hi , I am trying to write an shell, which reads a text file (from a location) having a list of numbers of strictly 5 digits only ex: 33144 Now my script will check : 1) that each entry is only 5 digits & numeric only, no alphabets, & its not empty. 2)then it executes a shell script called... (8 Replies)
Discussion started by: new_to_shell
8 Replies

4. Shell Programming and Scripting

linux shell script to take variables from two different files line by line

Friends I need to have a shell script which will feed variables from two different files line-by-line. For example, I have two files - permission and file_name. Contents of permission is - 644 755 .... contents of file_name /file1 /file2 ..... Now I want 644 permission will be... (4 Replies)
Discussion started by: atanubanerji
4 Replies

5. Shell Programming and Scripting

Print pipe separated list as line by line in Korn Shell

Korn Shell in AIX 6.1 I want to print the below shown pipe (|) separated list line by line. line=es349889|nhb882309|ts00293|snh03524|bg578835|bg37900|rnh00297|py882201|sg175883 for i in line do echo "Hello $line " done I wanted to execute the above for loop. But i can't even set the... (3 Replies)
Discussion started by: polavan
3 Replies

6. Shell Programming and Scripting

PERL or SHELL Scrript to search in Directories by taking line by line from a text file

Unix box server version *********** >uname -r B.11.00 >echo $SHELL /usr/bin/ksh --> in this server, I have the path like /IMbuild/dev/im0serv1 ---> in that directory I have the folders startup(.jsp files nearly 100 jsp's ) and scripts(contains .js files nearly 100 files) ... (9 Replies)
Discussion started by: pasam
9 Replies

7. Shell Programming and Scripting

Shell script to read multiple options from file, line by line

Hi all I have spent half a day trying to create a shell script which reads a configuration file on a line by line basis. The idea of the file is that each will contain server information, such as IP address and various port numbers. The line could also be blank (The file is user created). Here... (1 Reply)
Discussion started by: haggismn
1 Replies

8. Shell Programming and Scripting

HELP: Shell Script to read a Log file line by line and extract Info based on KEYWORDS matching

I have a LOG file which looks like this Import started at: Mon Jul 23 02:13:01 EDT 2012 Initialization completed in 2.146 seconds. -------------------------------------------------------------------------------- -- Import summary for Import item: PolicyInformation... (8 Replies)
Discussion started by: biztank
8 Replies

9. Shell Programming and Scripting

How to read a two files, line by line in UNIX script and how to assign shell variable to awk ..?

Input are file and file1 file contains store.bal product.bal category.bal admin.bal file1 contains flip.store.bal ::FFFF:BADC:CD28,::FFFF:558E:11C5,6,8,2,1,::FFFF:81C8:CA8B,::FFFF:BADC:CD28,1,0,0,0,::FFFF:81C8:11C5,2,1,0,0,::FFFF:81DC:3111,1,0,1,0 store.bal.... (2 Replies)
Discussion started by: veeruasu
2 Replies

10. Shell Programming and Scripting

Shell script UNIX to read text file line by line

i have a text file as belows, it includes 2 columns, 1st is the column name, 2nd is the file_name data_file.txt column_name file_name col1 file1 col2 file2 col3 file1 col4 file1 col5 file2 now, i would like to... (4 Replies)
Discussion started by: tester111
4 Replies
GLOBAL LIBRARY 
STATE(3) SLV2 GLOBAL LIBRARY STATE(3) NAME
Global_library_state - The 'world' represents all library state, and the data found in bundles' manifest.ttl (ie it is an in-memory index of all things LV2 found). Functions SLV2World slv2_world_new () void slv2_world_free (SLV2World world) void slv2_world_load_all (SLV2World world) void slv2_world_load_bundle (SLV2World world, SLV2Value bundle_uri) SLV2PluginClass slv2_world_get_plugin_class (SLV2World world) SLV2PluginClasses slv2_world_get_plugin_classes (SLV2World world) SLV2Plugins slv2_world_get_all_plugins (SLV2World world) SLV2Plugins slv2_world_get_plugins_by_filter (SLV2World world, bool(*include)(SLV2Plugin)) Detailed Description Plugins (and plugin extensions) and the LV2 specification (and LV2 extensions) itself can be queried from the world for use. Normal hosts which just want to easily load plugins by URI are strongly recommended to simply call slv2_world_load_all to find all installed data in the recommended way. Normal hosts should NOT have to refer to bundles directly under normal circumstances. However, functions are provided to load individual bundles explicitly, intended for hosts which depend on a specific bundle (which is shipped with the application). Function Documentation SLV2World slv2_world_new () Initialize a new, empty world. If initialization fails, NULL is returned. SLV2World slv2_world_new_using_rdf_world (librdf_world * world) Initialize a new, empty world, using an existing Redland context. void slv2_world_free (SLV2World world) Destroy the world, mwahaha. NB: Destroying the world will leave dangling references in any plugin lists, plugins, etc. Do not destroy the world until you are finished with all objects that came from it. void slv2_world_load_all (SLV2World world) Load all installed LV2 bundles on the system. This is the recommended way for hosts to load LV2 data. It does the most reasonable thing to find all installed plugins, extensions, etc. on the system. The environment variable LV2_PATH may be used to set the directories inside which this function will look for bundles. Otherwise a sensible, standard default will be used. Use of other functions for loading bundles is highly discouraged without a special reason to do so - use this one. Time = Query void slv2_world_load_bundle (SLV2World world, SLV2Value bundle_uri) Load a specific bundle. o bundle_uri A fully qualified URI to the bundle directory, with the trailing slash, eg. file:///usr/lib/lv2/someBundle/ Normal hosts should not use this function. Hosts should never attach any long-term significance to bundle paths as there are no guarantees they will remain consistent whatsoever. Plugins (and other things) are identified by URIs, not bundle or file names. This function should only be used by apps which ship with a special bundle (which it knows exists at some path because the bundle is shipped with the application). Time = Query SLV2PluginClass slv2_world_get_plugin_class (SLV2World world) Get the parent of all other plugin classes, lv2:Plugin. Time = O(1) SLV2PluginClasses slv2_world_get_plugin_classes (SLV2World world) Return a list of all found plugin classes. Returned list is owned by world and must not be freed by the caller. Time = O(1) SLV2Plugins slv2_world_get_all_plugins (SLV2World world) Return a list of all found plugins. The returned list contains just enough references to query or instantiate plugins. The data for a particular plugin will not be loaded into memory until a call to an slv2_plugin_* function results in a query (at which time the data is cached with the SLV2Plugin so future queries are very fast). Returned list must be freed by user with slv2_plugins_free. The contained plugins are owned by world and must not be freed by caller. Time = O(1) SLV2Plugins slv2_world_get_plugins_by_filter (SLV2World world, bool(*)(SLV2Plugin) include) Return a list of found plugins filtered by a user-defined filter function. All plugins currently found in world that return true when passed to include (a pointer to a function which takes an SLV2Plugin and returns a bool) will be in the returned list. Returned list must be freed by user with slv2_plugins_free. The contained plugins are owned by world and must not be freed by caller. Time = O(n * Time(include)) Author Generated automatically by Doxygen for SLV2 from the source code. Version 0.6.6 2 Apr 2009 GLOBAL LIBRARY STATE(3)
All times are GMT -4. The time now is 11:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy