I have a list of files all over a file system e.g.
Code:
/home/1/foo/bar.tx
/www/sites/moose/foo.txt
I'm looking for strings in these files and want to replace each occurrence with a replacement string, e.g.
if I find: '#@!^\&@ in any of the files I want to replace it with: 655#@11, etc.
There are around 120 substitutions and around 4,600 files.
One issue: these strings are passwords
I have a 30gb disk image of a borked partition (think dd if=/dev/sda1 of=diskimage) that I need to recover some text files from. Data carving tools like foremost only work on files with well defined headers, i.e.
Hi, since three days i have this problem.
The speakerphone switches off during calls unexpectedly! On Skype duting videocalls i have the same problem snd the audio switches to the frontal ear.
The configuration is in signature with last official Jelly Bean version (4.1.2).
Thank you for your attention.
Sent from rooted Int. Galaxy S3 with stock JB using Tapatalk - Rome, Italy
Hi All
I'm having a problem grep'ing files for a certain string on my server. The command I'm using is:
find .
I have this bash script:
for opt in string1 string2 string3 ... string99
do somestuff
It works, but I would like to replace the explicit listing of my strings with a file which actually contains all the strings; something like this:
strings=loadFromFile
for opt in $strings
do somestuff
How should I do this?
KSH
HP-SOL-Lin
Cannot use xAWK
I have several strings that are quite long and i want to break them down into smaller substrings.
What I have
Code:
String = "word1 word2 word3 word4 .....wordx"
What I want
Code:
String1="word1 word2"
String2="word 3 word4"
String3="word4 word5"
Stringx="wordx wordx+1"
etc.....
How Can i bre
I have a batch file that, among other things, uses the command mmv to rename some files. The relevant line is like this:
mmv "$BASEDIR/files/*.txt" "$BASEDIR/files/#1.strings"
In essence it works, but the problem is that it keeps asking me for confirmation to overwrite files when they happen to already exist.
I need a utility which will scan in a text file and search and replace strings. I also want to keep track of how many strings I've replaced. The following is an example paragraph and which text to replace.
"Bill Gates" with "Mr. Noodles",
"Gates" with "Noodles",
I am beginner developer at RoR and I use vim as my text editor. But when I try save file(in particular *.haml files) it take a lot of time (3-4 seconds). And does not matter how many strings in file.
Where is a problem?