Search Results

Search: Posts Made By: GermanJulian
1,458
Posted By Shell_Life
If the user can only search within the same year...
If the user can only search within the same year and you have already edited the input data:
#!/usr/bin/ksh
typeset -i mMM mDD mDDto
mMM=${monS}
while [[ ${mMM} -le ${monE} ]]; do
if [[ ${mMM}...
21,263
Posted By yazu
POSIX shell: VAR1='me you him her' VAR2='you...
POSIX shell:
VAR1='me you him her'
VAR2='you me him'
for w in $VAR1; do
if ! echo "$VAR2" | grep -q "$w" ; then
changed=1
...
1,737
Posted By zaxxon
If it's ok without sed, shell can do it too: ...
If it's ok without sed, shell can do it too:

$> VAR='/US/fwadmnyc05-ezone.us.db.com/nj02ga03e2y39a/http_log.nj02ga03e2y39a.2009.11.16.01.01.03.274.gz'
$> echo ${VAR##*/}
$>...
11,193
Posted By vgersh99
echo...
echo '/dir1/dir2/maybeotherDIRS/http_log.SOMENAME.2010.05.01.00.45.00.230.gz' | sed -e 's#.*/##' -e 's#[^0-9][^0-9]*[.]\([0-9][0-9.][0-9.]*\)[.].*#\1#'
11,193
Posted By Franklin52
This command gives the 6 characters after the...
This command gives the 6 characters after the word access:
sed -e 's/.*access\(......\).*/\1/'
Showing results 1 to 5 of 5

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