Sponsored Content
Top Forums Shell Programming and Scripting shuffle pack of words in line Post 302356753 by Franklin52 on Sunday 27th of September 2009 12:11:10 PM
Old 09-27-2009
This requirement does not seem to bear any significance in the real world.

Is this a homework question?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

seperating the words from a line??

The line is like this +abc+def+mgh+ddsdsd+sa i.e. words seperated by +. There is a plus in the beginning. i want to conver this line to abc, def, mgh, ddsdsd, sa please provide the logic in the form of a shell script Thanks in advance (3 Replies)
Discussion started by: skyineyes
3 Replies

2. Shell Programming and Scripting

how to get line number of different words if exists in same line

I have some txt files. I have to create another text file which contains the portion starting from the format "Date Sex Address" to the end of the file. While using grep -n on Date it also gives me the previous line containg Date. and also Date may be DATE in some files. My file is like this... (10 Replies)
Discussion started by: Amiya Rath
10 Replies

3. Shell Programming and Scripting

print only last two words of a line

can u help me out to print last two words of each sentence of a file. for example. contents of input file: i love songs my favourite songs sent songs all kind good buddy Ouput file should contain: love songs favourite songs sent all kind good buddy (5 Replies)
Discussion started by: pradeepreddy
5 Replies

4. Shell Programming and Scripting

How to print the words in the same line with space or to the predefined line?

HI, cat test abc echo "def" >> test output is cat test abc def the needed output is cat test abc def and so on (5 Replies)
Discussion started by: jobycxa
5 Replies

5. Shell Programming and Scripting

Copying x words from end of line to specific location in same line

Hello all i know it is pretty hard one but you will manage it all after noticing and calculating i find a rhythm for the file i want to edit to copy the last 12 characters in line but the problem is to add after first 25 characters in same line in other way too copy the last 12 characters... (10 Replies)
Discussion started by: princesasa
10 Replies

6. Shell Programming and Scripting

get few words from same line

Hello all i tried awk , cut but i think something missing i have this line @@XYMONDCHK-V1|.acklist.|developer_instead|rendy_google_yagom|1323977582|1323979382|1323979382|1|admin|test case i want cut some words to be in new line like this... (6 Replies)
Discussion started by: mogabr
6 Replies

7. Shell Programming and Scripting

Search words in multiple file line by line

Hi All I have to search servers name say like 1000+ "unique names" line by line in child.txt files in another file that is a master file where all server present say "master.txt",if child.txt's server name matches with master files then it print yes else no with server name. (4 Replies)
Discussion started by: netdbaind
4 Replies

8. Shell Programming and Scripting

Randomized shuffle words on each line

Hi Folks, I have a text file with a thousand lines consisting of words or a group of words separated by commas. I would like to randomize / shuffle the words on each line. Eg; file.txt Linux,Open,Free,Awesome,Best Things in Life,The Greatest Laptop,PC,Tablet,Home Computers,Digital... (2 Replies)
Discussion started by: martinsmith
2 Replies

9. UNIX for Beginners Questions & Answers

Logic shuffle

Hi, Is there any way I can shuffle the numbers randomly. I have been trying to google and I found lots of 'generator' but is it possible to find the background logic to create randomness? Thanks, (3 Replies)
Discussion started by: Indra2011
3 Replies

10. Shell Programming and Scripting

Replace particular words in file based on if finds another words in that line

Hi All, I need one help to replace particular words in file based on if finds another words in that file . i.e. my self is peter@king. i am staying at north sydney. we all are peter@king. How to replace peter to sham if it finds @king in any line of that file. Please help me... (8 Replies)
Discussion started by: Rajib Podder
8 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 01:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy