Sponsored Content
Top Forums Shell Programming and Scripting Now that I have found with Locate, how to copy? Post 302396357 by dotancohen on Thursday 18th of February 2010 08:25:26 AM
Old 02-18-2010
Thanks, Zaxxon. I had foud examples of this while googling, however, I wanted to know if there is a simple way of doing this, without chaining together three tools as in your example.

Any file manager lets the user select a file displayed and move it easily and intuitively. Would that also not be the case with bash? I know that bash is not a file manager, but it is a well-developed, popular tool that is often used for managing files.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

not able to locate SSH

In our unix environment I'm not able to locate where ssh is located. can any one guide me in finding the location of this tool. (5 Replies)
Discussion started by: bishweshwar
5 Replies

2. Solaris

Equivalent to locate

Does Solaris 10 have an equivalent to FreeBSD's `locate'? If not, what is the best way to search for files (allowing regexp) throughout the system? (5 Replies)
Discussion started by: Russell
5 Replies

3. Shell Programming and Scripting

how can i check in csh if command found or not found ?

hello all im trying to use in sun Solaris the information received from the top command now i several machines that dont have install the top program so when im running the script im geting error saying after im running this code : set MemoryInfo = `top | grep Memory` if (... (2 Replies)
Discussion started by: umen
2 Replies

4. Shell Programming and Scripting

How to copy file and locate in new folder?

Hi All, Please advise me how to make a copy of file from a list and store in one particular location? For example , I have aaa.txt which contains as below, But, those *usg files might be randomly store in different location.... > cat aaa.txt adc.usg dfdjkf.usg ugjfk.usg And I want... (3 Replies)
Discussion started by: cedrichiu
3 Replies

5. UNIX for Dummies Questions & Answers

command locate.

Hi, I am aware of the command locate/slocate. But when I try to search the file which is located in /tmp. Its not able to get it. I tried by updating the database also with the command updatedb. Is there any consern that the command 'locate' dont check /tmp??? And I knew that locate is the... (5 Replies)
Discussion started by: praveen_b744
5 Replies

6. Linux

Help to locate the files

I m new to the linux environment.Help me with ur suggestions. How can i obtain the file names alone from ls -ltr output?? And those files should have been created before three months and earlier than that.. Thanks and wishes, Rupaa. (8 Replies)
Discussion started by: Rupaa
8 Replies

7. UNIX for Advanced & Expert Users

getting error "ssh-copy-id: not found"

Hello, i am trying to make an ssh connection from one server to another and invoke a script on another server. while doing this i want to do a passwordless ssh connection for the same, for which i have used the following command ssh-keygen -t rsa ssh-copy-id -i... (3 Replies)
Discussion started by: arwant
3 Replies

8. Shell Programming and Scripting

Copy/print all lines between pattern is found in .log files

Hi, I have a folder with multiple (< 33) .log files. And I have to copy the lines between two patterns from all the .log files to a new file. (script file with a loop?) Thanks in advance. 1.log ... .. xx1> begin ... .. .. >>> Total: 2 Alarms .. .. (17 Replies)
Discussion started by: AK47
17 Replies

9. Red Hat

Can't locate DBI.pm in @INC

my os details as follow bash-3.2$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.8 (Tikanga) I run the following and encounter the following error bash-3.2$ mysqlhotcopy -? Can't locate DBI.pm in @INC (@INC contains:... (5 Replies)
Discussion started by: jediwannabe
5 Replies

10. Shell Programming and Scripting

Locate the files in the first column and copy the files in 2nd column

#cat data.txt file1 folder1 file2 thisforfile2 file3 thisfolderforfile3 lata4 folder4 step 1: create the folder first in column 2 for i in `awk '{print $2}' data.txt` do mkdir /home/data/$i done step 2: locate the files in column1 and stored them into a file for i in... (17 Replies)
Discussion started by: kenshinhimura
17 Replies
TOMOYO-INIT(8)						  System Administration Utilities					    TOMOYO-INIT(8)

NAME
tomoyo-init - load TOMOYO Linux policy automatically SYNOPSIS
tomoyo-init DESCRIPTION
When /sbin/init starts, the kernel automatically calls this program. Policy files that have been saved to disk are subsequently loaded into kernel memory. This program copies the following files: /etc/tomoyo/exception_policy.conf => /sys/kernel/security/tomoyo/exception_policy /etc/tomoyo/domain_policy.conf => /sys/kernel/security/tomoyo/domain_policy /etc/tomoyo/profile.conf => /sys/kernel/security/tomoyo/profile /etc/tomoyo/manager.conf => /sys/kernel/security/tomoyo/manager /etc/tomoyo/stat.conf => /sys/kernel/security/tomoyo/stat If /etc/tomoyo/tomoyo-post-init exists and is executable, then it will also be executed. This allows additional control over what happens at startup. You will not usually need to invoke this program manually. EXAMPLES
Contents of "/etc/tomoyo/tomoyo-post-init" allowing non-root "demo" user to edit policy #!/bin/bash echo manage_by_non_root > /sys/kernel/security/tomoyo/manager chown -R demo /sys/kernel/security/tomoyo BUGS
If you find any bugs, send an email to <tomoyo-users-en@lists.sourceforge.jp>. AUTHORS
Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Main author. Jamie Nguyen <jamie@tomoyolinux.co.uk> Documentation and website. SEE ALSO
tomoyo-loadpolicy(8) See <http://tomoyo.sourceforge.jp> for more information. tomoyo-tools 2.5.0 2012-04-14 TOMOYO-INIT(8)
All times are GMT -4. The time now is 08:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy