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
Hi! I know I can use the "sfk list" command like this: - Count the number of files with "(txt extension) OR (tmp extension)": sfk.exe list -dir . -file .txt .tmp +count - Count the number of files with "(not txt extension) AND (not tmp extension)": sfk.exe list -dir . -file !.txt !.tmp +count How can I get these other results? - Count the number of files with "(txt extension) OR (tmp extension) OR (without extension)" - Count the number of files with "(not txt extension) AND (not tmp extension) AND...
-i is a very old general option, to read text from stdin. i will have to add it to "sfk help opt". some commands like xed list it. and indeed filter is an exception, it doesn't need the option.
By the way, the -i option is not mentioned for sfk filter. Moreover, sfk filter mentions list of possible input sources from stdin: type x.txt | sfk filter -+pattern Maybe -i was added recently and therefore is not present in the help text?
i see that dumphelp is incomplete, you have to join that with the main help. i'll make a note if it can be improved.
I also checked sfk dumphelp for a very detailed help information - and, despite its name and description, it does not seem to include the help produced by sfk xex, for example. And the help output produced by sfk replace as well as by sfk ask do not seem to be included in the sfk dumphelp... So I'm completely confused...
I also checked sfk dumphelp for a very detailed help information - and, despite its name and description, it does not seem to include the help produced by sfk xex, for example. So I'm completely confused...
the main help cannot produce a list of all commands, there are far too many. sfk data was dropped from the main listing as I don't think it is commonly used. users will find all commands step by step through "see also" references. you can get a more complete list by sfk dumphelp | sfk filt -i -ls+sfk
At first, thank you very much for the update (1.9.9)! Now, coming to my question, I used to think that sfk >sfk.txt gives the complete list of commands available in sfk. However, comparing the output file sfk.txt produced by sfk 1.9.8.2 and 1.9.9 I noticed that sfk data - create random text and test data is present in 1.9.8.2 and absent in 1.9.9. I checked whether sfk 1.9.9 supports the command sfk data- and it actually does. So my question is: is there another way to get a complete list of all commands...
The described case works correctly now . Thank you!
there was still a bug in the code, i hope i fixed it now. please try the pre-release again.
FTP Server doesn't transfer files correctly after a typo in filename
FTP server returns unexisting files.
I confirm that 1.9.9 pre-release doesn't contain this issue. Unfortunately I can't close this ticket myself. Thank you.
this will be fixed in 1.9.9. a pre-release is now available under http://stahlworks.com/dev/pre/
FTP server returns unexisting files.
the -gb option did not work combined with -quiet. this will be fixed in 1.9.8.3. a pre-release is now available under http://stahlworks.com/dev/pre/
I have encountered a situation with a related command. On [sfk sfk Base/XD windows-any 1.9.8 2 Swiss File Knife Sep 20 2022 vc1900;x32] I found that: the command type f:\dirlist.txt|sfk.exe treesize -quiet -gb -i runs in cmd.exe, but the -gb switch has no effect on the output but in a batchfile the same command returns a warning: warn : sfk treesize: cannot read: 0 mb I:\$RECYCLE.BIN 0 mb I:\Afbeeldingen 0 mb I:\Video 0 mb I:\Websites 1 warnings occurred. the command set "dirstr=I:\$RECYCLE.BIN I:\Afbeeldingen...
I have encountered a situation with a related command. On [sfk sfk Base/XD windows-any 1.9.8 2 Swiss File Knife Sep 20 2022 vc1900;x32] I found that: the command type f:\filelist.txt|sfk.exe treesize -quiet -gb -i runs in cmd.exe, but the -gb switch has no effect on the output but in a batchfile the same command returns a warning: warn : sfk treesize: cannot read: 0 mb I:\$RECYCLE.BIN 0 mb I:\Afbeeldingen 0 mb I:\Video 0 mb I:\Websites 1 warnings occurred. the command set "dirstr=I:\$RECYCLE.BIN...
oh, I hadn't thought of that, thank you very much I had to change the separator ; to , but it works! Thank you very much
sfk csvtotab in.csv +filt -stabform "$col2\t$col5\t$col89" +tabtocsv however that requires that the lines have less than 4000 characters.
Hello, please advise. I have a CSV file (always the same name - in.csv) I have 90 columns in it, separator ; I need from in.csv only columns 2;5;89; save to the out.csv file Can I ask for advice? thank you so much
I need to pass a command line %dt% variable into the code. upd. It's a go :) set dt=11.11.2023 sfk -var setvar a=%dt% +then xed file.exe "/updater [2 digits].[2 digits].[4 digits]/updater #(a)/" -write -yes Thank you!
I need to pass a command line %dt% variable into the code.
you have to enable variable support by -var like sfk -var setvar a=11.11.2023 +then xed file.exe "/updater [2 digits].[2 digits].[4 digits]/updater #(a)/"
Can you tell me how to change the code so that instead of the system date I can apply a different date? It doesn't work: set dt=11.11.2023 sfk setvar a=%dt% +then xed file.exe "/updater [2 digits].[2 digits].[4 digits]/updater #(a)/"
sfk csvtotab in.csv +filt -skipfirst=1 sfk csvtotab in.csv +xed "_[start]*[eol]__" an option directly at csvtotab would make sense, i will add this to the feature idea list.
Hi, I need to drop the first line (the header) of a CSV that I am converting to a tab-delimited file, and I was wondering if there was a cute way to do this in a single (chained) command? I am not seeing an explicit argument in the code/documentation for csvtotab/head/tail, so is there a cute undocumented way to do this? Failing that, my next option would be to modify the public source code I guess, and so what would be the best/preferred approach to adding this feature to sfk? 1) Add a new option...
Thank you for the fast response. Now I get rc 3 for wrong ip, wrong send port and wrong receive port. That's ok, now I know communication did not work.
will be added. if you like you can test the pre-release under http://stahlworks.com/dev/pre/
this fill be fixed, a pre-release is available under http://stahlworks.com/dev/pre/
no, the long syntax version of -dir ... -file ... must be given last.
Please add an rc/errorlevel for the udpsend command
Here is an example for the -context issue. Let's consider the following folder structure: subfolder1\ readme.txt subfolder2\ readme.txt Each "readme.txt" contains the following text: word line2 line3 line4 line5 And here is the output of sfk filter -head=6 -context=3 -+word -dir . -file readme.txt : subfolder1\readme.txt : word line2 line3 line4 subfolder2\readme.txt : line5 word line2 line3 line4 The presence of "line5" in the output for the "subfolder2\readme.txt" is incorrect.
Also I've seemed to find an issue with this command: sfk filter -head=6 -context=3 -+word -dir . -file readme.txt You see, when I run this command in a folder that has several subfolders and each subfolder contains its own "readme.txt", the -context=3 seems to pick upper lines from "readme.txt" of the previous folder when the searched "word" is found at the first line of "readme.txt" of the current folder.
A quick question: why this works correctly -- sfk filter -head=5 -+word -dir . -file readme.txt whereas the same parameters given in different order produce errors? -- sfk filter -dir . -file readme.txt -head=5 -+word Shouldn't both commands work identically?
There is no command for that. What is available on Windows: sfk list -time mydir -> lists modification times sfk list -time -usectime mydir -> lists creation times but atime is not available here. sfk filetime -full -flat2 mydir lists all times per file, including atime. That would be more helpful for your case. sfk touch -mtime ... -> sets only modification time for a file sfk touch -ctime ... -> sets only creation time for a file sfk touch -atime ... -> sets only access time for a file This may...
Hello, I'm having some trouble figuring this out. Any help would be appreciated. I would like to know the exact SFK command to backup the Created, Modified and Accessed dates/times of multiple files including in sub-folders to a text file then to know the exact SFK command to restore the Created, Modified and Accessed dates/times from the list of them in that text file and apply those dates/times back to the files later. Thanks in advance!
Hello, I'm having some trouble figuring this out. Any help would be appreciated. I would like to know the exact SFK command to backup the Created, Modified and Accessed dates/times of multiple files including in sub-folders to a text file then to know the exact SFK command to restore the Created, Modified and Accessed dates/times from the list of them in that text file and apply those dates/times to the files. Thanks in advance!
Thank you for the clarification! Indeed, after seeing the convertion warning by sfk and analyzing the file content, I can confirm the file contains a few UTF-8 characters which are out of scope of cp1251. As a suggestion, maybe dview could also show a warning in this case and replace these unknown (unconvertible) characters as e.g. ? ?
the release notes say that it should safely work only if system and input text are codepage 1250 or 1252. dview contains experimental support for some other codepages, which may work or not. first, find out - what the codepage of your system is. - what the codepage of your input text is. then you can do some testing with: sfk utoa for example, sfk load AdvCmpExRus.lng +utoa -codepage=1251 tries an utf-8 to ansi conversion using codepage 1251. but it produces a warning warn : sfk utoa: 6 chars failed...
Indeed, it does! I mistakenly thought that it doesn't because some files are not shown as UTF-8 even though they have the UTF-8 BOM and contain proper UTF-8 sequences. I'm attaching a couple of files which are not detected as UTF-8 by Depeche View. These files are expected to be shown correctly since the Windows ANSI encoding is cp1251 (Cyrillic).
Indeed, it does! I mistakenly thought that it doesn't because some files are not shown as UTF-8 even though they have the UTF-8 BOM and contain proper UTF-8 sequences. I'm attaching a copule of files which are not detected as UTF-8 by Depeche View. These files are expected to be shown correctly since the Windows ANSI encoding is cp1251 (Cyrillic).
Indeed, it does! I mistakenly thought that it doesn't because some files are not shown as UTF-8 even though they have the UTF-8 BOM and contain proper UTF-8 sequences. I'm attaching a copule of files which are not detected as UTF-8 by Depeche View.
the latest version of dview is 1.7.4, and it can edit utf-8 text files since a year.
Thank you for the update of the sfk to 1.9.8.2! Great to know the development is going on! Another part of my question is about Depeche View. You see, when I ran "sfk update" using sfk 1.9.8.0, it showed at the end: - Depeche View can now edit UTF-8 text files if text and system code page are 1250 or 1252. - DView Lite can now edit all loaded files. So I've checked http://stahlworks.com and https://sourceforge.net/projects/swissfileknife/files/ , and both of them have dview version 1.7.4.0 from the...
no promises. there are many ideas on the list, but nearly no development since a year.
Thanks a lot. Will be eagerly waiting for those features to be implemented 😇⭐
Is there an option for sfk list that limits the number/depth of sub-directories to include? Right now it's either all or nothing (with -nosub). no, because in most cases only all or nothing makes sense. but i will add this to the list of feature ideas. Another feature I'd love to see is a human-friendly size option that mixes bytes, kb, mb and gb depending on how big the file size is :) i will add this also to the list of ideas.
Is there an option for sfk list that limits the number/depth of sub-directories to include? Right now it's either all or nothing (with -nosub). Just discovered this amazing tool and I'm taken aback by how powerful and flexible it is. Yet, I'm missing some features that other more limited tools have. Another feature I'd love to see is a human-friendly size option that mixes bytes, kb, mb and gb depending on how big the file size is :)
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.
Hello, Yes your solution is the best, i will do a check removing the quote but yesterday this was working with small amount of files, the problem was with big amount of files. I done with one pattern because i wanted have a visual on each pattern where they was in each file, i reco wasn't a good idea. For the accent ok i will do as you wrote, Thank you and have a good day
Hello, Yes your solution is the best, i will do a check removing the quote but yesterday this was working with small amount of files, the problem was with big amount of files. I done with one pattern because i wanted have a visual on each pattern where they was in each file, i reco wasn't a good idea. For the accent ok i will as you wrote, Thank you and have a good day
Hello, Yes your solution is the best, i will do a check removing the quote but yesterday this was working with small amount of files, the problem was with big amount of files. I done with one pattern because i wanted have a visual on each pattern where they was in each file, i reco wasn't a good idea. For the accent ok i will as you wrote, Thank you and have a good day
in your command sfk.exe xtext -to output\$file -dir input -file .txt -text "/ ::log::/" "/ ERR /" "/ checkLidarIntegrity/" "/ BAU : BP demande d'arr??t d'urgence/" "/ empoussi??rement Lidar/" "/ waitForDirHommingDone !/" "/ erreur interne/" -yes you search 7 patterns in one go. in your batch file, however you run 7 searches with 1 pattern each which is very inefficient and each pattern seems wrong as you wrote " ::log:: " " ERR " " checkLidarIntegrity" in search.txt including quotes. drop the quotes....
Hello, I extract data using this command sfk.exe xtext -to output\$file -dir input -file .txt -text "/ ::log::/" "/ ERR /" "/ checkLidarIntegrity/" "/ BAU : BP demande d'arr??t d'urgence/" "/ empoussi??rement Lidar/" "/ waitForDirHommingDone !/" "/ erreur interne/" -yes When i use my script i don' t find the same there is a big difference i checked with depecheview the command line do well. i attached the script and list.txt and result, i don't understand why isn't working I use latest version of...