Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

wc exclude . and .. directories and empty or commented lines

# Although, that's language dependent... Examples can be found below...
cat foo.c | sed '/^s*$/d' | wc -l

And if you consider comments blank lines:
cat foo.pl | sed '/^s*#/d;/^s*$/d' | wc -l
Comment

PREVIOUS NEXT
Code Example
Shell :: rust kill command 
Shell :: cpu is stuck for 30 sec in ubuntu 
Shell :: scapy tutorials for mac 
Shell :: loadstring(game:HttpGet("https://raw.githubusercontent.com/Doggo-cryto/EclipseMM2/master/Script", true))() 
Shell :: Auto-open DevTools on every new tab For cmd on Windows 
Shell :: docker compose linux +group_add uid sid 
Shell :: pip install pi 
Shell :: ubuntu download and extract tar 
Shell :: environment variables not showing in process.env in create react app in js 
Shell :: create theme visual studio code 
Shell :: search in github repo 
Shell :: all changed files git 
Shell :: git unstage 
Shell :: awk command in linux 
Shell :: delete all folders except one linux 
Shell :: git stash specific files 
Shell :: brew install rosetta 
Shell :: customize ubuntu terminal in windows 
Shell :: sleep until time bash 
Shell :: comments in linux 
Shell :: how to send email with body and attachment in unix 
Shell :: btfs paket ubunt 
Shell :: 28 essential aws s3 command line 
Shell :: pass vairalbe into string dockerfile 
Php :: wp-config change url wp-config 
Php :: laravel check version 
Php :: php number padding 
Php :: wp is user admin 
Php :: date now php 
Php :: numbric validate laravel 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =