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
Jifty::View::Declare::Helpers(3pm)			User Contributed Perl Documentation			Jifty::View::Declare::Helpers(3pm)

NAME
Jifty::View::Declare::Helpers - Additional subroutines for Jifty TD templates DESCRIPTION
This library provides mixins to help build your application's user interface. METHODS
Arguments get args Returns arguments as set in the dispatcher or with "set" below. If called in scalar context, pulls the first item in "args" and returns it. If called in list context, returns the values of all items in "args". my $action = get('action'); my ($action, $object) = get(qw(action object)); set key => val [ key => val ...] Sets arguments for later grabbing with get. HTML pages and layouts page template 'foo' => page {{ title is 'Foo' } ... }; or template 'foo' => page { title => 'Foo' } content { ... }; Renders an HTML page wrapped in "wrapper", after calling "/_elements/nav" and setting a content type. Generally, you shouldn't be using "/_elements/nav" but a Dispatcher rule instead. If "page/content" calling convention is used, the return value of the first sub will be passed into wrapper as the second argument as a hashref, as well as the last argument for the content sub. content Helper function for page { ... } content { ... }, read "page" instead. wrapper $coderef Render a page. $coderef is a Template::Declare coderef. This badly wants to be redone. Forms and actions form CODE Takes a subroutine reference or block of perl as its only argument and renders it as a Jifty "form", for example: my $action = new_action class => 'CreateTask'; form { form_next_page url => '/'; render_action $action; form_submit( label => _('Create') ); }; You can specify the form name using "with" in Template::Declare::Tags, like so: with (name => 'create_task'), form { ... }; new_action Shortcut for "new_action" in Jifty::Web. render_action $action_object, $fields, $args_to_pass_to_action Renders an action out of whole cloth. Arguments $action_object A Jifty::Action object which has already been initialized $fields A reference to an array of fields that should be rendered when displaying this action. If left undefined, all of the action's fields will be rendered. $args_to_pass_to_action A hashref of arguments that should be passed to $action->form_field for every field of this action. render_param $action, $param, %args Takes an action and one or more arguments to pass to Jifty::Action->form_field. render_hidden $action $name $default @args Takes an action and one or more arguments to pass to Jifty::Action->hidden form_return Shortcut for "return" in Jifty::Web::Form. form_submit Shortcut for "submit" in Jifty::Web::Form. form_next_page Shortcut for "next_page" in Jifty::Web::Form. Other functions and shortcuts hyperlink Shortcut for "link" in Jifty::Web. tangent Shortcut for "tangent" in Jifty::Web. redirect Shortcut for "redirect" in Jifty::Web. render_region A shortcut for "Jifty::Web::PageRegion->new(@_)->render" which does the Template::Declare magic necessary to not mix its output with your current page's. request Shortcut for "request" in Jifty::Web. current_user Shortcut for "current_user" in Jifty::Web. js_handlers Allows you to put javascript handlers, a la Jifty::Web::Form::Element, onto arbitrary HTML elements: div { js_handlers { onclick => { path => "/some/region/path" } } } render_mason PATH, ARGS Renders the Mason template at "PATH" (a string) with "ARGS" (a hashref). perl v5.14.2 2010-09-25 Jifty::View::Declare::Helpers(3pm)
All times are GMT -4. The time now is 01:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy