Activity for Swiss File Knife

  • stahlworks stahlworks posted a comment on ticket #55

    will be documented in the next update.

  • gonzalo fernandez gonzalo fernandez posted a comment on discussion 01 SFK Help

    Can be solved using the undocumented parameter -ignoretime: "sfk list -sincedif a b -ignoretime"

  • gonzalo fernandez gonzalo fernandez posted a comment on ticket #55

    Can be solved using the undocumented parameter -ignoretime: "sfk list -sincedif a b -ignoretime"

  • gonzalo fernandez gonzalo fernandez posted a comment on discussion 01 SFK Help

    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"...

  • gonzalo fernandez gonzalo fernandez created ticket #55

    "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

  • Valrith Valrith posted a comment on discussion 01 SFK Help

    I'm looking for a way to list files by file attribute (eg. if the archive attribute is set). Is this possible?

  • Mobius Mobius modified a comment on discussion 01 SFK Help

    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! =)

  • Mobius Mobius posted a comment on discussion 01 SFK Help

    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! =)

  • stahlworks stahlworks posted a comment on discussion 01 SFK Help

    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

  • Mobius Mobius posted a comment on discussion 01 SFK Help

    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...

  • stahlworks stahlworks posted a comment on discussion 02 SFK Open Discussion

    -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.

  • DV DV posted a comment on discussion 02 SFK Open Discussion

    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?

  • stahlworks stahlworks posted a comment on discussion 02 SFK Open Discussion

    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.

  • DV DV modified a comment on discussion 02 SFK Open Discussion

    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...

  • DV DV posted a comment on discussion 02 SFK Open Discussion

    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...

  • stahlworks stahlworks posted a comment on discussion 02 SFK Open Discussion

    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

  • DV DV posted a comment on discussion 02 SFK Open Discussion

    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...

  • Swiss File Knife Swiss File Knife updated /1-swissfileknife/1.9.9.0/readme.txt

  • Swiss File Knife Swiss File Knife released /1-swissfileknife/1.9.9.0/sfk199-winxp.exe

  • Swiss File Knife Swiss File Knife released /1-swissfileknife/1.9.9.0/sfk199-x64.exe

  • Swiss File Knife Swiss File Knife released /1-swissfileknife/1.9.9.0/sfktray-set-up.exe

  • Swiss File Knife Swiss File Knife released /1-swissfileknife/1.9.9.0/sfk199-mac-64.exe

  • Swiss File Knife Swiss File Knife released /1-swissfileknife/1.9.9.0/sfk199-linux-64.exe

  • Swiss File Knife Swiss File Knife released /1-swissfileknife/1.9.9.0/sfk199.exe

  • Swiss File Knife Swiss File Knife released /1-swissfileknife/1.9.9.0/sfk199.zip

  • Swiss File Knife Swiss File Knife released /1-swissfileknife/1.9.9.0/sfk-1.9.9.tar.gz

  • Swiss File Knife Swiss File Knife released /1-swissfileknife/1.9.9.0/readme.txt

  • Ihar Areshchankau Ihar Areshchankau posted a comment on ticket #54

    The described case works correctly now . Thank you!

  • stahlworks stahlworks posted a comment on ticket #54

    there was still a bug in the code, i hope i fixed it now. please try the pre-release again.

  • Ihar Areshchankau Ihar Areshchankau created ticket #54

    FTP Server doesn't transfer files correctly after a typo in filename

  • stahlworks stahlworks modified ticket #53

    FTP server returns unexisting files.

  • Ihar Areshchankau Ihar Areshchankau posted a comment on ticket #53

    I confirm that 1.9.9 pre-release doesn't contain this issue. Unfortunately I can't close this ticket myself. Thank you.

  • stahlworks stahlworks posted a comment on ticket #53

    this will be fixed in 1.9.9. a pre-release is now available under http://stahlworks.com/dev/pre/

  • Ihar Areshchankau Ihar Areshchankau created ticket #53

    FTP server returns unexisting files.

  • stahlworks stahlworks posted a comment on discussion 01 SFK Help

    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/

  • Victor van Beijma Victor van Beijma modified a comment on discussion 01 SFK Help

    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...

  • Victor van Beijma Victor van Beijma posted a comment on discussion 01 SFK Help

    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...

  • Petr Cihelka Petr Cihelka posted a comment on discussion 01 SFK Help

    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

  • stahlworks stahlworks posted a comment on discussion 01 SFK Help

    sfk csvtotab in.csv +filt -stabform "$col2\t$col5\t$col89" +tabtocsv however that requires that the lines have less than 4000 characters.

  • Petr Cihelka Petr Cihelka posted a comment on discussion 01 SFK Help

    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

  • AlexS AlexS modified a comment on discussion 01 SFK Help

    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!

  • AlexS AlexS posted a comment on discussion 01 SFK Help

    I need to pass a command line %dt% variable into the code.

  • stahlworks stahlworks posted a comment on discussion 01 SFK Help

    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)/"

  • AlexS AlexS posted a comment on discussion 01 SFK Help

    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)/"

  • stahlworks stahlworks posted a comment on discussion 01 SFK Help

    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.

  • Erik Lindsley Erik Lindsley posted a comment on discussion 01 SFK Help

    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...

  • grobbla grobbla posted a comment on ticket #14

    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.

  • stahlworks stahlworks posted a comment on ticket #14

    will be added. if you like you can test the pre-release under http://stahlworks.com/dev/pre/

  • stahlworks stahlworks posted a comment on discussion 02 SFK Open Discussion

    this fill be fixed, a pre-release is available under http://stahlworks.com/dev/pre/

  • stahlworks stahlworks posted a comment on discussion 02 SFK Open Discussion

    no, the long syntax version of -dir ... -file ... must be given last.

  • grobbla grobbla created ticket #14

    Please add an rc/errorlevel for the udpsend command

  • DV DV posted a comment on discussion 02 SFK Open Discussion

    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.

  • DV DV posted a comment on discussion 02 SFK Open Discussion

    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.

  • DV DV posted a comment on discussion 02 SFK Open Discussion

    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?

  • stahlworks stahlworks posted a comment on discussion 01 SFK Help

    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...

  • Josh 776 Josh 776 modified a comment on discussion 01 SFK Help

    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!

  • Josh 776 Josh 776 posted a comment on discussion 01 SFK Help

    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!

  • DV DV posted a comment on discussion 01 SFK Help

    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. ? ?

  • stahlworks stahlworks posted a comment on discussion 01 SFK Help

    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...

  • DV DV modified a comment on discussion 01 SFK Help

    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).

  • DV DV modified a comment on discussion 01 SFK Help

    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).

  • DV DV posted a comment on discussion 01 SFK Help

    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.

  • stahlworks stahlworks posted a comment on discussion 01 SFK Help

    the latest version of dview is 1.7.4, and it can edit utf-8 text files since a year.

  • DV DV posted a comment on discussion 01 SFK Help

    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...

  • Swiss File Knife Swiss File Knife released /1-swissfileknife/1.9.8.2/sfk198.exe

  • Swiss File Knife Swiss File Knife released /1-swissfileknife/1.9.8.2/sfk198-x64.exe

  • Swiss File Knife Swiss File Knife released /1-swissfileknife/1.9.8.2/sfktray-set-up.exe

  • Swiss File Knife Swiss File Knife released /1-swissfileknife/1.9.8.2/sfk-1.9.8.tar.gz

  • Swiss File Knife Swiss File Knife released /1-swissfileknife/1.9.8.2/sfk198-winxp.exe

  • Swiss File Knife Swiss File Knife released /1-swissfileknife/1.9.8.2/sfk198-linux-64.exe

  • Swiss File Knife Swiss File Knife released /1-swissfileknife/1.9.8.2/sfk198-mac-64.exe

  • Swiss File Knife Swiss File Knife released /1-swissfileknife/1.9.8.2/sfk198.zip

  • Swiss File Knife Swiss File Knife released /1-swissfileknife/1.9.8.2/readme.txt

  • stahlworks stahlworks posted a comment on discussion 01 SFK Help

    no promises. there are many ideas on the list, but nearly no development since a year.

  • Prid Speed Prid Speed posted a comment on discussion 01 SFK Help

    Thanks a lot. Will be eagerly waiting for those features to be implemented 😇⭐

  • stahlworks stahlworks posted a comment on discussion 01 SFK Help

    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.

  • Prid Speed Prid Speed posted a comment on discussion 01 SFK Help

    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 :)

  • mjKaral mjKaral posted a comment on discussion 01 SFK Help

    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.

  • oskippy oskippy modified a comment on discussion 01 SFK Help

    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

  • oskippy oskippy modified a comment on discussion 01 SFK Help

    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

  • oskippy oskippy posted a comment on discussion 01 SFK Help

    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

  • stahlworks stahlworks posted a comment on discussion 01 SFK Help

    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....

  • oskippy oskippy posted a comment on discussion 01 SFK Help

    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...

1 >