Search Results

Search: Posts Made By: arvindk.monu
1,228
Posted By Franklin52
An awk statement has the form: condition...
An awk statement has the form:
condition {action}

Conditions in awk control the execution of actions and actions are executed when the condition is true.

If the condition is true (1 is true)...
4,024
Posted By Scott
It finds lines ending with a space (/ $/), and...
It finds lines ending with a space (/ $/), and prints the number of spaces at the end of the line by subtracting the position of the first or all space at the end of the line (match($0, / +$/) from...
4,024
Posted By Scott
awk '/ $/ {print length - match($0, / +$/) + 1,...
awk '/ $/ {print length - match($0, / +$/) + 1, $0}' file
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 08:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy