How can i use shell meta characters like * ,$ <,> ?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How can i use shell meta characters like * ,$ <,> ?
# 8  
Old 08-10-2009
sorry for troubling you so much scott.....
i tried it as ...

[code]
$ cat abc
echo $1


$ abc \*
abc boot~ cmdexfil debugging_files Desktop Documents Examples linuxfiles Mono_Docs Music perm.sh~ Pictures procref1_files project files Public SciTEGlobal.properties shellPROG softwares static_ip~ Templates Videos
[\code]

---------- Post updated at 09:46 AM ---------- Previous update was at 09:34 AM ----------

sorry for troubling you scott....
i tried this
[code]
$ cat abc
echo $1

$ abc \*
abc boot~ cmdexfil debugging_files Desktop Documents Examples linuxfiles Mono_Docs Music perm.sh~ Pictures procref1_files project files Public SciTEGlobal.properties shellPROG softwares static_ip~ Templates Videos
[\code]
# 9  
Old 08-10-2009
Hi.

No probs.

Sorry none of the examples used * inside a script.

In your script your can quote the $1
Code:
echo "$1"

or use "set -o noglob" to turn off filename expansion (and use "set +o noglob" to turn it back on again when you want).
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Remove first meta key from json records using shell

Hi All, I need to get rid of initial meta key from json files with enclosed parenthesis from start and end of the lines which has total 4000 lines. here is the sample Json records : {"start": true, "meta": {"name": "xyz", "creation": "2017-07-14T16:20:06.000+02:00"}} I need to remove... (7 Replies)
Discussion started by: Cloud_Ninja
7 Replies

2. Homework & Coursework Questions

Meta charcters

find out lines in a given file consisting of the following pattern BCAA, BCAAA, BCAAAA, BCAAAAA, BCAAAAAA (1 Reply)
Discussion started by: Phaneendra G
1 Replies

3. UNIX for Dummies Questions & Answers

Meta charcters

Find out lines in a given file consisting of the following pattern BCAA, BCAAA, BCAAAA, BCAAAAA, BCAAAAAA (0 Replies)
Discussion started by: Phaneendra G
0 Replies

4. Solaris

Meta Devices ( Metadb )

Hi All, I have two disks which has been configured for RAID 1 Already. I am adding more 6 disks in the system and I am configuring RAID 1 for all. So in this case should , how should i create a metadb . Thanks and Regards Rj (3 Replies)
Discussion started by: jegaraman
3 Replies

5. Solaris

What is Meta Database ?

Hi Guys, what is a meta file system ? what is it use for? What is /etc/vfstab? What is the relationship between the "vfstab file and meta file system. (3 Replies)
Discussion started by: tlee
3 Replies

6. Solaris

What is Meta Database ?

Hi Guys, what is a meta file system ? what is it use for? What is /etc/vfstab? What is the relationship between the "vfstab file and meta file system. thanks (1 Reply)
Discussion started by: tlee
1 Replies

7. Solaris

Meta Devices

I have added a sun storage array from a faiulty server onto a new server and copied the md.conf files etc. I can now access the /dev/md/dsk file systems, but I want to delete some metadevices that do not exist (it still thinks the 0 and 1 (root /var /export) disk are mirrored. How do I do this? (8 Replies)
Discussion started by: ozzmosiz
8 Replies

8. UNIX for Advanced & Expert Users

info regarding meta device

What is the quickest way to get partition / slices / hard disk / controller information regarding meta devices (md) on solaris 8. Thanks in advance. (4 Replies)
Discussion started by: Hitesh Shah
4 Replies
Login or Register to Ask a Question