11-03-2006
Thanks Yogesh and thanks srikanthus too.
i think that will use the option "ls -1 $MYDIR | lp "
another question....
If i want to automatice How i do?
May be very interesante every 5 minutes print the contens of the directoy , (and this script must be resident) How i do ?
Thanks again
monica
PD: excuseme but my english is not too good
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I want to search for .log files from folders and sub folders in remote server and FTP them to one particular folder in the local machine. I dont want to copy the entire directory tree structure, just have to take all the .log files from all the folders by doing a recursive search from the... (3 Replies)
Discussion started by: dassv
3 Replies
2. Shell Programming and Scripting
got it figured out :) (1 Reply)
Discussion started by: sHockz
1 Replies
3. Shell Programming and Scripting
Hi All,
I am stuck with a problem and i want your help, what i want to do is
I have a directory name dircome
and there are 6 files present in this directory, the name of the files are d1,d2,d3,d4,d5,d6.
The Perl script print the files name, means the output should be
d1
d2
d3
d4
d5
d6 (9 Replies)
Discussion started by: parthmittal2007
9 Replies
4. Shell Programming and Scripting
Hi All,
I have written one program to print the files which are not updated in the specified directory in .Dat file. If I am executing the same command in the command prompt its working fine but if I am executing in shell script it's not working fine. Please correct if any thing wrong in the... (3 Replies)
Discussion started by: bbc17484
3 Replies
5. UNIX for Dummies Questions & Answers
directory structure:
100k server1/ab_1234567_1/mydir
500k server1/ab_1234567_2
100k server1/ab_1234567_3/mydir
100k server1/ab_1731458_9/mydir
600k server1/ab_1234569_1
100k server1/ab_1234569_4/mydir
100k server1/ab_1234510_40/mydir
800k server1/ab_1234511_1
is there any way to generate... (10 Replies)
Discussion started by: lxdorney
10 Replies
6. AIX
Hi.
My example:
I have a filesystem /log. Everyday, log files are copied to /log. I'd like to set owner and permission for files and directories in /log like that
chown -R log_adm /log/*
chmod -R 544 /log/*It's OK, but just at that time. When a new log file or new directory is created in /log,... (8 Replies)
Discussion started by: bobochacha29
8 Replies
7. Shell Programming and Scripting
Hi all,
i have a folder, with tons of files containing as following,
on /my/folder/jobs/
some_name_2016-01-17-22-38-58_some name_0_0.zip.done
some_name_2016-01-17-22-40-30_some name_0_0.zip.done
some_name_2016-01-17-22-48-50_some name_0_0.zip.done
and these can be lots of similar files,... (6 Replies)
Discussion started by: charli1
6 Replies
8. Shell Programming and Scripting
Given a directory containing say a few thousand files,
please output a list of all the names of the files in the directory that are exactly the same, i.e. have the same contents.
func(a_directory_name) output -> {“matches”: , ... ]}
e.g. func(“/home/my/files”) where the directory... (7 Replies)
Discussion started by: anuragpgtgerman
7 Replies
9. UNIX for Beginners Questions & Answers
Hi All,
I hope somebody would be able to help me.
I would need to search a string coming from a file, example file.txt:
dog
cat
goat
horse
fish
For every string, I would need to know if there are any files inside a directory(recursively) that contains the string regardless of case.... (9 Replies)
Discussion started by: kokoro
9 Replies
10. UNIX for Beginners Questions & Answers
I have a directory of files, I can show the number of lines in each file and order them from lowest to highest with:
wc -l *|sort
15263 Image.txt
16401 reference.txt
40459 richtexteditor.txt
How can I also print the number of unique lines in each file?
15263 1401 Image.txt
16401... (15 Replies)
Discussion started by: spacegoose
15 Replies