First  |  Prev |  Next  |  Last
Pages: 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
directories I
Hello newsgroup, I've got a grab bag of questions that I think are topical here. Apparently, unix directories have permissions. How do I determine what the permissions are for, say, /usr/bin/ ? What are the roles of the . and .. ? The period here seems to indicate the current directory: #!/usr/bin/perl... 19 Feb 2010 13:14
script to format a csv date
this one is pretty easy for most of you guys. Format the date present in a csv file to date format MM/DD/YYYY i/p : 1/1/1900 o/p : 01/01/1900 or 01-01-1900 i/p : 10/2/2009 o/p : 10/02/2009 or 10-02-2009 Thanks ! ... 13 Feb 2010 20:32
startup script unable to launch background process
Hello all, I've got the bash script below that I've placed in /etc/init.d and the appropriate soft link in the rc.d 5 directory. These scripts run as root after I do init 6. When this runs after I reboot the LINUX box, it's able to execute the part that dumps the contents of the environment variable $P4 to t... 8 Feb 2010 17:58
Unix Script to process records in group
Hi, I need help in developing a Unix script to implement the following logic: The input file will be a comma separated field with three columns ( please see below ). The logic : for each code2 ( 2nd col of the input file ) do the following : 1. If record exists for both 58 and 69, pass both records in o/p fil... 9 Feb 2010 11:42
How to find files with the same name -- different case?
Hi, How would I search for files that have the same name, but potentially different case, living in the same directory? For example, I would want to find files like /dir1/image1.gif /dir1/IMAGE1.gif but I don't care about /dir1/image1.gif /dir1/dir2/image1.gif ? Hope this question makes sense, - Da... 23 Feb 2010 05:44
is there a bash equivalent of "this" ...
is there a bash equivalent of \"this\" ... ~ referring to the current object's context? ~ I have some script that generates temporary error logs that are listed and deleted at the end if they are empty. I would like to go like: ~ find . -maxdepth 1 -name <...> -empty -cnewer <"this" running file> -exec ls ... 8 Feb 2010 11:05
basic loop assistance
Trying to teach myself some shell scripting. I seem to of set up this while loop incorrectly, it never exits. What I'm trying to do is" 1) supply a number which sets the number of times it prompts for a number (ex: How many values do you want to enter) 2) loop for X number of times depending on #1 3) keep trac... 21 Feb 2010 22:43
find directory jpg and rename
Hello, I have a directory in which i want to list all image .jpg and then reduce all image to 50% using convert. I'ev tried un small script but i've a probleme using {}. SOURCE="$1" type="$2" find $SOURCE -iname "*$type" -exec convert {} -resize 50% {}.small \; the problem is that actually i convert file an... 8 Feb 2010 16:49
Ya didnae ha' te use brackets. Be curly, Jimmeh!
> A couple of other details: Why use {} round your variables? That was something I got in the habit of too and still find myself doing for no good reason today. I wonder if the OP went to Glasgow University.... So curly braces are simply round brackets with a heavy Glaswegian accent? ... 10 Feb 2010 17:57
find errors "paths must precede expression: %d" ..., "missingargument to `-exec'"
2010-02-05, 11:23(+00), lbrtchx(a) [...] _BSLSH="\\" # SPACE _SPC=" " # FIND DIRECTORY _FND_DIR=/UNIONFS/var # EXCLUDING (should be done in a loop and using awk) _XKLD="-noleaf -wholename '/proc' -prune -o -wholename '/media/sda1' -prune" #eval find ${_FND_DIR} ${_XKLD} -... 6 Feb 2010 03:11
First  |  Prev |  Next  |  Last
Pages: 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51