Search Results

Search: Posts Made By: Lenora2009
55,599
Posted By Lenora2009
Thanks for helping ! (I'm not joking, anbu ) ...
Thanks for helping ! (I'm not joking, anbu )
This is just a small test script ... and yes, I do have backup :)
55,599
Posted By Lenora2009
Great! I did cat sql.sh | tr -d \\015 > sql.sh...
Great! I did cat sql.sh | tr -d \\015 > sql.sh and now the script is empty ???
55,599
Posted By Lenora2009
and how to find non-printable characters ? cat...
and how to find non-printable characters ?
cat -vet sql.sh
done^M$
55,599
Posted By Lenora2009
How to fix the imput file? It is a simple text...
How to fix the imput file? It is a simple text file
chmod 777 sqllog0.txt
cat sqllog0.txt

stop
RUNNING
55,599
Posted By Lenora2009
#!/bin/bash # ftp files done errors: ...
#!/bin/bash
# ftp files
done

errors:

sql.sh: line 18: syntax error near unexpected token `done'
'ql.sh: line 18: `done
55,599
Posted By Lenora2009
No luck, I am getting the same errors :mad: ...
No luck, I am getting the same errors :mad:

#!/bin/bash
# ftp files
done < $file


Here are the errors:


sql.sh: line 18: syntax error near unexpected token `done'
'ql.sh: line 18:...
55,599
Posted By Lenora2009
Syntax error near unexpected token `done'
Hi all,
Here is a simple script that is working in one server and is giving a syntax error in other server. Can somebody help me ?



#!/bin/bash
# ftp files
done < $file


errors:
...
2,126
Posted By Lenora2009
search for string and return substring
Hi,

I have a file with the following contents:


I need to create a script or search command that will search for this string 'ENDC' in the file. This string is unique and only occurs in one...
2,095
Posted By Lenora2009
Run script from another script if system date was reached
I what to find a system date in a shell script and search for it in a file in specific record.
If the record (ENDC) has the same date I what to execute another shell script.

Here is example of...
12,354
Posted By Lenora2009
Thank you. Here is the code #!/bin/bash ...
Thank you. Here is the code


#!/bin/bash
# ## set messages, variables
##################################################################################
DATE=`date +%Y%m%d`
TIME=`date...
12,354
Posted By Lenora2009
script syntax error: unexpected end of file
Need help. I cannot find the reason for this error:



here is the script
1,391
Posted By Lenora2009
find a string
I have a file as:
address1@com|\nam11\nam21\nam31\nam41\nam51\file1.txt
address2@com|\nam12\nam22\nam32\nam42\nam52\file2.txt

How to find and assign:
var1 = address@com to var1
var2 =...
25,213
Posted By Lenora2009
I did, but cannot find the files. All files were...
I did, but cannot find the files. All files were in folder name1/name2/name3/name4/name5/name6/ and the tar file in the folder: name1/name2/name3/name4/
25,213
Posted By Lenora2009
tar and untar commands
I have a script to ftp, archive and delete files. I used tar command to archive files from a list and then all files were removed from name1/name2/name2/.


find /name1/name2/name2/ -name...
2,645
Posted By Lenora2009
if you need to parse all the lines in the text...
if you need to parse all the lines in the text files, and you don't actually need to know which line came from which file, you can simplify your life a bit more. The cat utility will skip empty files...
5,862
Posted By Lenora2009
Great ! Thank you all
Great ! Thank you all
2,645
Posted By Lenora2009
We can have many text files (empty or with...
We can have many text files (empty or with paths/files). I need to read each one and get var1 = path and var2 = filename.txt (if any) for the next ftp process.
2,645
Posted By Lenora2009
Each file (file1, file2, file3, file4) can have...
Each file (file1, file2, file3, file4) can have different entries. Also file can be empty

file1.txt:


file2.txt:


file3.txt :


file4.txt:
2,645
Posted By Lenora2009
Could someone give me an example ?
Could someone give me an example ?
2,645
Posted By Lenora2009
find a string in a loop
Hi,

Can anyone help with the problem below? I need to read all text files (file1, file2, file3) in a loop and find






file1.txt:




file2.txt:



File3.txt:
5,862
Posted By Lenora2009
combine variables in one
Within one of my scripts, I have variables extracted from parameters list and want to combine some of them in one (lpath). I tried using awk command..... How do I get it? Thank you.


...
3,364
Posted By Lenora2009
The second script will ftp all files from...
The second script will ftp all files from specific host folder to a client server (from the list). Also need to archive all transferred files, send a message (email) if any file was not transferred...
3,364
Posted By Lenora2009
call a script from another script passing parameters
I want to call script2 from script1 passing parameters. I want to read the parameters list in script1, check the local directory (for example - lpath1|lpath2|lpath3|lpath4|lpath5|) for the existance...
8,755
Posted By Lenora2009
Thank you for helping me. This code is working: ...
Thank you for helping me. This code is working:


vFTPName="ftp$(date '+%y%m%d'.%H%M%S)"
while read line
do
#
FILENAME=`basename ${line}`
DIRS=`dirname ${line}`
#
...
6,425
Posted By Lenora2009
Thank you methyl ! I did what you have...
Thank you methyl !
I did what you have suggested and the script look OK now.
Showing results 1 to 25 of 40

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