Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Action on all files in a folder Post 303034181 by RavinderSingh13 on Saturday 20th of April 2019 10:18:01 AM
Old 04-20-2019
Quote:
Originally Posted by locoroco
Answering my own question.
Code:
for file in folder/*; 
do 
echo $file
done

Thanks locoroco for sharing the solution here, keep it up, keep learning and keep sharing knowledge here.

Thanks,
R. Singh
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Auto copy for files from folder to folder upon instant writing

Hello all, I'm trying to accomplish that if a file gets written to folder /path/to/a/ it gets automatically copied into /path/to/b/ the moment its get written. I thought of writing a shell script and cron it that every X amount of minutes it copies these files over but this will not help me... (2 Replies)
Discussion started by: Bashar
2 Replies

2. Shell Programming and Scripting

script for Finding files in a folder and copying to another folder

Hi all, I have a folder '/samplefolder' in which i have some files like data0.txt, data1.txt and data2.txt. I have to search the folder for existence of the file data0.txt first and if found have to copy it to some other file; next i have to search the folder for existence of file... (5 Replies)
Discussion started by: satish2712
5 Replies

3. Shell Programming and Scripting

check how many files in folder or total files in folder

Hi all, I have copied all my files to one folder.and i want to check how many files (count) in the folder recently moved or total files in my folder? please send me the query asap. (3 Replies)
Discussion started by: durgaprasad
3 Replies

4. Shell Programming and Scripting

Find all text files in folder and then copy to a new folder

Hi all, *I use Uwin and Cygwin emulator. I´m trying to search for all text files in the current folder (C/Files) and its sub folders using find -depth -name "*.txt" The above command worked for me, but now I would like to copy all found text files to a new folder (C/Files/Text) with ... (4 Replies)
Discussion started by: cgkmal
4 Replies

5. Shell Programming and Scripting

Need help in searching 2 files for strings then perform an action

I have 2 files. I basically want to search both of them to see if the 1st column ($1) matches and if it matches then check to see if the 2nd column ($2) matches, then execute some code showing the results of the matches. File 1: AAA 123 misc blah BBB 456 CCC 789 File 2: ... (2 Replies)
Discussion started by: streetfighter2
2 Replies

6. Shell Programming and Scripting

how to list files and execute an action?

I'm not sure how to word what I'm trying to do. I would like to: 1. Generate a list of files (easy to do ls -l > list.txt) 2. Carry out an action again each file in the list (not so easy to do) Like: List all files in /dir and then execute a move of each file individually. something... (6 Replies)
Discussion started by: bbbngowc
6 Replies

7. Shell Programming and Scripting

How to access files from different directories and to perform search action in those files?

Hi, I want to access files from different directories (for example: /home/dir1/file1 , /home/dir2/file2 ...) Like this i have to access these files(file1, file2...). (3 Replies)
Discussion started by: bangarukannan
3 Replies

8. Shell Programming and Scripting

Move files from Space Folder to other folder

I want to move a folder with spaces from one folder to another. I have two folders like this, 1).RT_032-222 -4444-01/ 2). RT_032-555 -7777-01/ I want to move files from 2 to 1 through shell script.Here I want to assign this like a user defined variable like as Source branch... (2 Replies)
Discussion started by: kannansoft1985
2 Replies

9. Shell Programming and Scripting

Shell scripting for moving folder specific files into target directory of that country folder.

I need help to write shell script to copy files from one server to another server. Source Directory UAE(inside i have another folder Misc with files inside UAE folder).I have to copy this to another server UAE folder( Files should be copied to UAE folder and Misc files should be copied in target... (3 Replies)
Discussion started by: naresh2389
3 Replies

10. Shell Programming and Scripting

Request for Shell script to move files from Subfolder to Parent folder and delete sub folder

Hi Team, I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder. Eg: parent folder --> /Interface/data/test/IN Sub folder -->/Interface/data/test/IN/Invoice20180607233338 Subfolder will be always with timestamp... (6 Replies)
Discussion started by: srivarun15
6 Replies
seahorse-sharing(1)						       GNOME						       seahorse-sharing(1)

NAME
seahorse-sharing - public pgp key sharing SYNOPSIS
seahorse-sharing [ OPTION... ] DESCRIPTION
Seahorse is a GNOME application for managing encryption keys. This is the daemon program which shares your keys over the network if so desired. OPTIONS
Help options -?, --help Show summary of all options and exit. --usage Display brief usage message and exit. Application options -d, --no-daemonize Do not daemonize seahorse-sharing. Additional options In addition, the usual GTK+ and GNOME command line options apply. See the output of --help for details. VERSION
This man page describes seahorse-sharing version 0.9.x. BUGS
If you find a bug, please report it at http://bugzilla.gnome.org/enter_bug.cgi?product=seahorse. AUTHORS
Jacob Perkins <jap1@users.sourceforge.net> Jose Carlos Garcia Sogo <jsogo@users.sourceforge.net> Jean Schurger <jk24@users.sourceforge.net> Stef Walter <stef@memberwebs.com> Adam Schreiber <sadam@clemson.edu> This man page was originally written by Michael Mende <debian@menole.net> for the Debian system. COPYRIGHT
Copyright (C) 2001, 2002 Jose Carlos Garcia Sogo Copyright (C) 2002, 2003 Jacob Perkins Copyright (C) 2004, 2006 Stef Walter, Adam Schreiber LICENSE
You are free to distribute this software under the terms of the GNU General Public License. Documentation and help files are covered by GFDL license. SEE ALSO
seahorse-tool(1) seahorse May 04, 2006 seahorse-sharing(1)
All times are GMT -4. The time now is 07:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy