Hi
and the cats.
However - please how can I insulate the only string (in this case) "0x9D5B4936" in a example.txt like ?
thanks a lot
output should be simplyCode:Serial #: Fingerprint: 0x9D5B4936 Name: Email: Phone#: Company: Website: Address: City: State: Zip: Country:
Code:0x9D5B4936
+ Reply to Thread
Results 1 to 9 of 9
-
-
Easy, it happens exactly after "Fingerprint: " and before the carriage return/line feed.
Search for those elements and get what is in between.
Btw, I think you mean isolate.
ScottLast edited by Cornucopia; 10th Dec 2022 at 20:24.
-
Code:
awk "/Fingerprint/{ print $2 }" example.txt 0x9D5B4936
-
-
is it for Linux?
Download the attacked file, unzip and place in the same folder as example.txt. (It would be infinitely better if you actually place the awk.exe in your windows path)
Run the code as is.Code:awk "/Fingerprint/{ print $2 }" example.txt
PS : you need to be in the terminal command prompt mode. Hope you know how to do this ... at bottom of windows display enter CMD and cd to the location where the example.txt is located. Still don't know how to do this then ask google ==> command prompt modeLast edited by jack_666; 11th Dec 2022 at 17:37.
-
wow thanks, is works
Code:awk.exe "/Fingerprint/{ print $2 }" "%UserProfile%\AppData\Local\Temp\example.txt"
Code:0x9D5B4936
-
And if I need to copy this value on the clipboard? can do this directly from the batch?
Code:awk.exe "/Fingerprint/{ print $2 }" "%UserProfile%\AppData\Local\Temp\example.txt" > "%UserProfile%\AppData\Local\Temp\result.txt"
-
Pipe the output to clip.
https://www.labnol.org/software/copy-command-output-to-clipboard/2506/ -
[Attachment 68154 - Click to enlarge]
ah wow it works
Code:awk.exe "/Fingerprint/{ print $2 }" "%UserProfile%\AppData\Local\Temp\result.txt" | clip
Similar Threads
-
batch to process files one by one starting from a .txt list?
By marcorocchini in forum Newbie / General discussionsReplies: 1Last Post: 29th Aug 2022, 08:06 -
batch to remove blank lines in .txt
By marcorocchini in forum Newbie / General discussionsReplies: 3Last Post: 9th Aug 2022, 12:59 -
How to replace character (string) in batch?
By m0ck in forum Newbie / General discussionsReplies: 1Last Post: 29th Mar 2021, 07:26 -
batch to remove a particular string in a .txt file
By marcorocchini in forum Newbie / General discussionsReplies: 8Last Post: 17th Oct 2019, 19:09 -
batch that change string values on a .txt file
By marcorocchini in forum Newbie / General discussionsReplies: 8Last Post: 14th Feb 2019, 20:33