Hello,
I apologize if this was addressed in a previous post. I have done some searching but may have missed it. I am trying to read a list from a file, for example:
and using this list, copy files with these names (ex: 3bik.dssp.Z) to a seperate folder, named Subset. [Kindly note that all files have the same .dssp.Z extension, they only differ in the names!]
I have written this code below but keep getting syntax errors...could you kindly tell me what I am doing wrong? I am new to scripting and I apologize in advance for any silly errors!
The code:
I have saved this as Test.sh
My understanding now is that I simply call: bash Test.sh
in the commandline (MacOs by the way)
Please correct me if I'm wrong, and let me know if the logic of the code is correct also.
Many thanks,
InfoSeeker
Hi,
I have a problem.
I have some text files in a folder. The names can be like:
emp.txt
emp1.txt
emp3.txt
32emp4.txt
What i need is i have to copy all the files which have "emp" string in their filename
to a different folder and those file names... (7 Replies)
hi there
i write one awk script file in shell programing
the code is related to dd/mm/yy to month, day year format
but i get an error
please can anybody help me out in this problem ??????
i give my code here including error
awk `
# date-month -- convert mm/dd/yy to month day,... (2 Replies)
I am trying copy all files ,i was getting below error .Please any idea
#find . -name "*bat" -exec cp -p {} /devt/jobs
find: incomplete statement
Thanks,
Akil (9 Replies)
Hi Unix Gurus,
I have a doubt reg file transfer. I have used the below script to connect to another server and find files having modified for the last 24 hours and have to move the file to another server.
While i tried i am getting authentication failed, destination path not found issue.
... (2 Replies)
Hi,
I just need a shell script that copies a list of files from a directory in a remote server to my current directory at local server
the remote server may contain the following list:
/root/pradeep/myfiles/default
/root/pradeep/myfiles/dir1
/root/pradeep/myfiles/dir2
...... (1 Reply)
Hi All,
I am doing this for svn patch making. I got the list of files to make the patch. I have the list in a file with path of all the files.
To Do
From Directory : /myproject/MainDir
To Directory : /myproject/data
List of files need to copy is in the file: /myproject/filesList.txt
... (4 Replies)
I have installed Solaris 10 on a Sunblade 150 (512 MB RAM) successfully. But when I create a new directory and try to copy a 40 MB file to it it stops after about 37 MB and gives an error "I/O error" while copying. I have 40GB of Hard Disk. What is the problem? (8 Replies)
I want to write a shell script to copy a list of files from one directory to another. And while copying it should change the first character of the filename to uppercase and others to lowercase.Below is what i have tried so far.
for file in "$@"
do
if
then
ufile=`echo $file | sed... (5 Replies)
Dear All,
I have a situation where I want to copy some files of type .txt.
These files are o/p from one program. Some of the files are named as
fileName .txt instead of fileName.txt
after fileName by mistake I have specified "space". Now I want to move these files as follows.
mv fileName*... (13 Replies)
Hi All,
i'm trying to copy the 1.txt files (sample files) in to different path location using the below command.
But it is not copying the files , when i tried for single location able to copy the file.
can any one please assist here.
Please find the below path :-
/ckr_mkr1/licencekey... (2 Replies)
Discussion started by: venkat918
2 Replies
LEARN ABOUT V7
as
AS(1) General Commands Manual AS(1)NAME
as - assembler
SYNOPSIS
as [ - ] [ -o objfile ] file ...
DESCRIPTION
As assembles the concatenation of the named files. If the optional first argument - is used, all undefined symbols in the assembly are
treated as global.
The output of the assembly is left on the file objfile; if that is omitted, a.out is used. It is executable if no errors occurred during
the assembly, and if there were no unresolved external references.
FILES
/lib/as2 pass 2 of the assembler
/tmp/atm[1-3]? temporary
a.out object
SEE ALSO ld(1), nm(1), adb(1), a.out(5)
UNIX Assembler Manual by D. M. Ritchie
DIAGNOSTICS
When an input file cannot be read, its name followed by a question mark is typed and assembly ceases. When syntactic or semantic errors
occur, a single-character diagnostic is typed out together with the line number and the file name in which it occurred. Errors in pass 1
cause cancellation of pass 2. The possible errors are:
) Parentheses error
] Parentheses error
< String not terminated properly
* Indirection used illegally
. Illegal assignment to `.'
a Error in address
b Branch instruction is odd or too remote
e Error in expression
f Error in local (`f' or `b') type symbol
g Garbage (unknown) character
i End of file inside an if
m Multiply defined symbol as label
o Word quantity assembled at odd address
p `.' different in pass 1 and 2
r Relocation error
u Undefined symbol
x Syntax error
BUGS
Syntax errors can cause incorrect line numbers in following diagnostics.
PDP11 AS(1)