How to continuously create file name with special character like () and white space in Linux?

Pandya chinna

I am trying to create a lot of files using C. I have done mkdir -p directory && touch directory/filename. When my loop reached a file with a special character in it's name, I get the error

syntax error :" unexpected "("

Can you help me?

StefanR

Surround the file path with quotes like this:

touch "directory/file"

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to create folder name or file name with special characters like \ / : * ? " < > |

From Dev

How to escape the white space in folder name of a file?

From Dev

How to replace a special character from a file name in a document in PowerShell

From Dev

Is there something that looks like white space but it is not and how to remove it?

From Dev

How to include space or any special character in a batch file output txt file before certain texts?

From Dev

How to create a where query for Json in mysql with key having a white space in between the name

From Dev

iOS: How to insert Special like " or ' character in sqlite

From Dev

iOS: How to insert Special like " or ' character in sqlite

From Dev

How can I create a file with a non-printing character in the name?

From Dev

How to create a file with name of substring before and after particular character

From Dev

Space character ignored in the linux exec file

From Dev

Delete the extra space after special character in all the lines of text file

From Dev

How to show White Space character in android studio as Eclipse tool

From Dev

How to remove white space after and before specific character?

From Dev

How to replace last character in a string with white space in the end

From Dev

How to keep white-space's width at normal single character

From Dev

Replace white space with underscore and make lower case - file name

From Dev

Spring mvc - error with white space in file name for download

From Dev

LInux vi editor,how to replace special character?

From Dev

pandas: oserror with accent/special character in file path and file name

From Dev

How to remove the unwanted character like white spaces and newline from a string

From Dev

Rails create table from csv that has special character in column name

From Dev

how to replace a special character from a column of file

From Dev

how to read special character from a file in verilog?

From Dev

How to identify a special character in a file using java

From Dev

How to replace special character '/' to '_' in a bat file

From Dev

How to remove special character in file using scala?

From Dev

How can i write a special character: " to a file?

From Dev

How to force Windows to rename a file with a special character?

Related Related

  1. 1

    How to create folder name or file name with special characters like \ / : * ? " < > |

  2. 2

    How to escape the white space in folder name of a file?

  3. 3

    How to replace a special character from a file name in a document in PowerShell

  4. 4

    Is there something that looks like white space but it is not and how to remove it?

  5. 5

    How to include space or any special character in a batch file output txt file before certain texts?

  6. 6

    How to create a where query for Json in mysql with key having a white space in between the name

  7. 7

    iOS: How to insert Special like " or ' character in sqlite

  8. 8

    iOS: How to insert Special like " or ' character in sqlite

  9. 9

    How can I create a file with a non-printing character in the name?

  10. 10

    How to create a file with name of substring before and after particular character

  11. 11

    Space character ignored in the linux exec file

  12. 12

    Delete the extra space after special character in all the lines of text file

  13. 13

    How to show White Space character in android studio as Eclipse tool

  14. 14

    How to remove white space after and before specific character?

  15. 15

    How to replace last character in a string with white space in the end

  16. 16

    How to keep white-space's width at normal single character

  17. 17

    Replace white space with underscore and make lower case - file name

  18. 18

    Spring mvc - error with white space in file name for download

  19. 19

    LInux vi editor,how to replace special character?

  20. 20

    pandas: oserror with accent/special character in file path and file name

  21. 21

    How to remove the unwanted character like white spaces and newline from a string

  22. 22

    Rails create table from csv that has special character in column name

  23. 23

    how to replace a special character from a column of file

  24. 24

    how to read special character from a file in verilog?

  25. 25

    How to identify a special character in a file using java

  26. 26

    How to replace special character '/' to '_' in a bat file

  27. 27

    How to remove special character in file using scala?

  28. 28

    How can i write a special character: " to a file?

  29. 29

    How to force Windows to rename a file with a special character?

HotTag

Archive