Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: cassj
4
4,635
Posted By cassj
Maybe try this: rsync -azv...
Maybe try this:

rsync -azv /path/to/source/folder/ /path/to/target/folder/

To do a dry run without making any changes add -n:

rsync -azvn /path/to/source/folder/ /path/to/target/folder/
...
Forum: What is on Your Mind? 09-17-2008
1
1,699
Posted By cassj
goosh
This is kinda cool:
goosh.org - the unofficial google shell. (http://goosh.org/)
3,822
Posted By cassj
Watch it Shred!: Hard Drives...
Watch it Shred!: Hard Drives (http://www.ssiworld.com/watch/hard_drives.htm) ;-)
5,457
Posted By cassj
FWIW, I tried Franklin52's code and it worked...
FWIW, I tried Franklin52's code and it worked okay for me.

1. I made a data file called, "kathy.dat" with the contents:
site1,"2000-01-01 00:00:00", "2000-01-01 00:59:00",0.013...
Forum: OS X (Apple) 07-31-2008
6,620
Posted By cassj
Try ffmpeg. And specifically for the Mac,...
Try ffmpeg.
And specifically for the Mac, ffmpegX.
Forum: OS X (Apple) 07-31-2008
8,108
Posted By cassj
Apple is going to be your best resource for this....
Apple is going to be your best resource for this.
Here, you will find what you seek (including video tutorials):
iPhone Dev Center (http://developer.apple.com/iphone/)
Forum: Solaris 07-31-2008
11,912
Posted By cassj
I did a Search of the Forum for "rsync vs cp" and...
I did a Search of the Forum for "rsync vs cp" and found this:
https://www.unix.com/unix-dummies-questions-answers/58108-rsync-vs-cp.html
Forum: Solaris 07-30-2008
11,912
Posted By cassj
Are you doing this to mirror one volume to...
Are you doing this to mirror one volume to another on the SAN? If so, is the SAN not already configured as a RAID for data redundancy in case of a hard drive failure?
2,892
Posted By cassj
Try this in your crontab (replace with your path...
Try this in your crontab (replace with your path to firefox if diff of course):
/usr/bin/firefox <URL>

Also just try it from the terminal. It will open the URL in firefox and should refresh your...
4,722
Posted By cassj
Thanks very much guys! All of your input gave my...
Thanks very much guys! All of your input gave my brain just the prodding it needed. I ended up using something based mostly on Franklin52's idea:

awk -F\\t '{print $1 "\t" substr($2,1,8)}' file
4,722
Posted By cassj
Cutting the first 8 chars of a 2nd column
I am having a stupid moment :-)

I have a tab-delimited file with 2 columns. I want to keep the first column as it is, but I only want the first 8 characters of the 2nd column.

Example of input...
10,981
Posted By cassj
That works beautifully! Thanks very much, matt! ...
That works beautifully! Thanks very much, matt! :-)
10,981
Posted By cassj
awk printing all columns after (but including) $n
I am piping an "ls -l" to awk so that all it returns is the file size, date, and file name. The problem is that some files may have spaces in the name so awk is only printing the first word in the...
5,672
Posted By cassj
This site was mentioned in an earlier post and it...
This site was mentioned in an earlier post and it looks pretty good:
Theiling Online: ASCII bar (http://www.theiling.de/projects/bar.html#examples)
3,028
Posted By cassj
Excellent! I'm glad you found a solution. ...
Excellent! I'm glad you found a solution. Thanks for the info about it too.
4,256
Posted By cassj
Did you do an "ls -la" to see if you have the...
Did you do an "ls -la" to see if you have the invisible auto backup file for it:
Ex. scriptname.sh~
Also, I have posted this twice before:
This looks interesting. It's called "unrm".
...
20,614
Posted By cassj
Hmmm.... I just copied and pasted the code I...
Hmmm.... I just copied and pasted the code I posted and it worked fine for me. I'm using bash. I'm glad radoulov's code worked for you.
3,028
Posted By cassj
Your test.php file should have only the...
Your test.php file should have only the following:
<?php phpinfo(); ?>

Some sites will show this with spaces after and before the "<" and ">", but PHP will trip on those spaces. It's happened to...
14,773
Posted By cassj
Your command is looking for anything, file OR...
Your command is looking for anything, file OR folder since you aren't specifying it to look ONLY for files with "-type f".

Try this instead:
find /work/can/transfer/ -type f -mtime +14 -exec ls...
3
13,825
Posted By cassj
You say you need to "do things" to the files,...
You say you need to "do things" to the files, which to me means you'll need the full path to those files. Give this a shot:

find /path/to/your dir/ -type f | grep -v ~$

The grep will exclude...
4,457
Posted By cassj
I don't understand your question fully. Are you...
I don't understand your question fully. Are you saying you want to

REPLACE this entire phrase:
"count(user) = 0" -o "uid = ftp" -n -o "gid = ftp" -n -b \

WITH this phrase:
"read only = no"
20,614
Posted By cassj
Give this a shot. This will change ALL filenames...
Give this a shot. This will change ALL filenames in the current directory from lower to UPPER.
cd /path/to/your/files

for file in * ; do mv $file `echo $file | sed 's/\(.*\)/\U\1/'` ; done
Forum: HP-UX 01-03-2008
1,857
Posted By cassj
Please give an example of the output you need.
Please give an example of the output you need.
Forum: UNIX and Linux Applications 12-31-2007
2,089
Posted By cassj
You may want to take a look at "zenity". On my...
You may want to take a look at "zenity". On my Ubuntu 7.10 installation a "man zenity" shows what zenity can do and some examples as well.
Forum: UNIX and Linux Applications 12-31-2007
33,175
Posted By cassj
Try the "-m" switch. A "man ls" reveals: -m ...
Try the "-m" switch. A "man ls" reveals:
-m fill width with a comma separated list of entries
Then just suffix your last comma. I hope that helps some.

Cheers....Cassj
Showing results 1 to 25 of 104

 

Featured Tech Videos

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