10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Actually I have many pictures with diferent name and size around 2000, I need generate a copy of them from one list of alias. The structure of the list is something like this:
alias_list.txt
<01>randomname.png<02>
Randomname.png
RandoMname.png
RandOmname.png
RandomnamE.png... (6 Replies)
Discussion started by: Tapiocapioca
6 Replies
2. UNIX for Beginners Questions & Answers
Good evening, i need your help please
I've got a file script thet deletes about half millions of files, and i want those files to be printed in a log file as an evidence those files were removed.
#/bin/sh
rm "/home/e-smith/files/users/bill/Maildir/cur/1392373930.28512.comp01:2,S"
rm... (6 Replies)
Discussion started by: alexcol
6 Replies
3. UNIX for Dummies Questions & Answers
I have to list the files in a directory and along with that, list the owner of each of those files. Can someone please help me with a way to get this info please?
Gayathri (2 Replies)
Discussion started by: ggayathri
2 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I am trying to write a script that list down all the files that do not match the pattern
My pattern will be like this "*.jpg|*.xml|*.sql". This pattern will be stored in a file. The script need to read this pattern from the file and delete the files that does not match this pattern. It... (7 Replies)
Discussion started by: meenavin
7 Replies
5. Shell Programming and Scripting
Hi guys,
I'm learning grep and map functions in perl and ran into a problem.
I have a little script below:
#!/usr/bin/perl -w
die "Usage: $0 dir\n" if @ARGV != 1;
opendir (D, $ARGV) or die $!;
@text_files = grep { !-d } readdir D;
rewinddir D;
@sizes = sort {$b <=> $a} map { -s... (7 Replies)
Discussion started by: new bie
7 Replies
6. Shell Programming and Scripting
Hi.,
In my script I have written :
file_list=`ls -lrt /tmp/vinay/act/files |grep "$cdate"| awk '{print $9}'`
To store list of files in the directory. Now I want to access it as list. And for this I tried with :
set -A filearray $file_list
if }` == "" ]]; then
... (1 Reply)
Discussion started by: IND123
1 Replies
7. Shell Programming and Scripting
I am trying to find socail security numbers in files in (and under) a specific directory and output a list of the files where they are found... the format would be with no dashes just 9 numeric characters in a row.
I have tried this:
find /DirToLookIn -exec grep '\{9\}' /dev/null {} \; >>... (1 Reply)
Discussion started by: NewSolarisAdmin
1 Replies
8. Shell Programming and Scripting
G'day,
I was wanting to write a shell script that checks an ftp server for the presence of new files, then get those files. In so much as the get, this is pretty straight forward, but I cannot work out how to get a list of files to check. Is it possible for a shell script to get the output of... (1 Reply)
Discussion started by: Elric of Grans
1 Replies
9. UNIX for Dummies Questions & Answers
Hey,
I have finally made a command that works and now has to run it on 200+ files to run it on.
How do I do that?
Just fyi and if it complicates anything my commandline is:
awk '{if ($1 ~ /1/) print $2}' file
(yup, is should print $2 if $1 is a certain value)
It doesn't work when I: ... (2 Replies)
Discussion started by: lost
2 Replies
10. Shell Programming and Scripting
How can I go about getting this done? I have tried and failed with a loop before I start the session and after seeing that I am already in the ftp code block and not bash when I am trying to perform this:
#FTP Information
ftp_server=xx.xxx.xxx.xx
ftp_user=xxxx
while read line; do... (1 Reply)
Discussion started by: BkontheShell718
1 Replies