Search Results

Search: Posts Made By: a27wang
5,647
Posted By anbu23
Assuming space as delimiter awk -v Frst=$first...
Assuming space as delimiter
awk -v Frst=$first -v Last=$last ' $1 >= Frst && $1 <= Last ' $f
1,415
Posted By frans
V=./home/folder1/a/b/c/file.txt D=${V%/*} ...
V=./home/folder1/a/b/c/file.txt
D=${V%/*}
F=${V##*/}
echo "${D##*/}_${F%.*}_new.${F#*.}"
4,146
Posted By Scott
Hi. PAT_logs is not the same as Pat_logs. ...
Hi.

PAT_logs is not the same as Pat_logs. Sed like most everything in Unix is case-sensitive.


$ echo a/b/c/d/Pat_logs/e/f/g | sed 's/\/*Pat_logs.*\//\//'
a/b/c/d/g
7,139
Posted By bartus11
Try: awk -vs="2010-07-19 10:29:30"...
Try: awk -vs="2010-07-19 10:29:30" '$0~"^"s{p=1}!($0~"^"s) && /^2010/{p=0}p' logfile
Showing results 1 to 4 of 4

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