Adding new column to count no. of line in text files?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
devilparada
Posts: 22
Joined: 05 May 2017 15:16

Adding new column to count no. of line in text files?

Post by devilparada »

Is this possible to add a column which can display no. of lines in .txt files in folder?

As for now I am using ws command in terminal on my other Linux system to know no. of line count in each file.

Code: Select all

$ ws -l *.txt

highend
Posts: 13277
Joined: 06 Feb 2011 00:33

Re: Adding new column to count no. of line in text files?

Post by highend »

Use a custom column with a script?

E.g.

Code: Select all

$wc = "D:\Tools\@Command Line Tools\unxutils\wc.exe";
    return regexmatches(trim(runret("""$wc"" -l ""<cc_item>""")), "^\d+");
http://unxutils.sourceforge.net
One of my scripts helped you out? Please donate via Paypal

devilparada
Posts: 22
Joined: 05 May 2017 15:16

Re: Adding new column to count no. of line in text files?

Post by devilparada »

highend wrote: 31 Mar 2021 07:50 Use a custom column with a script?

E.g.

Code: Select all

$wc = "D:\Tools\@Command Line Tools\unxutils\wc.exe";
    return regexmatches(trim(runret("""$wc"" -l ""<cc_item>""")), "^\d+");
http://unxutils.sourceforge.net
Thank You! works
Image

Post Reply