10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi All,
I have a filelist which contains the "ls" output, i want to extract the filenames written in this files based on date. I know i can run loop and extract the file but i want to avoid it. also there is find command which can be used on directory i.e.
find . -type f -newermt "2019-09-25"... (3 Replies)
Discussion started by: kumarinfa
3 Replies
2. Shell Programming and Scripting
Hi ,
I am looking for some help in getting the list of files matching some pattern in a folder and those were created in last X hours.
Please help.
Thanks in advance. (1 Reply)
Discussion started by: Anupam_Halder
1 Replies
3. UNIX for Dummies Questions & Answers
Hi everyone, so I have a script create a login file to log into the sftp remote server, go to a certain directory and get the list of files in that direction into a text file in another folder (local folder). Here is the piece of code
echo "#!/usr/local/bin/expect -f" >>... (5 Replies)
Discussion started by: warmboy610
5 Replies
4. Shell Programming and Scripting
Hi,
I have a filelist named filestomove.txt.
It can contain any number of files that need to be moved to a subdirectory.
All the files from filelist are in the same directory as the filelist, let say it's called Folder1.
All the files need to be moved to subfolder Folder1/Subfolder1.
... (1 Reply)
Discussion started by: kedrick
1 Replies
5. Shell Programming and Scripting
I've written a script:
find -depth | awk ‘
{
if ( substr($1,length($0)-2,3) == “/1.” )
{ print $1 }
{ system(“awk -f test1.awk “ $1 ) }
}
‘
The idea is that it trundles through a large directory structure looking for files which are named '1.' and then... (3 Replies)
Discussion started by: nashcom
3 Replies
6. Shell Programming and Scripting
OK
I have two filelists......
The first is formatted like this....
/path/to/the/actual/file/location/filename.jpg
and has up to a million records
The second list shows filename.jpg where there is more then on instance.
and has maybe up to 65,000 records
I want to copy files... (4 Replies)
Discussion started by: Bashingaway
4 Replies
7. UNIX for Dummies Questions & Answers
I am trying to find all the files listed in a filelist.txt.
Why cant I use something like this
cat filelist.txt | xargs -n1 find $path (2 Replies)
Discussion started by: dragonpoint
2 Replies
8. Shell Programming and Scripting
hi,
to all
give me some idea below scripts
file=`cat filelist`
for filename in $file
do
awk '{
if ($0 ~ /system/ && flag == 0) {
flag=1;
print $0;
}
else if ($0 ~ /system/ && flag == 1) {
printf("%s SYSLAY %s %s %s\n",$1,$3, $4, $5);
}
else
print $0;
}' $filename >... (6 Replies)
Discussion started by: LAKSHMI NARAYAN
6 Replies
9. UNIX for Dummies Questions & Answers
Hi
I have a text file which contains a list of file names (one file name per line). I would like to pass the contents of this file into chmod to change the permissions. I am having trouble getting the correct syntax for this. Can someone please tell me if its possible to do this?
Thanks (2 Replies)
Discussion started by: alangibson
2 Replies
10. Shell Programming and Scripting
hi all,
kindly help me in getting nth file from file list
ls load*.txt > filelist.txt
#filelist.txt contains list of files starts with load as filename
now i am required to get one by one from filelist.txt for further processing, kindly let me know how to get it.
thanks in advance
-Bali (1 Reply)
Discussion started by: balireddy_77
1 Replies