04-10-2011
Thanks, Shell_Life.
I used awk, but your way worked, too.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I need to print to file , a listing of all files below a certain directory.
Example: I need to print to file a listing of all files below the etc dir (including the subdirectories) with their full path. Any ideas on how to do this with one command. Or is this something I need to do on all... (4 Replies)
Discussion started by: gforty
4 Replies
2. Shell Programming and Scripting
I have a directory which is /home/mark/files/ , inside this particular I have a bunch of filles (see examples below)
TST_SHU_00014460_20090302.txt
TST_SHU_00016047_20090302.txt
TST_SHU_00007838_20090303.txt
TST_SHU_00056485_20090303.txt
TST_SHU_00014460_20090303.txt... (2 Replies)
Discussion started by: fierusbentus
2 Replies
3. Shell Programming and Scripting
Hi,
I'm writing some start of day checks for my work. I want to check some dirs for files that have been created longer than 10 mins ago and not been transfered. I've already used a find command to write a list of files that meet this criteria to a log called sod.log
i.e. ... (1 Reply)
Discussion started by: elcounto
1 Replies
4. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I must write a shell script that calls two external Perl functions--one of which sorts the data in a file, and... (6 Replies)
Discussion started by: kowit010
6 Replies
5. UNIX for Dummies Questions & Answers
Is there any addon or finctionality in ftp (SFTP) Server that definitively indicates if a file was retireved and successfully? I am looking for this type of command with logging so
-files retrieved
-files deleted
by remote users can be logged
Must be compatible with AIX and UBUNTU.
... (0 Replies)
Discussion started by: cdc01
0 Replies
6. Shell Programming and Scripting
Is there a way to create a txt file with the names of the files I retreive using mget *.file. I want to use this file as input to a delete command.
Using HP-UX (3 Replies)
Discussion started by: jagf
3 Replies
7. Debian
Hi,
The other day i installed a PHP based CMS (modx) on my shell account and noticed that i couldn't delete any of files/dirs it created after.
Also, i noticed that all that stuff is owned by username-www instead of username.
I tried chown, chmod and using a PHP script to do the same wti... (4 Replies)
Discussion started by: pentago
4 Replies
8. Shell Programming and Scripting
I am trying to find a way to move files into corresponding date files.
i=0
while read line
do
array="$line"
(( i++ ))
done < <(ls)
cd $(echo ${array})
echo ${array}}
pwd
#cd "$(array}"
] || mkdir 2015
cd "2015"
] || mkdir 02-February
] || mkdir 03-March
] || mkdir... (10 Replies)
Discussion started by: newbie2010
10 Replies
9. Shell Programming and Scripting
I have 42 text files; each containing up to 34 lines with following structure;
file1
H-01 23
H-03 5
H-05 9
H-02 14
.
.
file2
H-01 17
H-02 43
H-04 7
H-05 8
H-03 7
.
.
file3 (6 Replies)
Discussion started by: Syeda Sumayya
6 Replies
10. Shell Programming and Scripting
good evening,
i'm still new in scripting but i'm learning every day and i'm enjoying it.
so i have api website (htt p://api.nobelprize.org/v1/prize.json), i want to make a script that allows me to give it two arguments like ./test.sh 2005 physics, 2000 is for the year and physics is category... (1 Reply)
Discussion started by: kalbsghir
1 Replies
LEARN ABOUT DEBIAN
dwww-refresh-cache
DWWW-REFRESH-CACHE(8) Debian DWWW-REFRESH-CACHE(8)
NAME
dwww-refresh-cache - rebuilds dwww cache directory
SYNOPSIS
dwww-refresh-cache
DESCRIPTION
dwww-refresh-cache is a simple shell script, which deletes outdated cache files and rebuilds contents of the dwww cache directory
/var/cache/dwww. In default installation, the script is called from /etc/cron.daily/dwww, so the cache is refreshed every day.
CONFIGURATION VARIABLES
DWWW_KEEPDAYS
Specifies, how many days documents that have not been accessed should be kept in the cache. Default is 10 days.
DWWW_QUICKFIND_DB
Location of the installed packages and programs cache file, generated with help of dwww-quickfind(8). Default is
/var/cache/dwww/quickfind.dat.
DWWW_DOCBASE2PKG_DB
Location of the cache file, which maps installed doc-base files to packages names, used by the dwww-build-menu(8). Default is
/var/cache/dwww/docbase2pkg.dat.
FILES
/etc/dwww/dwww.conf
Configuration file for dwww(7).
/var/cache/dwww
dwww cache directory.
/etc/cron.daily/dwww.
dwww daily cron job
SEE ALSO
dwww(7), dwww-build-menu(8), dwww-cache(8), dwww-find(8).
AUTHOR
Robert Luberda.
See dwww(7), for copyrights and stuff.
dwww 1.11.1 February 15th, 2009 DWWW-REFRESH-CACHE(8)