Search Results

Search: Posts Made By: farooqpervaiz
28,542
Posted By farooqpervaiz
thanks all, problem resolved
thanks all, problem resolved
25,188
Posted By farooqpervaiz
escaping / (forward slash)
how to escape / (forward slash) in a string.

I have following scnerio:
sed s/${var1}{$var2}

var1 and var2 both contain slashes, but sed gives error if there is a slash in var1 or var2. sed...
28,542
Posted By farooqpervaiz
thanks for your help. i have a slight issue. my...
thanks for your help. i have a slight issue. my code is below:

CurTime=`date +%Y%m%d%H%M%S`
OVSA_DIR=/var/opt/OV/ServiceActivator/response_messages

logDir=/tmp/OVSA/OVSALogs_${CurTime}...
28,542
Posted By farooqpervaiz
thanks for reply, what is this s for in 'sed...
thanks for reply,
what is this s for in 'sed s/Messages/Logs/'

Also, i have a source folder and destination folder in a variable, so how would i replace that in a above command
...
28,542
Posted By farooqpervaiz
Can anyone please explain what the following line...
Can anyone please explain what the following line is doing :

dest=$(basename "$file" | sed 's/Messages/Logs/')
[ -d "$dest" ] || mkdir -p "$dest"
28,542
Posted By farooqpervaiz
No success, as it gives 'bad Option -maxdepth'...
No success, as it gives 'bad Option -maxdepth' error.

Actually, my scenerio is that I have a folder name 'Messages' and contains subfolders 'message1', 'message2', 'message3', 'message4' and so...
28,542
Posted By farooqpervaiz
Moving Files from one folder to another folder
Hi,

I have a folder which contain the log files. The folder may contain sub folders as well. I want to move the contents of the log folder to tmp folder periodically. I have used the command.
...
Showing results 1 to 7 of 7

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