Sponsored Content
Top Forums UNIX for Dummies Questions & Answers how to see special characters in a file using vi Post 87043 by jingi1234 on Wednesday 19th of October 2005 11:57:31 AM
Old 10-19-2005
I see lot of Control I characters which were not visible with out :set list


Thanks Unix Gurus Smilie Smilie Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to delete a file with special characters

I don't now exactly how I did it, but I created a file named " -C " cexdi:/home1 $ls -lt total 1801336 -rw------- 1 cexdi ced-group 922275840 23 mars 10:03 -C How do I delete this file ? cexdi:/home1 $rm -C rm: invalid option -- C Syntax : rm filename ... Doesn't work...... (5 Replies)
Discussion started by: yveslagace
5 Replies

2. Shell Programming and Scripting

Removing special characters in file

I have file special.txt with the following data. <header info> 123$ty5%98&0asd 1@356fgbv78 09*&^5jkns43( ...........some more rows. In my output file, I want to eliminate all the special characters in my file and I want all other data. need some help. (6 Replies)
Discussion started by: srivsn
6 Replies

3. Shell Programming and Scripting

escaping special characters in file name...

dear, I would like to rename files in a dir to another format, so I write a bash shell script to handle it. But my problem now is how to handle files having special characters like spaces, (, ): "a b c (d).doc" It seems that I need to escape those characters before applying the "mv" command.... (1 Reply)
Discussion started by: lau0001
1 Replies

4. Shell Programming and Scripting

Is there anyway to grep any special characters from a file ?

Is there any command or shell script to grep any special character from a file ? I have a huge file containing millions of user names; the requirement is to find names containing special characters. #!/bin/bash for i in `cat username.txt` do #COMMAND to grep special character done ... (3 Replies)
Discussion started by: poga
3 Replies

5. Shell Programming and Scripting

Problem with Special characters in file

Hi, I am facing a below problem. Inorder to mak sure the below file is fixed width i am using the following command awk '{printf("%-375s\n", $0) } so as to add trailing spaces at the end for records of length less than 375. Input file > inp.txt 1©1234 1234 123©1 The output file is... (1 Reply)
Discussion started by: marcus_kosaman
1 Replies

6. Shell Programming and Scripting

File containing special characters

Hello All, I am facing challenges in order to transfer a file from windows to unix box,the file contains a special character '×' ,now when I am transferring the file from windows to unix that special character converted to something else like 'Ã' ,another thing I have noticed that the hardware is... (1 Reply)
Discussion started by: prarat
1 Replies

7. Shell Programming and Scripting

Substitute special Characters into a file

Hi experts :) I need to replace special characters into a file , in the followiing way : " --> "" ' --> '' _--> \_ I tried with the sed command but I'm getting and error ksh: $: not found. ksh: $: not found. sed: Function s/\/\/ cannot be parsed. Any idea ? Thanks , KOLAS... (2 Replies)
Discussion started by: Kolas79
2 Replies

8. Red Hat

Special control characters in file

Hi Guys, We receive some huge files on to Linux server. Source system use FTP mechanism to transfer these files on our server. Occasionally one record is getting corrupted while transfer, some control characters are injecting into the file. How to fix this issue ? please advice ? Sample... (2 Replies)
Discussion started by: srikanth38
2 Replies

9. UNIX for Dummies Questions & Answers

Naming file with special characters ?

Hi all, I have a problem with file naming in linux. I have to create a file named like 11/22.csv but shell displays error: no such file or dir. Problem is / character in the file name. I searched unix linux naming concepts and it's restricted in OS. Please tell me if there's any other chance? OS... (3 Replies)
Discussion started by: sembii
3 Replies

10. UNIX for Beginners Questions & Answers

Rename File Name with Special Characters

I am trying to rename files with spaces and other characters and not able to be successful. FileNames: UPLOAD REFERENCE.xls UPLOAD MASS REFERENCE.XLS find /UPLOAD REFERENCE/ -depth -type f -name "* *" -exec rename " " "_" "{}" ";" The above one is successful to replace spaces... (1 Reply)
Discussion started by: eskay
1 Replies
setquota(2)							System Calls Manual						       setquota(2)

Name
       setquota - enable/disable quotas on a file system

Syntax
       setquota(special, file)
       char *special, *file;

Description
       Disk quotas are enabled or disabled with the call.  The special indicates a block special device on which a mounted file system exists.	If
       file is nonzero, it specifies a file in that file system from which to take the quotas.	If file is zero, then quotas are disabled  on  the
       file system.  The quota file must exist; it is normally created with the program.

       Only the superuser can turn quotas on or off.

Return Values
       A zero (0) return value indicates a successful call.  A value of -1 is returned when an error occurs, and errno is set to indicate the rea-
       son for failure.

Diagnostics
       The system call fails when one of the following occurs:

       [ENODEV]       The special does not exist.

       [ENOTBLK]      The special is not a block device.

       [ENXIO]	      The major device number of special is out of range. (This indicates no device driver exists for the associated hardware.)

       [ENOTDIR]      A component of either path prefix is not a directory.

       [EROFS]	      The file resides on a read-only file system.

       [EACCES]       The file resides on a file system different from special.

       [EACCES]       The file is not a plain file.

       [EINVAL]       Either pathname contains a character with the high-order bit set.

       [EINVAL]       The kernel has not been compiled with the QUOTA option.

       [ENAMETOOLONG] A component of either pathname exceeded 255 characters, or the entire length of either path name exceeded 1023 characters.

       [ENOENT]       The file does not exist.

       [ELOOP]	      Too many symbolic links were encountered in translating either pathname.

       [EPERM]	      The caller is not the superuser.

       [EACCES]       Search permission is denied for a component of either path prefix.

       [EIO]	      An I/O error occurred while reading from or writing to the file containing the quotas.

       [EFAULT]       The special or path points outside the process's allocated address space.

See Also
       quota(2), edquota(8), quotacheck(8), quotaon(8),
       "Disk Quotas in a UNIX Environment", Supplementary Documents, Vol. III:System Manager

																       setquota(2)
All times are GMT -4. The time now is 06:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy