Search Results

Search: Posts Made By: RavinderSingh13
1,539
Posted By RavinderSingh13
Thank you Yoda, I was thinking like if I will use...
Thank you Yoda, I was thinking like if I will use grep
command with ls then it may get some other results too, so I have used awk.

But your given solution is working well and fine.:)

...
1,539
Posted By RavinderSingh13
Hello, Following code may help to find the...
Hello,

Following code may help to find the requirement please.


$ ls -ltr | awk '{print $9}' | awk -vch="1" '{if(substr($0,3,ch) ~ "b") print $0}'


Output will be as follows.

...
Showing results 1 to 2 of 2

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