11-25-2013
You can use a
for loop over a set of files in your directory. Then run
chmod on each file and finally
mv them to whatever directory you want.
There are several examples in this fora using
for loop over a set of files or
google it
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Oracle procedure create files on UNIX folder on a regular basis. I need to FTP files onto windows server and place the files, based on their name, in the corresponding folders. File name is as follows: ccyymmddfoldernamefile.txt; Folder Name length could be of any size; however, the prefix and... (3 Replies)
Discussion started by: MeganP
3 Replies
2. Shell Programming and Scripting
Hi,
I have a requirement to move a file from one folder(a) to another folder(b) only when folder (b) have a write permission. Folder permission is 755
If the permission is otherthan 755 we need to come out of the loop
I will appreciate your help
Thanks
Soll (1 Reply)
Discussion started by: sollins
1 Replies
3. Shell Programming and Scripting
This is the file structure:
DESKTOP/Root of Photo Folders/Folder1qweqwasdfsd/*jpg
DESKTOP/Root of Photo Folders/Folder2asdasdasd/*jpg
DESKTOP/Root of Photo Folders/Folder3asdadfhgasdf/*jpg
DESKTOP/Root of Photo Folders/Folder4qwetwdfsdfg/*jpg
DESKTOP/Root of Photo... (4 Replies)
Discussion started by: guptaxpn
4 Replies
4. Shell Programming and Scripting
Hi,
I want to process all input files available into folder (C:\ShellPrg\InputFile\) Input files are abc.CSV , XYZ.zip (zip of CSV file), PQR.gz (zip of CSV file).
I want to check the extension of file, If its .zip/.gz then need to unzip the file as .CSV
I want to parse line by line of... (2 Replies)
Discussion started by: Poonamol
2 Replies
5. Shell Programming and Scripting
Hi all,
let me explain my requirments
i am having 5 folder with different name for eg) abc , cdf , efd, rtg, ead
each 5 folders contain 15 files
i want to move 10 files to some other folder, remain 5 files should be there in the same folder.
give me some suggestion on this. (6 Replies)
Discussion started by: natraj005
6 Replies
6. Programming
I need to
"Ensure that when you download libchat.a from the VLE you have copied it to the same folder on ius as your source files. You then refer to the library (and the libraries it needs) with:
gcc -o outputfile sourcefile.c -L. -lchat -lsocket -lnsl"
But I have no idea what this means! (I... (2 Replies)
Discussion started by: fakuse
2 Replies
7. UNIX for Dummies Questions & Answers
Hello
I am writing a script that will first execute ps to get the list of processes running, and the go into the /proc folder for each PID listed and gather relevant information.
I looked through the contents of a particular process in the /proc folder and I can't find where I can locate... (2 Replies)
Discussion started by: flagman5
2 Replies
8. Shell Programming and Scripting
HI Guys,
I have some 8 files with different name and extensions. I need to check if they are present in a specific folder or not and also want that script to show me which all are not present. I can write if condition for each file but from a developer perspective , i feel that is not a good... (3 Replies)
Discussion started by: shankarpanda003
3 Replies
9. Shell Programming and Scripting
The `bash` below uses the oldest folder in the specified directory and logs it. The goes though an analysis process and creates a log. My problem is that if there are 3 folders in the directory folder1,folder2,folder3, the bash is using folder2 for the analysis eventhough folder1 is the oldest... (0 Replies)
Discussion started by: cmccabe
0 Replies
10. Shell Programming and Scripting
I am writing a script to kick off a process to gather logs on multiple nodes in parallel using "&". These processes create individual log files. Which I would like to filter and convert in CSV format after they are complete. I am facing following issues:
1. Monitor all Processes parallelly.... (5 Replies)
Discussion started by: shunya
5 Replies
LEARN ABOUT DEBIAN
podget
podget.man(7) Linux Reference Manual podget.man(7)
NAME
Podget
SYNOPSIS
podget <options> [command]
podget -h | --help
DESCRIPTION
OPTIONS
-c, --config <FILE>
Name of configuration file.
-C, --cleanup
Skip downloading and only run cleanup loop.
--cleanup_days <NUMBER>
Cleanup files older than <NUMBER> days.
--cleanup_simulate
Simulate cleanup loop to see what files would be deleted.
-d, --dir_config <DIRECTORY>
Directory that configuration files are stored in.
-f, --force
Force download of items from each feed even if they've already been downloaded.
--import_opml <FILE or URL>
Import servers from OPML file or HTTP/FTP URL.
--import_pcast <FILE or URL>
Import server from iTunes PCAST file or HTTP/FTP URL.
-l, --library <DIRECTORY>
Directory to store downloaded files in.
-p, --playlist-asx
In addition to M3U playlists, create ASX playlists.
-r, --recent <COUNT>
Download only the <COUNT> newest items from each feed.
--serverlist <FILE>
Use <FILE> as serverlist instead of default.
-s, --silent
Run silently (for cron jobs).
-v Set verbosity to level 1.
--verbosity <LEVEL>
Set verbosity level (0-3).
-h, --help
Display help.
EXAMPLE CRON JOB
Once podget is running acceptably, its most useful if you run it from a cron job so that the new songs are available to play or load onto a
portable player and you dont have to wait for them to download.
To edit your crontab, do:
$ crontab -e
Then insert one line (i for insert mode), like the following:
15 04 * * * /usr/bin/podget -s
This will run podget at 4:15 AM every day.
AUTOMATIC CLEANUP
You can enabled automatic cleanup with every run by configuring it in your $HOME/.podget/podgetrc file. Simply set the following options:
# Autocleanup.
# 0 == disabled
# 1 == delete any old content
cleanup=1
# Number of days to keep files. Cleanup will remove anything
# older than this.
cleanup_days=7
However, some people prefer to run cleanup as a seperate cron session. To do that, set the options in .podgetrc to:
# Autocleanup.
# 0 == disabled
# 1 == delete any old content
cleanup=0
# Number of days to keep files. Cleanup will remove anything
# older than this.
cleanup_days=7
And add a cron job to run cleanup, like one of these examples:
# Once a week on Sunday at 04:15AM
15 04 * * Sun /usr/bin/podget -C
SESSION CONTROL
Podget checks for already running sessions when it starts and exits if any are found.
Each session requires its own core configuration file, so for multiple sessions simply provide a unique -c <configfile> option for
each.
EXAMPLE SERVER LIST
By default, Podget uses $HOME/.podget/serverlist for the default list of servers
to contact.
However you can configure the name with the config_serverlist variable in your $HOME/.podget/podgetrc file.
The default format is: <url> <category> <name>
Note: Category must be one word.
Example:
# Default Server List for podget
# FORMAT: <url> <category> <name>
# NOTE: Category must be one word
http://www.distortedview.com/show/index.xml Humor Distorted View
http://www.podcastingnews.com/forum/links.php?func=show&id=214 IT In the Trenches
http://www.lugradio.org/episodes.rss Linux LUG Radio
http://thelinuxlink.net/tllts/tllts.rss Linux The Linux Link
http://www.bbc.co.uk/radio4/history/inourtime/mp3/podcast.xml Philosophy BBC: In Our Time
http://www.privacyfreaks.org/podcast.php privacy Privacy Freaks
http://www.rsasecurity.com/blog/rssfeed.asp security Speaking of Security
http://dl.chickencat.com/podcast.php privacy Digital Liberties
http://feeds.feedburner.com/LiveAmmo security LiveAmmo
HANDLING UTF-16 FEEDS
Some servers provide their feeds in UTF-16 format rather than the more common UTF-8.
To automatically convert these files, create a secondary serverlist at:
$HOME/.podget/serverlist.utf16
Remember to change the name of the serverlist to match what you set it to with config_serverlist if you changed it.
AUTHORS
Dave Vehrs
DOC
January 06, 2007 podget.man(7)