Sponsored Content
Full Discussion: Find and Remove
Top Forums Shell Programming and Scripting Find and Remove Post 302553073 by btt3165 on Tuesday 6th of September 2011 03:38:44 PM
Old 09-06-2011
Thanks @ rangarasan it did work.

used
Code:
sed -e 's/[#*#*]*[*#*#]*[!!@!#]*[&*(%(] //g' test_1.dat > test_2.dat

@ sk1418
the "*" in the string provided is "*" and not wild cast.

Thanks.

Last edited by Franklin52; 09-07-2011 at 03:31 AM.. Reason: Please use code tags for code and data samples, thank you
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

find, remove, and ftp......

I have a script that is run each night by cron. This script generates an extract then places it into an 'extracts' folder and also ftp's a copy to another server. I have set up the script to remove any files in the extracts folder greater than 28 days old (this occurs each time the script is... (1 Reply)
Discussion started by: peter.herlihy
1 Replies

2. UNIX for Dummies Questions & Answers

Find and Remove help needed!!!!

thank you for the help. (1 Reply)
Discussion started by: scooter17
1 Replies

3. UNIX for Dummies Questions & Answers

FIND and REMOVE HELP NEEDED!!!

Hello, I am aware of that Find command finds certain files and remove command removes certain files. However, is there a way to Find certain DIRECTORY and remove that DIRECTORY? thank you (3 Replies)
Discussion started by: scooter17
3 Replies

4. UNIX for Dummies Questions & Answers

Find and remove command - can you tell me exactly what its doing?

find /app01/tomcat_local -name *jsp* -type f -exec rm -r {} \; I would assume the above is just deleting any *jsp* below the /app01/tomcat_local directory - is this correct as its seems to delete more than I expect.... (1 Reply)
Discussion started by: frustrated1
1 Replies

5. Shell Programming and Scripting

find regex and remove #

hi , how do i remove # from a line where i found regex.. don't need to remove all the line.. only remove comment.. (3 Replies)
Discussion started by: Poki
3 Replies

6. Shell Programming and Scripting

Find and Remove rows

******************************************* * ROW * ******************************************* CODE:CODE1 FILE: FILE1 FIELD: FIELD1 KEY: KEY1 ORA-00001: unique constraint (ETL.KEY_PK) violated ******************************************* * ROW * *******************************************... (7 Replies)
Discussion started by: Shanks
7 Replies

7. Shell Programming and Scripting

Find and remove some line

hello im working on shell script to search conf file. if it find special pattern change it. like: #send_value=0 change it to send_value=1 (remove # and replace 0 with 1) how can i find and replace character on file? (1 Reply)
Discussion started by: nimafire
1 Replies

8. Shell Programming and Scripting

Remove ./ from result when i do find

Hi All, When i do find command i am getting result which append ./ before the file name. For example if i am trying to search aaa.txt in current directory i am using find like this: $ find . -name aaa.txt result: ./aaa.txt Now i want to remove "./" from the file name. Can some body... (5 Replies)
Discussion started by: VasuKukkapalli
5 Replies

9. UNIX for Dummies Questions & Answers

Using find with awk to remove newlines

I want to list all html files present in a directory tree, the remove the newline and get one string with a space between files find /home/chrisd/Desktop/seg/geohtml/ -name '*.html' | awk BEGIN{FS=\r} '{print}' ---------- Post updated at 06:47 PM ---------- Previous update was at 06:25 PM... (5 Replies)
Discussion started by: kristinu
5 Replies

10. UNIX for Beginners Questions & Answers

Bash to remove find and remove specific extension

The bash below executes and does find all the .bam files in each R_2019 folder. However set -x shows that the .bam extension only gets removed from one .bam file in each folder (appears to be the last in each). Why is it not removing the extension from each (this is $SAMPLE)? Thank you :). set... (4 Replies)
Discussion started by: cmccabe
4 Replies
xstr(1) 						      General Commands Manual							   xstr(1)

NAME
xstr - extract strings from C programs to implement shared strings SYNOPSIS
[file] DESCRIPTION
maintains a file into which strings in component parts of a large program are hashed. These strings are replaced with references to this common area. This serves to implement shared constant strings, which are most useful if they are also read-only. The command: extracts the strings from the C source in name, replacing string references with expressions of the form for some number. An appropriate declaration of is placed at the beginning of the file. The resulting C text is placed in the file for subsequent compiling. The strings from this file are placed in the database if they are not there already. Repeated strings and strings that are suffixes of existing strings do not cause changes to the data base. After all components of a large program have been compiled, a file declaring the common space, can be created by the command: This file should then be compiled and loaded with the rest of the program. If possible, the array can be made read-only (shared), saving space and swap overhead. can also be used on a single file. A command: creates files and as before, without using or affecting any file in the same directory. It may be useful to run after the C preprocessor if any macro definitions yield strings or if there is conditional code containing strings that are not, in fact, needed. reads from its standard input when the argument is given. An appropriate command sequence for running after the C preprocessor is: does not touch the file unless new items are added, thus can avoid remaking unless truly necessary (see make(1)). WARNINGS
If a string is a suffix of another string in the data base, but the shorter string is seen first by both strings are placed in the data base, when placing only the longer one there would be sufficient. AUTHOR
was developed by the University of California, Berkeley. FILES
Data base of strings Massaged C source C source for definition of array Temp file when `xstr name' does not touch SEE ALSO
mkstr(1). xstr(1)
All times are GMT -4. The time now is 01:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy