I've got a script that scp's a file from remote host back to local. Sometimes the file names contain spaces. scp does not like spaces in its file names.
Hi.
I'm trying to get the names of files from a log file, without the path and special characters.
I have a file that contains lines like this:
Code:
'/path/to/files/file00010000070874.EXT'
'/path/to/files/file00010000070875.EXT'
'/path/to/files/file00010000070876.EXT'
'/path/to/files/file00010000070877.EXT'
'/path/to/files/file00010000070878.EXT'
'/path/to/files/file00010000070879.EXT'
'/p
Hi,
I have a directory with a bunch of files say around 150K.
I want the directory's path and the filenames printed to a text file.
Example:
If I am in the directory /path/test and the files in this directory are
Quote:
1.txt
2.txt
3.txt
My output file should be like this
Quote:
/path/test/1.txt
/path/test/
hi all
i need to generate a report file that contains the following details of files present in a directory.
1.
Hi all my very first post so go easy on me!!
I am trying to build a very simple script to list a file path with spaces in. But I can't get around this problem.
I need to search for a file in all zip files in a directory.
Is there a tool like find that be able to search in ZIP files?
I tried this:
find /path/ -iname '*.zip' -print -exec unzip -l {} \; |grep -i '<filename>'
But this only prints path of file in zip file and not the zip file name itself!
Thanks
hi,
i have a directory at
Code:
/path/unix
with the following files
Code:
1.txt
2.txt
3.txt
4.txt
I want to make another file called
Code:
filenames.txt
at a different location called /path/home.
Hello,
I'm trying to figure out how best to approach this script, and I have very little experience, so I could use all the help I can get.
I am trying to use ls to get information about files and directories. My current command fails to properly get the name whenever a file/directory has a space.
I am using this to list all files/directories in a directory:
ls -al --time-style=+%s .