Search Results

Search: Posts Made By: Spadez
2,528
Posted By Spadez
Not yet, im paranoid about deleting my data. ...
Not yet, im paranoid about deleting my data.

So, if I have my setup like this:

TV

File 1 (Newer)
File 4


TVbackup

File 1 (Older)
File 2
File 3


Then I run this command:
2,528
Posted By Spadez
Rsync copy files if dont exist
I have a setup where I have two drives.


TV
TVbackup


For what ever reason, I have a lot of content on my TVbackup drive which isn't on my TV drive.


I want to copy all the files...
1,333
Posted By Spadez
Symlink all files from one folder into all found folders
Hi.

I have a folder which contains my application. I then have a flexible number of folders in another directory, called “sites”. It looks like this:

-Application
-- Test.html
-- CSS
---...
2,768
Posted By Spadez
Download and Untar any URL
Hi,

I am trying to make a flexible bash script which does the following:

Downloads a URL from a variable
Unzips it
Deletes the original archive

The problem is, the format could be .tar,...
Forum: Debian 09-20-2012
2,784
Posted By Spadez
Ok, so this is better? useradd -s -r...
Ok, so this is better?

useradd -s -r /usr/sbin/nologin tomcat
Forum: Debian 09-20-2012
2,784
Posted By Spadez
Create restricted user for programs
want to create a user account for each of the key programs installed on my debian server. For example, for the following programs:

Tomcat Nginx Supervisor PostgreSQL

This seems to be...
1,161
Posted By Spadez
Compact script with array - Good idea?
Hi,

I have a shell script where a lot of the code is repeated. I wanted to make the code much more compact so I spoke to a guy and he suggested using arrays, like follows:

#!/bin/bash
...
1,019
Posted By Spadez
Find and replace folder of files with $var
I want to scan through all the files in the folder and replace all instances of $file_X within the file with the variable $X defined in my bash script on my debian 6.0 install.

For example, if the...
1,334
Posted By Spadez
Hi, Thank you for the reply. This is the...
Hi,

Thank you for the reply. This is the situation. Its all variable driven, but after I extract, I dont know what my folder will be called. I cant CD into it if I dont know what its called.
...
1,334
Posted By Spadez
Conundrum - Flexible way to strip extension
Hi,

First post here. I have something that may prove to be difficult.

I have the following files:

Example1.0.0.tar.gz
Example2.tar
Example3.zip
Example4.0.0.0.0.0.bzip2

I need to...
Showing results 1 to 10 of 10

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