Ask Question Forum:
Model Library:2025-02-08:A.I. model is online auto reply
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by duncanb7
at 2024-06-27 08:06:27
Point:250 Replies:10 POST_ID:828511USER_ID:11059
Topic:
Visual Basic Programming;Unix Operating Systems;Linux
I am carelessly to create a file name with "" by php programming, for example, "117
ss.csv"
And I would like to delete those error file name file. How to do it ?
And Actually file name I want is 117rss.csv
I tried to
rm "117 ss.csv"
or
rm 117""rss.csv
or
rm 117 ss.csv
or
rm 117''rss.csv
All are failed.
Any suggestion?Please advise
Duncan
And I would like to delete those error file name file. How to do it ?
And Actually file name I want is 117rss.csv
I tried to
rm "117 ss.csv"
or
rm 117""rss.csv
or
rm 117 ss.csv
or
rm 117''rss.csv
All are failed.
Any suggestion?Please advise
Duncan
Author: duncanb7 replied at 2024-06-28 20:29:35
it works only with
rm -i * since it will ask me whether
the file is removed or not
others command is not work for my
system. Anyways at least
solve the problem , Thanks
rm -i * since it will ask me whether
the file is removed or not
others command is not work for my
system. Anyways at least
solve the problem , Thanks
Expert: balasundaram_s replied at 2024-06-28 07:23:13
It should work;
$ rm -f 117*.csv
$ rm -f 117*.csv
Expert: hossamshaaban replied at 2024-06-28 06:37:15
dear duncanb7,
try to use this command:
rm -- "117 ss.csv"
it works in all linux or unix servers.
try to use this command:
rm -- "117 ss.csv"
it works in all linux or unix servers.
Expert: upanwar replied at 2024-06-27 11:05:41
Accepted Solution
Expert: omarfarid replied at 2024-06-27 10:46:56
150 points EXCELLENT
rm '117
ss.csv'
should do the trick
or
try
rm -i *
and then answer with y for that file only
should do the trick
or
try
rm -i *
and then answer with y for that file only
Expert: kaufmed replied at 2024-06-27 09:32:53
Is it possible to post a screenshot of a "ls" command?
Here is what my test looked like:
Here is what my test looked like:
Attachment:untitled.PNG
Author: duncanb7 replied at 2024-06-27 09:29:42
Linux share-server
Assisted Solution
Expert: kaufmed replied at 2024-06-27 09:13:53
100 points EXCELLENT
What OS are you running when you do the delete? I tested the above in Ubuntu Linux and it appeared to work.
Author: duncanb7 replied at 2024-06-27 08:43:43
it also failed rm 117\rss.csv
Expert: kaufmed replied at 2024-06-27 08:15:45
Try doubling up the slash: