Sponsored Content
Full Discussion: Removing special characters
Top Forums Shell Programming and Scripting Removing special characters Post 302417229 by anushree.a on Thursday 29th of April 2010 01:55:44 AM
Old 04-29-2010
Hi Jlliagre and Pravin,
Thank you for both the suggestions. I have tried both. However its not working may be because these special characters also contain *
so Its not removing instances like follows

e.g.
DM**&^*$#)(*CT

Please suggest.
 

10 More Discussions You Might Find Interesting

1. 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

2. Shell Programming and Scripting

removing special characters @ EOL

How to remove special chracters @ END OF EACH LINE in a file file1.txt: 0003073413^M 0003073351^M 0003073379^M 0003282724^M 0003323334^M 0003217159^M 0003102760^M 0002228911^M I used the below command but it is not working ? perl -pi -e 's/^M\/g' file1.txt (6 Replies)
Discussion started by: ali560045
6 Replies

3. AIX

Removing a filename which has special characters passed from a pipe with xargs

Hi, On AIX 5200-07-00 I have a find command as following to delete files from a certain location that are more than 7 days old. I am being told that I cannot use -exec option to delete files from these directories. Having said that I am more curious to know how this can be done. an sample... (3 Replies)
Discussion started by: jerardfjay
3 Replies

4. Solaris

removing special characters, white spaces from a field in a file

what my code is doing, it is executing a sql file and the resullset of the query is getting stored in the text file in a fixed format. for that fixed format i have used the following code:: Code: awk -F":"... (2 Replies)
Discussion started by: priyanka3006
2 Replies

5. UNIX for Dummies Questions & Answers

awk for removing special characters and extra commas

Hi, I have a .csv file which as empty lines with comma and some special characters in 3rd column as below. Source data 1,2,3,4,%#,6 ,,,,,, 1,2,3,4,5,6 Target Data 1,2,3,4,5,6I need to remove blank lines and special charcters I am trying to get this using the below awk awk -F","... (2 Replies)
Discussion started by: shruthidwh
2 Replies

6. Shell Programming and Scripting

Replace special characters with Escape characters?

i need to replace the any special characters with escape characters like below. test!=123-> test\!\=123 !@#$%^&*()-= to be replaced by \!\@\#\$\%\^\&\*\(\)\-\= (8 Replies)
Discussion started by: laknar
8 Replies

7. Shell Programming and Scripting

Removing special characters - Control M

I have developed a small script to remove the Control M characters that get embedded when we move any file from Windows to Unix. For some reason, its not working in all scenarios. Some times I still see the ^M not being removed. Is there anything missing in the script: cd ${inputDir}... (7 Replies)
Discussion started by: vskr72
7 Replies

8. Linux

File conversion and removing special characters from a file in Linux

I have a .CSV file when I check for the special characters in the file using the command cat -vet filename.csv, i get very lengthy lines with "^@", "^I^@" and "^@^M" characters in between each alphabet in all of the records. Using the code below file filename.csv I get the output as I have a... (2 Replies)
Discussion started by: dhruuv369
2 Replies

9. Shell Programming and Scripting

Removing blank/white spaces and special characters

Hello All , 1. I am trying to do a task where I need to remove Blank spaces from my file , I am usingawk '{$1=$1}{print}' file>file1Input :- ;05/12/1990 ;31/03/2014 ; Output:- ;05/12/1990 ;31/03/2014 ;This command is not removing all spaces from... (6 Replies)
Discussion started by: himanshu sood
6 Replies

10. Shell Programming and Scripting

Removing special ^M charecters

Hi, This code works for me for file in $(find /path/to/dir -type f); do tr -d '\r' <$file >temp.$$ && mv temp.$$ $file done However, i want this code to skip all .class files. Can you help me with the modified code. (2 Replies)
Discussion started by: mohtashims
2 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 04:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy