Search Results

Search: Posts Made By: kaushik02018
7,520
Posted By RudiC
Anchor it at BOL: s/^load/.../...
Anchor it at BOL: s/^load/.../...
1,268
Posted By RudiC
You can do it in two ways: either use two crontab...
You can do it in two ways: either use two crontab entries, or run the script every 5 mins, and in the script check for "night time" and skip (exit) two out of three runs.
1,268
Posted By Don Cragun
Create two crontab entries to run the same...
Create two crontab entries to run the same script. One for day hours and one for night hours...
0,5,10,15,20,25,30,35,40,45,50,55 7-19 * * * script_to_execute
0,15,30,45 0-6,20-23 * * *...
3,391
Posted By junior-helper
Referring to the user "nilinfobin" who recently...
Referring to the user "nilinfobin" who recently wrote a comment at How to install sysbench 0.5 on Debian 7 | Nil Infobin...
1,540
Posted By Makarand Dodmis
As your input 2014-08-18 17:18:07 already...
As your input 2014-08-18 17:18:07 already contains space .. you are getting that ouput
I have added pipe delimeter to your input file$ more file1.txt
'2014-08-18 17:18:07'|'2014-08-18 16:10:01'

...
7,844
Posted By neutronscott
is sshd installed and enabled? :)
is sshd installed and enabled? :)
7,844
Posted By fpmurphy
First check if you can ping from the host to the...
First check if you can ping from the host to the guest VM and visa versa. If you cannot, from VMware Workstation, go to Edit > Virtual Network Editor and select NAT network (typically VMnet8). ...
2,455
Posted By blakeoft
Can you post a sample of file1.txt? Backticks ( `...
Can you post a sample of file1.txt? Backticks ( ` ) execute what is between them first. Since XYZ is not a command, you might have to escape the command, i.e. put a \ in front of each backtick. See...
2,455
Posted By vbe
sed s/"\`XYZ\`"/"ZXY"/g file1.txt >...
sed s/"\`XYZ\`"/"ZXY"/g file1.txt > file2.txt
2,944
Posted By Scrutinizer
If you are writing for /bin/sh then it would be...
If you are writing for /bin/sh then it would be best to use a while loop:
i=0
while [ $((i+=1)) -le 1000 ]
do

If you can use bash, then you could use:
for i in {1..1000}
do

But I am...
2,944
Posted By bartus11
Try:perl -e 'use Date::Calc qw(:all); for...
Try:perl -e 'use Date::Calc qw(:all);
for ($i=13;$i<=100;$i++) {
($y,$m,$d)=Add_Delta_Days(2013,05,31,$i);
printf "ALTER TABLE `abc` ADD PARTITION ( PARTITION %d%02d%02d VALUES less than...
2,513
Posted By xoops
try this one for i in `cat FILE1 ` ; do if...
try this one

for i in `cat FILE1 ` ; do if [ ! -f /xyz/$i ]; then cp $i /xyz/$i ; fi ; done



for i in `cat FILE1 ` ; do if [ ! -f /xyz/$i ]; then cp /asd/$i /xyz/$i ; fi ; done
2,513
Posted By Scott
Hi. By "copies only new files", do you mean...
Hi.

By "copies only new files", do you mean only if the file does not already exist?

You could change your cp command to something like:

false | cp -ifr /home/bin/$i /home/xyz/$i 2>...
1,510
Posted By jim mcnamara
try this: ls -ld /home/xyz1 This will...
try this:

ls -ld /home/xyz1

This will show the permissions on the xyz1 directory: e.g., drwxr-x---
The last red bit has to be at least --x.

AS root try:

cd /home
chmod +x xyz1
Showing results 1 to 14 of 14

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