Search Results

Search: Posts Made By: gaurav1086
24,993
Posted By gaurav1086
hello , can use awk awk...
hello ,

can use awk

awk '/^test/{print "starts with test";next}/test$/{print "ends with test";next;}/test/{print "contains test"}'

Otherwise in sh can use parameter expansion ->


if [...
Showing results 1 to 1 of 1

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