3,760
Loading...
Uploader Comments (blackturtleshow)
Video Responses
This video is a response to Cmd tricks that will blow your mind
see all
All Comments (21)
-
@PIKAMONjake Actually, I have a Windows computer, as well as two Macs and two Linux boxes. It might be some kind of addiction! ;)
-
machontosh huh, im a loyal windows user but mac is pretty popular these days
-
@wowonice1 Actually the demo program is really short, so here's the whole thing:
#!/usr/bin/perl
$str = "TTAAGGCCATGCGGATACACGATGAC";
print "ORIGINAL: $str\n";
$str =~ s/T/U/g;
print "AFTER SUBSTITUTION: $str\n";
FROM:
blackturtle.us/BIOINFO/BIOPERL
2/bp2_02.html -
$str =~ s/T/U/g;
This line substitutes a U for all instances of T in the string $str (in this case a nucleotide sequence).
Loading...
Now I can hide dirty pictures from anyone on plain sight =)
symptomxx 1 week ago
@symptomxx There are many much more powerful forms of encryption and obfuscation available to take care of those nasty pics! This is just a fun little experiment! Thanks for watching and commenting!
blackturtleshow 1 week ago
Can't you just use perl -pie? Easier to remember and mmm... perl pie. Also, that's only reversible if the word starts with the letter being replaced. If you were to do /d/california/, then any original instances of california in the file (not likely in a JPEG) will be mangled when you do /california/d/.
uzimonkey 2 months ago
@uzimonkey Thanks for watching! Using -pie won't work. (I double-checked just now.) Secondly, it doesn't matter what the word STARTS with. All that matters is that the new pattern that is created doesn't already exist in the target file. That's what I mean by one-to-one and many-to-one pattern substitutions. I didn't explain this fully or give examples since I wanted to keep the video short. Also I figured people who are interested would experiment around and figure it out that way.
blackturtleshow 2 months ago
@blackturtleshow Actually, it will work if california already exists in the file and you use c. If you do /c/california/ it would end up as califroniaalifornia, which will go back to california when you do /california/c/.
uzimonkey 2 months ago
@uzimonkey True, but in that case you're modifying an existing pattern as opposed to replicating an existing pattern.
blackturtleshow 1 month ago