[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Please advise work around or bug fix
From: |
Yuen, Kam-Kuen CIV USARMY DEVCOM SC (USA) |
Subject: |
Please advise work around or bug fix |
Date: |
Wed, 24 Mar 2021 17:17:02 +0000 |
Hi,
I am running the following command and the "ls" command gives error message
that the file cannot be found. The problem is that the filename has spaces as
part of the filename.
The purpose is to find all files that exceeding file size of 1k. Filename
might include spaces, special character like '
find . -size +1k -print | xargs ls -sd
1) The env is cygwin64 on Windows 10
2) Filename include space or special character
3) When running "ls" command directly on the folder, the screen show " '
" character surrounding the filename e.g. 'This is a Test Case With spaces in
Filename.pdf'
4) In the case the filename already has ' special character, the "ls"
command shows the filename with double " around the filename e.g. " This is a
Tester's File.pdf"
5) When saving simple "ls" output to a file, do not see the surrounding
character
6) Trying to use the -0 option with xargs but it complains the argument
line too long
Can you advise How to handle filename with hidden character like ' or space or
to report file size of current and subdirectories
Thanks,
Kam
Computer Engineer
US ARMY, CCDC
Armaments Software Engineering Center
B31 Third Ave
Picatinny, NJ 07806
Office: 973.724.8856
- Please advise work around or bug fix,
Yuen, Kam-Kuen CIV USARMY DEVCOM SC (USA) <=