Please enter at least 3 characters 0 results found. Abhishek Prakash. Spaces in the file names could be tricky, specially for new Linux users.
Learn how to deal with them. Table of Contents. Let me show that with examples. You know the generic syntax for Linux commands: command [options] argument1 argument2 In here, the arguments are separated by spaces. How do you deal with spaces in filename, then? Tab completion often works with spaces as well. Your terminal may show the file name with space escaped with backslash if you press tab key for the filename.
Single quotes ignore any special characters. More on it in some other tutorial. Quotes are an integral part of shell scripting and Linux command but they could often be confusing for new users.
This article will demystify quotes for you. Linux Handbook Abhishek Prakash. Send login link. Check your inbox and click the link. Sorry, something went wrong. The file is empty so it displays no results but the command runs successfully. We create files and directories, without bothering to focus on the names that can have spaces. The Linux terminal treated files and folders differently that have spaces in their names.
So this article solved the problem. Save my name, email, and website in this browser for the next time I comment. Facebook Twitter Instagram. TecAdmin Home Ubuntu I've tryed to change IFS but haven't succeed Any solutions? I am testing a ksh script for email. In the script I receive several parameters. One of them is a subject. The subject may contain spaces. Test this. When I am running the script on telnet to test, how should the syntax at the command line be written.
I have this: ksh ResendE. RedHat Commands. OpenSolaris Commands. Linux Commands. SunOS Commands. FreeBSD Commands. Full Man Repository. Advanced Search. Contact Us. Forum Rules. Mark Forums Read. Thread Tools. View Public Profile for Scrutinizer.
0コメント