Search Results

Search: Posts Made By: The One
1,282
Posted By The One
That really helps! Thanks.
That really helps! Thanks.
1,282
Posted By The One
Variable on If Statement
Hi,

I am tasked to modify soem script and I come accross a line which I dont fully understand. I tried searching online but I couldnt get a good explanation on it.

Here it the part of the...
7,390
Posted By The One
I having the same issue as this. Does anyone know...
I having the same issue as this. Does anyone know anyhting about this error?
4,087
Posted By The One
find -d with exception not working properly
I have these following report directories that i need to cleanup (sample):

201001
201002
201003
201004 #with subdirectory 01
201005
201006 # with subdirectory 02

When I use this find...
14,175
Posted By The One
you really are a genius! I wanted to learn more...
you really are a genius! I wanted to learn more in this as im using this kind of text editing frequently. Do you know any reference on this kind of sed function where i can learn more?
14,175
Posted By The One
Combine multiple lines in single line
This is related to one of my previous post but now with a slight difference: I need the "Updated:" to be in one line as well as the "Information:" on one line as well. These are in multiple lines...
2,516
Posted By The One
It's working! Thanks so much :)
It's working! Thanks so much :)
2,516
Posted By The One
It didnt combine the "Description" part.
It didnt combine the "Description" part.
2,516
Posted By The One
Combine line before the pattern
Hi,

I am not very familiar with sed and awk and i have a huge file to process which is impossible to do manually. I want to print out beginning from "Network" until end of line only (excluding the...
4,361
Posted By The One
the nawk works! thanks :)
the nawk works! thanks :)
4,361
Posted By The One
i just want to get an output of: Name: xxxx...
i just want to get an output of:

Name: xxxx yyyy nnnn
Description: dfffgs sdgsgsf hsfhhs
afgghhjdgj
fjklllll gsfhfh

without the "Updated" line.

---------- Post updated at 09:44 AM...
4,361
Posted By The One
what if i dont want the "Updated" included? like...
what if i dont want the "Updated" included? like it will only print lines from "Name" until before "Updared"?
4,361
Posted By The One
It works wonders! Thanks so much :)
It works wonders! Thanks so much :)
4,361
Posted By The One
Search for Pattern and Print including Lines in between
Gurus,

I have a big file that needs to be sorted out and I cant figure out what to do. The file name is as below:

Name: xxxx yyyy nnnn
Description: dfffgs sdgsgsf hsfhhs
afgghhjdgj
fjklllll...
5,786
Posted By The One
@Franklin52: Thanks but I prefer to use xargs as...
@Franklin52: Thanks but I prefer to use xargs as the processing is faster
@scottn: i am using solaris. your solution works! thanks a bunch :)
5,786
Posted By The One
find and xargs
hi,

i've been trying to figure this weird error but I cannot seem to know why. I am using below find command:


find . \( ! -name . -prune \) -type f -mtime +365 -print

The above code...
6,466
Posted By The One
how to read line inside expect script
hi,

i have an existing ftp script that needs to be translated to SFTP so i have to use expect script to automate the login to the remote server.

Now im facing with a problem becaise i have at...
14,462
Posted By The One
I also tried that same thing but it just hang :(
I also tried that same thing but it just hang :(
14,462
Posted By The One
mailx problem with multiple cc
I am writing a script to send an email of the result of the process but i cannot make the cc work correctly.


RECIP="abc@example.com def@example.com"
CC="ghi@example.com jkl@eaxmple.com"
mailx...
2,699
Posted By The One
SFTP STDERR includes the acknowledgement
I have this problem on my SFTP script. When you direct the standard error to a file, it also contains the acknlowledgement. See below:

sftp.log
Connecting to xxx.xxx.xxx

This computer is...
19,155
Posted By The One
can you include the other part of the script? If...
can you include the other part of the script? If you are using a file or here document as input or is it supposed to be passwordless sftp or you have to input it manually when your script prompts for...
17,985
Posted By The One
I redirect the standard error to the file and i...
I redirect the standard error to the file and i was able to catch the errors. However i also want to see the errors on the screen? Is there any way to do it? I mean is it possible if I can see the...
4,982
Posted By The One
@kma07: It would be helpful if you can show us...
@kma07: It would be helpful if you can show us the part of the code where you redirect the result of the command to a file.
17,985
Posted By The One
great! i havent thought of that. I think that is...
great! i havent thought of that. I think that is easier instead of redirecting all to a file and check for any error.

Thanks a lot :)
17,985
Posted By The One
Catch error from SFTP session
We have script running to SFTP some file to the remote server. The problem is the SFTP transfer returns an exit code of 0 even if there is permission error during file transfer, connection refuse...
Showing results 1 to 25 of 46

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