Search Results

Search: Posts Made By: dampio
8,572
Posted By dampio
I found an alternative solution where tar is...
I found an alternative solution where tar is used. And it backs up all files with the same name along in their unique directory names.
find /dirname -name server.xml -exec tar -rvf...
8,572
Posted By dampio
Backup files from different directories with the same name problem
Hi, I have tried multiple ways to solve this with no success, unfortunately.

I have a variable like this:
echo $var
/etc/tomcat/server.xml /etc/tomcat/test/server.xml

How can I backup both...
3,010
Posted By dampio
A script to detect system type
Hi forum,

So I am trying to determine the OS type with the following script:



#!/usr/bin/sh

OStype1=`uname -s`
Sunos1=SunOs

if [ "${OStype1}" = "Linux" ]
then
echo "This system...
3,954
Posted By dampio
Thank you very much for the quick answer. It...
Thank you very much for the quick answer. It worked like a charm.

Edit: both suggestions work, I will see which I will use when doing the deep tests.
Edit2: Yes, I know about the grep, but I...
3,954
Posted By dampio
A way to print only part of directory path
Hi,

So I struggled to find a solution to the following problem:

I want to make sed print only part of multiple different paths.

So lets say we have

/path/path1/path2/logs/bla/blabla...
2,222
Posted By dampio
You were right. The interesting part is, that the...
You were right. The interesting part is, that the same command works on Solaris also, but the fuser flags must be changed to fuser -on
2,222
Posted By dampio
Manipulate files with find and fuser not working as expected on SunOs
Greetings,

For housekeeping, I use the following command:

find /some/path -type f -name "*log*" ! -exec fuser -s "{}" 2>/dev/null \; -exec ls -lh {} \;

It finds all log files not currently...
8,474
Posted By dampio
Hi RudiC, thanks for the answer. I generally...
Hi RudiC, thanks for the answer. I generally avoid editing nix files on Windows, although If I happen to do it, I use dos to unix file converter app.
However, in this particular case, I just copy...
8,474
Posted By dampio
Hidden characters when pasting in vi/vim
Hello everyone.

When I copy some configuration settings string from MS_Word to putty from my personal pc to a remote machine, it appears that I copy some hidden symbols, which at first, cannot be...
Showing results 1 to 9 of 9

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