Thank you very much! sfk is fantastic, the code works as it should! sfk -var xhexfind -firsthit 7z2600.exe "_/assembly_" +xex "_[start]*offset * _[part4]_" +setvar a +calc "#(a)+26" +setvar a +partcopy 7z2600.exe 0 #(a) out_x86.exe -yes
this will copy the data until before /assembly sfk -var xhexfind -firsthit 7z2600.exe "_/assembly_" +xex "_[start]*offset * _[part4]_" +setvar a +partcopy 7z2600.exe 0 #(a) out.exe -yes if you want to include /assembly you have to insert: +calc "#(a)+9" +setvar a
Please tell me how to use SFK to search for a text string and create a new file without lines below the desired one +1 example: in the file 7z2600.exe you need to find the line "/assembly" (hex 00008fd0), create a new file out.exe (hex 00000000 - hex 00008fe0)
Tell me how to use sfk to find a text string and create a new file with no lines one after the other below the one you are looking for. example: in the file 7z2600.exe you need to find the line "/assembly" (hex 00008fd0), create a new file out.exe (hex 00000000 - hex 00008fe0)
the format is not like printf, but as documented under -form "$40col1 $-3.5col2 $05qline $(10.10qcount+1000)" reformat column 1 as right-ordered with at least 40 chars, column 2 left- ordered with at least 3 and a maximum of 5 chars, then add the input line number, "q"uoted, right justified with 5 digits, prefixed by zeros, then the output line number plus 1000 within quotes. NOTE: some examples may not work in an sfk script, see section "common errors" below. adding values so far only works with...
I am trying to use SFK to process a CSV file. In the file, I only want columns 1 and 15 in the output. I also want to ignore the first 10 lines, any empty lines, and any lines beginning with the string "Ignore". Here is my code: sfk filter "input.csv" -skipfirst=10 -no-empty-lines -ls!"Ignore" -spat -within "\q*\q" -rep _,_\x01_ -rep _,_\t_ -rep _\x01_,_ -tabform "$-8col1 $12.0col15" Everything works as expected, except for the -tabform output. I want to format the output of column 15 as an integer....
Just fitting the portable power station into a wall power source and it charges rapidly. Some power stations may likewise charge in a vehicle electrical plug, gave they have the right connector, however this takes more time than it does in a standard outlet.
how to delete the field that was found ? Thanks sfk.exe hexfind system.img -binary "/34100000EFFCFAFE050004003D84140001000000356635316162326561636162613138626463646137323630306334333837373000100000/"
Healsend is a health‑service platform focused on helping people with weight loss through prescription GLP‑1 treatments. They make it relatively easy to begin: you fill out questions online about your health and weight goals, a provider reviews your answers (and possibly some metabolic lab tests), and if appropriate you receive a tailored medication plan. As a member, you also get ongoing support — things like messaging providers, adjusting treatment as needed, and help with insurance or paperwork....
Brat Green album Generator is a fun and easy tool that lets you turn simple text into bold, Brat-style visuals in seconds. Inspired by Charli XCX’s iconic Brat album aesthetic, it’s designed to give your words that unapologetically loud and stylish vibe without any hassle. You can customize the look with classic brat green, clean white, hot pink, or black, play around with fonts, add blur, and adjust the layout until it feels just right. The best part is that it’s free, quick, and mobile-friendly,...
Could it be possible to force utf8 loading bypassing conversion error inserting a specific char instead (•) or whatever. I have some utf-8 file with few Japanese letters but a lot of accentuated french char. If i load the file i see ugly combination each time multi-byte sequence is met event if it can be rendered in windows-1252 cp. Conversion errors are not listed so i cannot see the file correctly nor correct it. The file is generated inside a zip and manipulations with iconv can be done but need...
fixed.
fixed.
try "sfk partcopy", maybe also combined with "sfk join".
added it.
As the subject says, a file "sfk-winxp.exe" seems to be missed in the sfk 2.0.0.3 release. I still prefer this 32-bit version to be sure it will run on old 32-bit machines.
Hi again ! I have a PHP/Javascript program. Do you happen to know if it's possible to run that code from Javascript ? Or any other solution to make Windows Explorer open the directory.
The sfk tool is really amazing. How to replace binary file in range? I wanna just patch the range from 0x1234 to 0x5678 of binary file, but I just find -maxscan option from program help print, can you help me? Thank you.
'register' storage class specifier is deprecated and incompatible with C++17
Managing files efficiently is just like organizing your favorite drinks from the https://lihoteasg.com/liho-membership/ menu—having the right system makes everything smoother! Whether it’s sorting files or choosing your perfect bubble tea combination, a well-structured approach saves time and avoids confusion. Just like how LiHO members enjoy exclusive perks and rewards, the right tools help streamline processes effortlessly. Stay updated and enjoy the best of both worlds—efficiency in work and delicious...
Wow, you are Fantastic !!!!! It works 100%. Thanks a Lot ! Den fre 3 jan. 2025 kl 09:11 skrev stahlworks stahlworks@users.sourceforge.net: try this: sfk fromclip +filter -ansitodos >tmppath.txtset /P usepath=<tmppath.txt%SystemRoot%\explorer.exe /e,%usepath% i will have to document -ansitodos, but maybe i rename it to -ansitooem. "sfk fromclip" not showing swedish characters correctly https://sourceforge.net/p/swissfileknife/discussion/542476/thread/eebbb3570e/?limit=25#8bf0 Sent from sourceforge.net...
Wow, you are Fantastic !!!!! It works 100%. Thanks a Lot !
try this: sfk fromclip +filter -ansitodos >tmppath.txt set /P usepath=<tmppath.txt %SystemRoot%\explorer.exe /e,%usepath% i will have to document -ansitodos, but maybe i rename it to -ansitooem.
Hi and thanks for a quick response. It worked using >out.txt, all characters are OK. In my example out.txt holds the adress to a folder i.e. c:\test\sfk, when trying to use it to open file explorer: "sfk fromclip>out.txt %SystemRoot%\explorer.exe /e,/%out.txt" It doesn't work, It opens the standard documents folder A few years ago I used the window.open in my js application: window.open(newpath, 'explorer'); But browsers doesn't allow that anymore due to security reasons. So, now my JS application...
this command reads text from the clipboard in Ansi encoding. when using just sfk fromclip the text is printed without any OEM conversion, displaying accents or umlauts wrong. it is done so as people may also use "sfk fromclip >out.txt" in which case it should not be converted, but sfk cannot detect if the output is redirected to file. use "sfk fromclip +toterm" if you want accent characters printed correctly to terminal. i will extend the help text accordingly.
When using "sfk fromclip" it reads the clipboard but the swedish characters "å,ä,ö,Å,Ä,Ö" does not shows correctly. I.e. "Hellre en skrynklig själ än ett slätstruket liv" will be shown as "Hellre en skrynklig sjõl õn ett slõtstruket liv". Do you know how to fix this ?
Are they also include file template for project managers? I am James Gedeon Concord NH and seriously it create a lot of mess in files.
confirmed, the ChangeLog will be fixed in the next release. for now you have to use the changes.txt instead, or you can download the updated .tar.gz from stahlworks.com/dev/sfk/sfk-2.0.0.tar.gz
ChangeLog is empty in sfk-2.0.0.tar.gz
should i switch stahlworks.com to ssl some day, the update command would no longer work. you can subscribe to the sourceforge rss https://sourceforge.net/projects/swissfileknife/rss?path=/1-swissfileknife
Thanks to the command sfk update, I know that sfk 2.0.0 has been released. Now, sfk 2.0.0 no more supports the command sfk update. And it will be very hard to know whether a new version of sfk is available or not.
Just checked sfk 2.0.0, and sfk dumphelp still does not include the topics of sfk ask, sfk replace -full and sfk xex.
Swiss File Knife 2.0.0 Released
search the dview-config for "supported variables". Nothing in dview-config, but found it within the help section. $findmask This, exactly what I was looking for. Thank you!
search the dview-config for "supported variables". you may try $findmask for the current searched text.
I mean to specify the $searchtext command line parameter to pass to the external editor. Now I see there's only $linenum and $colnum. // default command to run an external editor by CTRL+E. // this can only be a single line, starting with "runeditor", // for example: // runeditor "c:\Program Files\myeditor\myeditor.exe" "$absfile" runeditor "c:\Program Files\myeditor\myeditor.exe" "$absfile":$linenum:$colnum Like this tool
dview has command line options: -find "the text" instant search after startup for the text -sfind "the \qtext\q" instant search with slash pattern support -path "foo\src" set path mask directly on startup -spath "foo\\src" set path mask using slash patterns
Hi, it would be great to add the "searched text" command line parameter. Some editors allows to highlight it, very useful. For example: notepad2.exe /g 450,11 /m "searched text" c:\path\example.txt
Please add Dark Theme for httpserv. my eyes hurt
Please add Dark Theme for httpserv
the first idea would be to use sfk sel -justdirs -dir . -subdir .vs +deltree -yes but there is a problem: the sel passes a list of folder names. deltree itself can only delete a single folder, not a list of folders, which is not easy to fix. so run is the workaround, or alternatively sfk sel -justdirs -dir . -subdir .vs +perline "sfk deltree $qtext -yes" -yes
Been a fan of this tool for a long time, @stahlworks. Thanks for that. My local sfk command is a bash function. I rarely want to see subtrees, and instead of a d type short alias, locally set up as # sfk without args for cwd otherwise turn off subdirs default function sfk() { if [ "$#" -eq 0 ]; then /usr/local/bin/sfk -nosub dir -size -latest . else /usr/local/bin/sfk -nosub "$@" fi } # sfk designer intent, subdirs by default alias sfks='/usr/local/bin/sfk' But that is an individual preference (or...
I'd like to delete all the ".vs" folder across several directories with Visual Studio's projects. After some experiments I've eventually finished with the following, and I'll explain why below: sfk sel -justdirs -hidden -dir . +filter -+.vs +run "sfk deltree -hidden -withdirs -yes $file" -yes Here are my explanations: - Since I wanted to select folders with the exact name of ".vs", I used the construction of sel -justdirs -hidden -dir . +filter -+.vs because I could not understand how to achieve...
it seems tempting to use "sfk ." for something, but i never have the need to do a "sfk dir ." as normally it gives me an endless content of the large folders i'm in, without a helpful order. if i enter a folder, i use "dir /OD" sometimes, but not so often to make a short command from that. so i cannot decide to reuse "sfk ." this way. if you often want to list the current folder including all subfolders, i recommend to create an alias: sfk alias d sfk dir . and then type "d" to use it.
sfk . should maybe list the current directory instead of error: sfk .: unknown command: . 1 errors occurred. ?? I envision sfk . plain, nothing else, being aliased as sfk dir . If and only if, detecting that dot doesn't mess up the current, very powerful, command and option handling. Adding some kudos for Swiss File Knife. Well done, StahlWorks.
will be documented in the next update.
Can be solved using the undocumented parameter -ignoretime: "sfk list -sincedif a b -ignoretime"
Can be solved using the undocumented parameter -ignoretime: "sfk list -sincedif a b -ignoretime"
Hello: I have two subdirectories a and b, and inside each subdirectory is a binary file, for example hello.exe "sfk list -sincedif a b" does not work (does not give "[dif] b\hello.exe") if a\hello.exe and b\hello.exe are different (for example, hexediting a\hello.exe" AND have the same date and time. It seems that if the files to compare have the SAME date and time compare does not proceed. If I do "sfk touch hello.exe" and then I do "sfk list -sincedif a b" gives the correct result: "[dif] b\hello.exe"...
"sfk list -sincedif" or "sfk list -sincedir" does not work if there are different binary files with the same name and exact date and time
I'm looking for a way to list files by file attribute (eg. if the archive attribute is set). Is this possible?
I completely missed the "sel" command and that I can concatenate multiple "-dir . -file extension" parameters, nice! "without extension" already includes "not * extension" You are obviously right! The correct query was "Count the number of files with "(not txt extension) AND (not tmp extension) AND (with extension)" However, now I understand better how it works! Thanks so much! =)
I completely missed the "sel" command and that I can concatenate multiple "-dir . -file extension" parameters, nice! "without extension" already includes "not * extension" therefore You are obviously right! The correct query was "Count the number of files with "(not txt extension) AND (not tmp extension) AND (with extension)" However, now I understand better how it works! Thanks so much! =)
Count the number of files with "(txt extension) OR (tmp extension) OR (without extension)" sfk sel -dir . -file .txt .tmp -dir . -file !.* +count Count the number of files with "(not txt extension) AND (not tmp extension) AND (without extension)" "without extension" already includes "not * extension" therefore sfk sel . !.* +count