I need to write a script that will move files from a direcory to another directory, but only the files that are owned by a specific owner.
e.g. if seven files in a dir are owner by a user called 'budd' then move to a direcory called \budd. If not then leave alone.
Many Thanks (2 Replies)
I am trying to learn PERL programming. I copied this example from a book just to try it on my machine. It worked out fine but when I tried it on another machine, an error appears: syntax error near unexpected token ';'.
I tried it on a third machine but a new error appears: command not found.
... (4 Replies)
Hi Gurus,
I am new to UNIX(HP). my requirmnet is File needs to needs to be split into multiple files dependa on one key value.
example
1 abc 333 us
2 bbc 444 ch
5 nnn 333 kk
7 hhh 555 ll
3 hhh 333 hh
now the requirment is line with 333 should be copied into test1.txt and... (14 Replies)
Hi everybody,
I wrote a small subroutine 'GetStringDelim()' to return a substring from a string enclosed by a string 'Limit1' and a char 'Limit2'. It works perfectly and I don't get an error message together with valgrind, if I set the 3rd parameter in GetStringDelim() to NULL (see below).
... (3 Replies)
Hi,
I know similar questions appeared here already, still i didnt find answer to my problem yet.
Im getting the following message from valgrind (version 2):
==15414== 1 errors in context 1 of 6:
==15414== Conditional jump or move depends on uninitialised value(s)
==15414== at... (2 Replies)
Simple enough problem I think, I just can't seem to get it right.
The below doesn't work as intended, it's just a function defined in a much larger script:
CheckValues() {
for field in \
Group_ID \
Group_Title \
Rule_ID \
Rule_Severity \
... (2 Replies)
I have a group of variables myLINEcnt1 - myLINEcnt10. I'm trying to printout the values using a for loop. I am at the head banging stage since i'm sure it has to be a basic syntax issue that i can't figure out.
For myIPgrp in 1 2 3 4 5 6 7 8 9 10; do
here i want to output the value of... (4 Replies)
Hello All,
Maybe I'm Missing something here but I have NOOO idea what the heck is going on with this....?
I have a Variable that contains a PATTERN of what I'm considering "Illegal Characters". So what I'm doing is looping
through a string containing some of these "Illegal Characters". Now... (5 Replies)
Hi All,
I have a file which has hundred of records with fixed number of fields. In each record there is set of 8 characters which represent the duration of that activity. I want to sum up the duration present in all the records for a report. The problem is the duration changes per record so I... (5 Replies)
Hi guys, i am having some mine bash script which print only ip addresses
echo "Interfaces IP addresses:"
ip -o addr | awk '!/^*: ?lo|link\/ether/ {print $2" "$4}'
echo -n "enter range of IPs(192.168.0.1-254): "
read range
nmap -oG - $range >/home/test/Desktop/SCAN
cat... (0 Replies)