Sponsored Content
Top Forums Shell Programming and Scripting Readin document & creating path Post 302764181 by balajesuri on Thursday 31st of January 2013 05:11:44 AM
Old 01-31-2013
Code:
#! /bin/bash

while read path
do
    lnNm=${path//\//#}
    lnNm=${lnNm%#}
    ln -s "$path" "/home/Document/Shortcut/$lnNm"
done < file

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Creating alias for directory path

I am trying to create an alias for a frequently used directory path by using alias xyz="/proj/dir_name" and then trying to reach a sub-directoy by using cd xyz/abc but I get an error saying " No such file or directory " plz tell me wats wrong with this ... (3 Replies)
Discussion started by: jasjot31
3 Replies

2. Shell Programming and Scripting

find & copy files with absolute path

hi all, can i get script find file & copy that file with path for an example sourse : /home/abc/ destination : /home/backup/ files which need to find : tmp* copy these files with its absolute path inside like :- /home/abc/x/y/z/tmp.txt to /home/backup/date/x/y/z/tmp.txt thanks in... (15 Replies)
Discussion started by: jagnikam
15 Replies

3. Shell Programming and Scripting

creating & sending formatted (with bolds & colors) CSV

Hi , I have a situation. Need is to create & send a formatted file with header in BOLD & colored & some sequel results as a content. I know echo -e \033 command, but its scope is limited in PUTTY. How to retain the formatting out of Putty; say after someone opens a email attachment... (2 Replies)
Discussion started by: infaWorld
2 Replies

4. UNIX for Dummies Questions & Answers

Ld_library_path & path

I have googled around to find the difference between LD_LIBRARY_PATH & PATH. But the answers are creating more confusion. What is exact difference between these two paths? (1 Reply)
Discussion started by: tostay2003
1 Replies

5. Shell Programming and Scripting

File creating in another path.. application unable to locate

I am submitting a concurrent program (of HOST tyme) from Oracle apps screen, The MAIN shell program submits another program, (child) which is also a Shell program. The child writes data to log file. Now the main program, read the log and do some calculations and sends the data to user through... (1 Reply)
Discussion started by: Pradeep Garine
1 Replies

6. UNIX for Dummies Questions & Answers

Unzip & Env Path Name

I need to download team foundation server on Unix (4 simple instructions below), but I am stuck.. I am newbie Unix user, so please be patient. -cd /home/Myname/Downloads, Unzip -Unzipped to /home/Myname/DestFolder -cd DestFolder, type tf -help, works there - outside this folder, doesn't... (1 Reply)
Discussion started by: software2007
1 Replies

7. Shell Programming and Scripting

Creating word document (.doc) with attachment in unix solaris

Hi All, Is it possible to creation a word document (.doc) in unix solaris which includes an attachment (i.e similar to insert -> object add attachment in windows) Requirement is to add files into .doc and the files is present in unix servers. Is it possible to do this within unix instead... (5 Replies)
Discussion started by: ajay547
5 Replies

8. Shell Programming and Scripting

SEnding a process to backgorund (&) in here document

Trying to do the following ssh root@192.168.0.111 'bash -s' <<ENDSSH mkfifo a.pipe gzip -c < a.pipe > aa.gzip & ENDSSH it does not seems to be able to send the gzip process to background. (3 Replies)
Discussion started by: acelau
3 Replies

9. Programming

Boost library path for cmake & make

I was compiling a downloaded open source pkg. Following the install instruction, I did $ mkdir build; cd build; cmake ../; make but got error message:make: *** No rule to make target 'usr/lib64/lib64/libboost_graph-mt.so.5'. needed by ../bin.gam-create. stop make: *** Error 2 make: *** Error... (1 Reply)
Discussion started by: yifangt
1 Replies

10. Shell Programming and Scripting

Creating a PATH variable

I am new to shell scripting and I ran into a couple lines of code which I don't completely understand: PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/entity/bin data_dir=/usr/local/entity/projectI believe data_dir to be a more conventional link to a directory. However, I am not sure what PATH... (12 Replies)
Discussion started by: Circuits
12 Replies
scrollkeeper(1) 						   User Commands						   scrollkeeper(1)

NAME
scrollkeeper, scrollkeeper.conf, scrollkeeper-get-cl, scrollkeeper-get-content-list, scrollkeeper-get-extended-content-list, scrollkeeper- get-index-from-docpath, scrollkeeper-get-toc-from-docpath, scrollkeeper-get-toc-from-id, scrollkeeper-install, scrollkeeper-rebuilddb, scrollkeeper-uninstall, scrollkeeper-update - manage document metadata SYNOPSIS
scrollkeeper-get-cl [-v] locale file scrollkeeper-get-content-list locale scrollkeeper-get-extended-content-list locale scrollkeeper-get-toc-from-docpath file scrollkeeper-get-toc-from-id series-id scrollkeeper-install [-p path] [-q] [-v] [-n] omf-file scrollkeeper-rebuilddb [-p path] [-q] [-v] [-o path] scrollkeeper-uninstall [-p path] [-q] [-v] omf-file scrollkeeper-update [-p path] [-q] [-v] [-n] [-o path] DESCRIPTION
scrollkeeper manages document metadata and keeps track of various document attributes such as language, format, subject, classification, copyright, and so on. scrollkeeper supports OMF (Open Metadata Format), which is a simple 16-element XML file format. OMF is a subset of the Dublin Core metadata specification developed by the Dublin Core Metadata Initiative. Currently, scrollkeeper can extract table of con- tents and index information only from DocBook documents. EXTENDED DESCRIPTION
The following commands are supported: scrollkeeper-get-cl Exports the scrollkeeper contents list for the specified locale and the specified contents file into a temporary file, and displays the name of the temporary file. scrollkeeper-get-content-list Exports the scrollkeeper contents list for the specified locale into a temporary file, and displays the name of the temporary file. scrollkeeper-get-extended-content-list Exports the scrollkeeper extended contents list for the specified locale into a temporary file, and displays the name of the temporary file. The extended contents list contains both the document tree and the table of contents for each document. scrollkeeper-get-toc-from-docpath Displays the path to the file containing the table of contents of a document registered in the OMF database. Otherwise, displays a mes- sage to indicate that the requested document is not installed. scrollkeeper-get-toc-from-id Displays the path to the file containing the table of contents of the document with the specified scrollkeeper series ID. scrollkeeper-install Registers a document in the scrollkeeper database. scrollkeeper-rebuilddb Removes the existing scrollkeeper database and creates a new database by registering the documents described by the OMF files found in the OMF search path. This command is useful if the scrollkeeper database becomes corrupted. For more information about the scroll- keeper-rebuilddb command, see the Examples section. scrollkeeper-uninstall Removes a document from the scrollkeeper database and removes any related files from the scrollkeeper database and contents lists. The document and the OMF file are not removed or modified. scrollkeeper-update Rescans the list of directories in the OMF search path for new and removed documents, and updates the scrollkeeper database accord- ingly. Unless a search path is specified with the -o option, all directories in the default OMF search path are rescanned. OPTIONS
The following options are supported: -n Use the network to retrieve the DTD if it is not available via the system's XML catalog. -o path Specifies the search path for OMF files. -p path Specifies the location of the scrollkeeper database. -q Suppresses warnings and error messages. -v Displays all warnings and error messages, in addition to logging these messages in the /var/log/scrollkeeper.log file. OPERANDS
The following operands are supported: file Specifies the location of the contents file. locale Specifies the locale. omf-file Specifies the location of the OMF file. series-id Specifies the scrollkeeper series ID. EXAMPLES
Example 1: Removing a Document From the scrollkeeper Database example% scrollkeeper-uninstall /usr/share/omf/example/filename.omf Example 2: Getting the scrollkeeper Extended Contents List for the C Locale example% scrollkeeper-get-extended-content-list C Example 3: Setting Up the scrollkeeper Database for a Diskless Client Clone Area example% scrollkeeper-rebuilddb -p /export/root/clone/Solaris_9/sun4u/var/lib/scrollkeeper -o /export/exec/Solaris_9_sparc.all/usr/share/omf If the scrollkeeper database must be installed in a location other than the standard location, use the -p path option to specify the loca- tion of the scrollkeeper database, where path is an empty directory. The scrollkeeper-rebuilddb command will not proceed if you specify a populated path for this option. If the OMF files must be read from a location other than the standard location, use the -o path option to specify the location of the OMF files. Specify the complete pathname, for example, /usr/share/omf. If you specify a partial pathname, for example, /usr/share, the scroll- keeper-rebuilddb command will take a long time, produce many warnings, and may crash. ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables that affect the execution of scrollkeeper: NLSPATH. OMF_PATH Provides scrollkeeper with an alternative list of directories in which to search for OMF files. This variable over- rides the default search path. If the list contains multiple directories, the entries should be separated by colons. EXIT STATUS
The following exit values are returned: 0 Application exited successfully >0 Application exited with failure FILES
The following files are used by this application: /var/lib/scrollkeeper The location of the default scrollkeeper database. /var/log/scrollkeeper.log A log file containing log entries for database updates and error or warning messages. /usr/share/scrollkeeper The directory containing the scrollkeeper templates and xslt files. /etc/scrollkeeper.conf The default search path for omf files. /usr/bin/scrollkeeper-config The command-line executable for the scrollkeeper-config application. /usr/bin/scrollkeeper-get-cl The command-line executable for the scrollkeeper-get-cl application. /usr/bin/scrollkeeper-get-content-list The command-line executable for the scrollkeeper-get-content-list application. /usr/bin/scrollkeeper-get-extended-content-list The command-line executable for the scrollkeeper-get-extended-content-list application. /usr/bin/scrollkeeper-get-index-from-docpath The command-line executable for the scrollkeeper-get-index-from-docpath application. /usr/bin/scrollkeeper-get-toc-from-docpath The command-line executable for the scrollkeeper-get-toc-from-docpath application. /usr/bin/scrollkeeper-get-toc-from-id The command-line executable for the scrollkeeper-get-toc-from-id application. /usr/bin/scrollkeeper-install The command-line executable for the scrollkeeper-install application. /usr/bin/scrollkeeper-rebuilddb The command-line executable for the scrollkeeper-rebuilddb application. /usr/bin/scrollkeeper-uninstall The command-line executable for the scrollkeeper-uninstall application. /usr/bin/scrollkeeper-update The command-line executable for the scrollkeeper-update application. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-libs | +-----------------------------+-----------------------------+ |Interface stability |Obsolete | +-----------------------------+-----------------------------+ SEE ALSO
scrollkeeper-config(1), scrollkeeper-devel(1) NOTES
Written by Sander Vesik, Sun Microsystems Inc., 2003. Updated by Matt Keenan, Sun Microsystems Inc., 2006. Updated by Ghee Teo, Sun Microsystems Inc., 2007. SunOS 5.11 12 Sep 2006 scrollkeeper(1)
All times are GMT -4. The time now is 09:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy