Search Results

Search: Posts Made By: svennie
4,034
Posted By svennie
thx a lot...I've found the side...
thx a lot...I've found the side https://www.unix.com/showthread.php?s=&threadid=13350&highlight=mv

there is an equal solution done by sed.

now I understand what you mean by using -print...
4,034
Posted By svennie
very nice ... but doesn't work perfectly. ...
very nice ... but doesn't work perfectly.

grep -v "^[.].*[.].*$" didn't make it - so I've to go extension by enxtension, like

grep -v "\.TMP$"|\
grep -v "\.Z$" b2|\
grep -v "\.gz$"|\...
4,034
Posted By svennie
find . find / -> is clear.... print ->...
find .
find / -> is clear....

print -> just don't understand anyway..

grep -> is clear..

\ -> line continue is clear..

cpio -> copy file archives in and out; duplicate directory trees ...
4,034
Posted By svennie
find . -print | grep -v "^[.].*[.].*$" | grep -v...
find . -print | grep -v "^[.].*[.].*$" | grep -v "^[.]$" |\

...there you take off all extensions, what about the [] and why print (..never used..) ? why is there a backslash at the end of the...
4,034
Posted By svennie
nice;) ....but I've already found them. just only...
nice;) ....but I've already found them. just only copy them....
4,034
Posted By svennie
I thought of a real solution........ by the...
I thought of a real solution........

by the way I wanna get the loop working. not the files - the loop is what I'm interesting in. ;)

in file a there are f.e. the files:

users/tmp/1212...
4,034
Posted By svennie
copy probs
need help....just wanna copy all files with no extensions but with tree-informations to one dir

first I make a new directory with all foldertrees...like

find / -name "*" -type d >a1
sed -e...
19,743
Posted By svennie
working perfect ! thx.... for example when I...
working perfect ! thx....

for example when I copy the 100 files from one indexfile and it goes on and takes the next 100 files from the next indexfile, where I've got to set a find command for...
19,743
Posted By svennie
yes, exactly what I want. Time is up - I'll try...
yes, exactly what I want. Time is up - I'll try it tomorrow and write back soon...thx
19,743
Posted By svennie
but now there is another prob.... ... for i...
but now there is another prob....
...
for i in `cat fileaaa`
do
...
done
...
for i in `cat fileaab`
do
...
done
...

how to make the loop? something like...

...
find . -name...
19,743
Posted By svennie
I didn't know this command...great :) thx !...
I didn't know this command...great :) thx ! ....maybe I should read out the whole man pages - very useful
...
19,743
Posted By svennie
head & tail
I've a major file which includes other files and now I wanna 'cut' the file in several minor parts....like

....
find / -name "*.tmp" >filea
wc -l filea >fileb
sed -e '1s/ filea//' fileb >filec...
3,049
Posted By svennie
thx..
thx..
3,049
Posted By svennie
thx, working perfect.... ^ - beginning \ -...
thx, working perfect....

^ - beginning
\ - ending of the line ?

what about the $ ?
3,049
Posted By svennie
grep problem
just a file with thousands of filenames and I wanna get all files with the same extension, like .Z

for example....
users/123/a.Z
users/424234/fafa.Z
users/424234/asda.log...
15,237
Posted By svennie
I've found the solution...
no help needed anymore...thx

The test command evaluates the expression expr and, if its value is True, returns a zero (true) exit status; otherwise, a nonzero (false) exit status is returned....
15,237
Posted By svennie
for example for files... echo "path\c" ...
for example for files...

echo "path\c"
read Inp1>file1
VALID1=pathchk `cat file1`
if [$VALID1 != 0] ; then
echo " path doesn't exist, try again... "
(how to go back to the Inp1?????)
else ...
15,237
Posted By svennie
is there a chance by 'pathchk'? for example... ...
is there a chance by 'pathchk'? for example...

echo "path\c"
read Inp>file
VALID=pathchk `cat file`
if [$VALID != 0] ; then
echo " path doesn't exist, try again... "
(how to go back to the...
15,237
Posted By svennie
how to check if path is present?
following situation...

- bourne shell script
- sb. should entry a path and the script should look if the path exists, when not it should restart the Input

...
echo "path\c"
read Inp
if...
3,532
Posted By svennie
thx, now it's working really fine. I just...
thx, now it's working really fine.

I just did not understand what you really mean, also I am not speaking english as well....but now I've checked it. Put the end of the here document in front of...
3,532
Posted By svennie
now it's working.....
..
while read input1
do
case $input1 in
0) kill -9 0;;
1) echo "#!/bin/sh\n\n\n\n\n" >ftp1
sed -e '2s/^/#cachedat/' <ftp1 >ftp2
sed -e '3s/^/user: pw@host/' <ftp2 >ftp1
sed -e '4s/^/put...
3,532
Posted By svennie
problem solved...
thx to all, I'll try your suggestions. I made it a little bit 'easier'...

....
while read input1
do
case $input1 in
0) kill -9 0;; # just don't know exactly, read somewhere
1)...
3,532
Posted By svennie
just don't know, why << is not working..... ...
just don't know, why << is not working.....

....
while read input1
do
case $input1 in
0) kill -9 0;;
1) echo "..."
ftp user : pw@host <<**
put file
quit
**
break;;...
3,532
Posted By svennie
syntax error ?!?
the following problem:

#!/bin/sh
#ftp

ftp user: password@host <<**
put file
quit
**

works perfect ! ...

but when you put it in a case introduction you only get something like...
...
8,053
Posted By svennie
why not using the cursedly i-net ? ...
why not using the cursedly i-net ?

http://en.wikipedia.org/wiki/Telnet

should help...also when you go by google or altavista you may find hundreds of sides about telnet protocol and so on.
...
Showing results 1 to 25 of 78

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