Search Results

Search: Posts Made By: charli1
14,592
Posted By RudiC
To make sure a result is printed and check is...
To make sure a result is printed and check is assigned a value, even if no error occurred, make the END section read
END {print error + 0}and, eventually, append an exit 1 in the error case so you...
Forum: Red Hat 04-06-2017
1,152
Posted By drysdalk
Hi, This is a somewhat crude method, but it...
Hi,

This is a somewhat crude method, but it should work. Instead of simply typing ssh <hostname>, you could type ssh <hostname> ; date instead. This will cause the date command to be run...
2,516
Posted By RavinderSingh13
Hello charli1, Could you please try...
Hello charli1,

Could you please try following and let me know if this helps you.

awk '{print $1","$2","s1 $0 "[External]" s1 ","tolower(substr($1,1,1))"."tolower($2)"_ext@mydomain.com,$TRUE,"}'...
2,516
Posted By RavinderSingh13
Hello charli1, Could you please try...
Hello charli1,

Could you please try following and let me know if this helps you(haven't tested it though).

awk '{print $0","s1 $1","$2"[External]" s1...
5,247
Posted By RudiC
Would this do (needs a recent shell)?ls some* |...
Would this do (needs a recent shell)?ls some* | while read FN; do DIR=${FN#*_*_}; DIR=${DIR%-*-*-*_*}; mkdir -p $DIR; mv "$FN" $DIR; done
1,360
Posted By RudiC
Run lynx or wget to download the page contents,...
Run lynx or wget to download the page contents, and check that for the desired keyword(s) with e.g. grep or awk
2,688
Posted By Peasant
Yes, in awk use internal variable FILENAME So ...
Yes, in awk use internal variable FILENAME
So
awk -F"[<>]" '/url/ { print FILENAME FS $3 }'
1,587
Posted By Scott
Why have you written "root" in the crontab? I...
Why have you written "root" in the crontab? I guess that's a mistake and should not be there? That leaves just four time fields. There should be 5.
1,398
Posted By Corona688
Neither * nor -e nor or work that way. You can't...
Neither * nor -e nor or work that way. You can't cram more than one file into -e, it won't work. By 'or' you probably meant '||'.

I'd try a loop instead of a huge or-statement, and put the files...
19,453
Posted By jim mcnamara
#!/bin/bash find /home/charli/Desktop/test/...
#!/bin/bash
find /home/charli/Desktop/test/ -type f -mmin +1 |
while read fname
do
newname=${fname}_`date +%F`
mv $fname $newname
gzip $newname
mv $newname...
Showing results 1 to 10 of 10

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