Sponsored Content
Top Forums Shell Programming and Scripting '*' not working in shellscript Post 302750931 by Bopty on Thursday 3rd of January 2013 01:07:44 AM
Old 01-03-2013
Display '*' not working in shellscript

Hi,

To Archive files, I try to move files from one directory to another directory . So i used the below logic,

Code:
#!/bin/ksh

 
****Archive*****

mv ${DATA_DIR}/ABC_.dat ${ARCHIVE}

So if i give the complete file name its working fine. But if i use '*', im getting the below error,

mv: cannot stat `PATH`: : No such file or directory

Please help me in this.
Thanks,
Bopty SmilieSmilie

Last edited by Scrutinizer; 01-03-2013 at 03:16 AM.. Reason: code tags
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

ftp in Shellscript

Can I do something like this from a shellscript ?: ftp 12.34.56.78 <<! username password put a.c bye ! It does not go through as the login fails. Is there any alternative to do the above requirement? Thanks in advance. Gowrish (3 Replies)
Discussion started by: ggowrish
3 Replies

2. Shell Programming and Scripting

Another shellscript question

Folks; on a unix server I have a mapping file which holds a list mountpoints of all databases and their mountpoints. tab delimited or colon deliminted..I needed to copy the datafiles from the pristine mountpoints to test's mountpoints in this case. I needed to do this by passing sid name using... (18 Replies)
Discussion started by: jigarlakhani
18 Replies

3. Programming

Shellscript for MQSeries

Iam new to shellscript. 1)How to strart QUERYMANAGER using shellscript. 2)How to put and get messages in MQSeries using shellscripts. 3)iam using local queues . Thanks lot. (0 Replies)
Discussion started by: ram2s2001
0 Replies

4. UNIX for Advanced & Expert Users

shellscript problem

hI, Pls consider the following shell script #!/bin/csh -f sqlplus tkyte/tkyte <<"EOF" > tmp.csh set serveroutput on declare a number:=5; begin dbms_output.put_line( 'a:='||a ); end; / spool off "EOF" The above script does the followin 1)it connects... (1 Reply)
Discussion started by: ravi raj kumar
1 Replies

5. Shell Programming and Scripting

Need help with shellscript

Hello. I am a novince at writing shell scripts but here is the question. I have to write a shell script that does the following: Once executed via crontab, the script should do the following: a. get date/time stamp in for format 10-MAR-05 and b. execute shell script my_script.sh (which... (2 Replies)
Discussion started by: jigarlakhani
2 Replies

6. UNIX for Dummies Questions & Answers

How can I do aliasing in shellscript?

#Example.sh alias rmv 'sh Example2.sh' when i execute exapme.sh alias name not working. how i solve this problem?? (9 Replies)
Discussion started by: arun508.gatike
9 Replies

7. Shell Programming and Scripting

Needed shellscript for the following

hi all, i need the shell script for he below requirement i had the input file as a_20121217_035120( frmat is a_date_hhmmss) a_20121217_035128 a_20121217_035456 a_20121217_035767 a_20121217_035178 a_20121217_035189 a_20121217_035220 my output should be a_20121217_035456... (0 Replies)
Discussion started by: hemanthsaikumar
0 Replies

8. Shell Programming and Scripting

Help with shellscript

I am new in shell script i want to convert .txt file in the format axsjdijdjjdk to a x s j d i j d j j d k (5 Replies)
Discussion started by: sreejithalokkan
5 Replies

9. Shell Programming and Scripting

Telnet shellscript

cat << EOF | telnet alt1.aspmx.l.google.com 25 HELO verify-email.org MAIL FROM: <check@verify-email.org> RCPT TO: <test@gmail.com> quit EOF Hello, I'm trying to get the result of that execution, and can not see the result or bring it to a txt ... the direct command in ssh running the result... (5 Replies)
Discussion started by: c0i0t3
5 Replies
ar(4)							     Kernel Interfaces Manual							     ar(4)

NAME
ar - Archive (library) file format SYNOPSIS
#include <ar.h> DESCRIPTION
The archive command (ar) combines several files into one. Archives are used mainly as libraries to be searched by the link-editor ld. A file produced by ar has a magic string at the start, followed by the constituent files, each preceded by a file header. The magic number and header layout as described in the include file are: COMMON ARCHIVE FORMAT ARCHIVE File Organization: _______________________________________________ |__________ARCHIVE_MAGIC_STRING_______________| |__________AR- CHIVE_FILE_MEMBER_1______________| | | | Archive File Header "ar_hdr" | |.............................................| | Member Contents | | 1. External symbol directory | | 2. Text file | |_____________________________________________| |________ARCHIVE_FILE_MEM- BER_2________________| | "ar_hdr" | |.............................................| | Member Con- tents (.o or text file) | |_____________________________________________| | . . . | | . . . | | . . . | |_____________________________________________| |________AR- CHIVE_FILE_MEMBER_n________________| | "ar_hdr" | |.............................................| | Member Contents | |_____________________________________________| The name is a blank-padded string. The ar_fmag field contains ARFMAG to help verify the presence of a header. The other fields are left- adjusted, blank-padded numbers. They are decimal except for ar_mode, which is octal. The date is the modification date of the file at the time of its insertion into the archive. Each file begins on an even (0 mod 2) boundary; a new-line is inserted between files if necessary. Nevertheless the size given reflects the actual size of the file exclusive of padding. There is no provision for empty areas in an archive file. The encoding of the header is portable across machines. If an archive contains printable files, the archive itself is printable. RESTRICTIONS
File names lose trailing blanks. Most software dealing with archives takes even an included blank as a name terminator. RELATED INFORMATION
ar(1), ld(1), nm(1) delim off ar(4)
All times are GMT -4. The time now is 04:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy