10 More Discussions You Might Find Interesting
1. 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
2. Shell Programming and Scripting
I have a Perl script that has a variable for a directory path and I want to define another variable that will navigate to up directory from the given directory path.
This is the given directory path in Perl and this is the way the directory path is derived
use FindBin;
$apphome =... (0 Replies)
Discussion started by: cumeh1624
0 Replies
3. Programming
Hi Guys,
i'm writing a perl script which whenever runs, should empty 3 pre-decided directories as first step and then the script has the logic to parse some other directories and copy the files inside those directories into these 3 directories. I've the logic already developed, just need to... (2 Replies)
Discussion started by: jhamaks
2 Replies
4. Shell Programming and Scripting
Hello,
I have a folder with a massive amount of files, and I want to copy out a specific subset of the files to a new directory. I would like to use a text file with the filenames listed, but can't get it to work.
The thing I'm hung up on is that the folder names in the path can and do have... (5 Replies)
Discussion started by: twjolson
5 Replies
5. Shell Programming and Scripting
@scriptfiles=glob('*.txt');
foreach $file (glob('*.txt'))
{
open(my $fh, $file) or die("Unable to open '$file': $!");
while (my $line = <$fh>)
{
if ($line =~ m/(Apple|Orange|Guava)/i)
{
$Sheet->Cells($row,$col-1)->{'Value'} = $file;
... (1 Reply)
Discussion started by: rajkrishna89
1 Replies
6. Shell Programming and Scripting
Hi All
I am stuck with a problem and i want your help,
I have two directories dir1 and dir2
The files present in dir1 is a1,a2 a3 a4
What i want to is to FTP the files present in the dir1 to dir2 (with .txt extension at the end.) with the help of the Perl.
The output expected is
The... (12 Replies)
Discussion started by: parthmittal2007
12 Replies
7. Shell Programming and Scripting
Hi
Can any one please support:
From Windows, I am running perl script located in C:/scripts directory and need to run a command "ls | sort | uniq" on the files in D:/temp directory.
#!c:\perl\bin\perl.exe
$file_dir="D:\\temp";
$command1="cd";
$command2="ls | sort | uniq";... (2 Replies)
Discussion started by: sureshcisco
2 Replies
8. Shell Programming and Scripting
Does anyone have a good example? I am having trouble looping..
Thanks (1 Reply)
Discussion started by: mrlayance
1 Replies
9. Shell Programming and Scripting
I will be very grateful if someone can help me with bash shell script that does the following:
I have a list of filenames:
A01_155716
A05_155780
A07_155812
A09_155844
A11_155876
that are kept in different sub directories within my current directory. I want to find these files and copy... (3 Replies)
Discussion started by: manishabh
3 Replies
10. UNIX for Dummies Questions & Answers
Hi Bosses!
I have a directory name sih. that directory contains some more directories and some files. i just want to list (ls) the directories under this directory. What will be the command.I am using debian linux.
Thanks bosses.will appreciate your help.
sih (6 Replies)
Discussion started by: little_jhon
6 Replies