hi
I wanted to find this char " ^M " in my file and replace it with blank space.
I am using Unix system.
If i give command " :%s/^M//gc " it wont work
so can anyone tell what is command to find and replace
thankx (3 Replies)
Hi all,
My problem is the following:
I've a script that must list all files in a directory and write this information in a text file.
I've tried to get the list through ls command and then write it using msgecho
msgecho "`ls $PATH_APS_JOB_ORA`"
This works good but the created string... (7 Replies)
Hi,
I have a directory has DIR1 and the D1 directory has 200+ files.
I want change the string from "Bangalore" to "Bangaluru" in all files in the D1 directory.
Thanks (2 Replies)
Hi,
I have a file named "Test_2008_01_21"
The file contains a string "manual" that occurs many times in the file
How can i find the positions of the string "manual" in the file
Ex: if the string " manual " occurs three times in the file. i want to replace the second occurance of string... (6 Replies)
Hello Friends,
I've been trying to write a script which finds a string and change it with another string. For this i want to search all files (with its arguments) under a spesific directory and its subdirectories.
For example lets assume i want to replace an IP= 192.168.0.4 with another... (4 Replies)
Hi guys,
I´m trying to replace the 2 last folders name in a list of directories with a new string, but I´m don´t know which regex to apply.
Directories list:
C/my user/documents/games & music
C/my user/documents/photos 09-24-2008
C/my user/settings/config ?1_2
* The last folder may have... (11 Replies)
here is what i want to achieve... consider a file contains below contents. the file size is large about 60mb
cat dump.sql
INSERT INTO `table1` (`id`, `action`, `date`, `descrip`, `lastModified`) VALUES (1,'Change','2011-05-05 00:00:00','Account Updated','2012-02-10... (10 Replies)
Dear all,
I need your help, I have file like this:
file1:23456
01910964830098775635
34567
01942809546554654323
67589
26546854368698023653
09778
58716868568576876878
08675
86178546154065406546
08573
54165843543054354305
.
.file2:
23456 25
34567 26
67589 27 (2 Replies)
Dear All
I need to find and replace a string in a set of files. I try as :
#find / -name "*"|xargs grep "Tektra"|grep -v "Tektra GSM BTS"
But it doesn't work. It just finds the string in the files. I need to find and replace it.Can you please let me know how to correct it?
Thank you (2 Replies)
Hi All,
Greetings.
I have a .dat file which somewhere in its content contains symbol ""^ I want to replace it with "^
I tried with SED command but could not achieve what i wanted
sed -e "s/'""^'/'"^'/ig" filename.dat (5 Replies)
Discussion started by: MaddyS
5 Replies
LEARN ABOUT DEBIAN
ftff
FTFF(1) General Commands Manual FTFF(1)NAME
ftff - fault tolerant file find utility
SYNOPSIS
ftff [-#fFhIpq][-t#][start_directory] file_to_find
DESCRIPTION
ftff recursively descends the directory hierarchy and reports all objects in the file system with a name that approximately matches the
given filename.
ftff achieves fault tolerance by calculating the so called Weighted Levenshtein Distance. The Levenshtein Distance is defined as the
minimum number of character insertions, deletions and replacements that transform a string A into a string B.
ftff behaves like
'find start_directory -name file_to_find -print'
with the following differences:
- ftff is fault tolerant
- ftff is NOT case sensitive
- the level of fault tolerance can be adjusted by specifying the optional parameter tolerance. A tolerance of 0 specifies exact
match.
OPTIONS -h Prints a little help/usage information.
-f Follow symbolic links on directories. Note: a symbolic link like "somewhere -> .." causes naturally an endless loop. By default
ftff does not follow symbolic links to directories.
-F Classify the file type by appending a character to each file name. This character is:
'*' for regular files that are executable
'/' for directories
'@' for symbolic links
'|' for FIFOs
'=' for sockets
-p print the actual distance value in front of the filename. This value is equal to the number of insertions, deletions and replace-
ments necessary to transform the file that was found into the search key (the file_to_find).
-q keep quiet and do not print any warning about non readable directories.
-# or -t#
Set the fault tolerance level to #. The fault tolerance level is an integer in the range 0-255. It specifies the maximum number of
errors permitted in finding the approximate match. The default tolerance is (strlen(searchpattern) - number of wildcards)/6 + 1
-I Do case sensitive search (default is case in-sensitive)
file_to_find
The filename to search for. '*' and '?' can be used as wildcards.
'?' denotes one single character.
'*' denotes an arbitrary number of characters.
start_directory
The directory to start the search. The current directory is the default.
The last argument to ftff is not parsed for options as the program needs at least one file-name argument. This means that ftff -x will not
complain about a wrong option but search for the file named -x.
EXAMPLE
ftff samething
This will e.g. find a file called something or sameting or sum-thing or ...
To find all files that start with any prefix, have something like IOComm in between and end on a two letter suffix:
ftff '*iocomm.??'
To find all files that exactly start with the prefix DuPeg:
ftff -0 'dupeg*'
BUGS
The wildcards '?' and '*' can not be escaped. These characters function always as wildcards. This is however not a big problem since there
is normally hardly any file that has these characters in its name.
AUTHOR
Guido Socher (guido@linuxfocus.org)
SEE ALSO whichman(1), find(1)Search utilities August 1998 FTFF(1)