Show help

 
Thread Tools Search this Thread
Homework and Emergencies Homework & Coursework Questions Show help
# 1  
Old 02-08-2013
Show help

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:

Display the contents of all files ending in a number to the screen

2. Relevant commands, code, scripts, algorithms:
Cat ?

3. The attempts at a solution (include all code and scripts):
cat *[0-9]
cat [0-9]*



4. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
BCIT Burnaby BC Canada Dave Nielsen comp 2765

Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).

Hi I am a Linux newbie and I am stuck trying to figure out the show command wildcards to display all files ending in a number

Thanks for looking
# 2  
Old 02-09-2013
Hi, if you use echo with a pattern first, for example
Code:
echo *[0-9]

or
Code:
echo [0-9]*

this will show you what files the cat command would be using if you use it with that pattern..
# 3  
Old 02-09-2013
Thanks so much for your help...
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

$LINENO no show

$LINENO is bash "system" variable but I cannot get any output trying to use it. Am I missing something fundamental? Here is the code snippet 13) 247 echo "TEMPLATE Option 13" 248 249 # *** BEGIN DEBUG BLOCK *** 250 last_cmd_arg=$_ # Save it. 251 ... (6 Replies)
Discussion started by: annacreek
6 Replies

2. Post Here to Contact Site Administrators and Moderators

Show all my Posts?

Hello, Is there a way to display all of the posts I have authored? Many thanks in advance. (1 Reply)
Discussion started by: dlundwall
1 Replies

3. Shell Programming and Scripting

[Solved] Show lines above and below!

hello team - anyone can help shwoing how to grep a file showing the lines above and below? Thx Bragabio (7 Replies)
Discussion started by: bragabio
7 Replies

4. UNIX for Dummies Questions & Answers

why lsof does not show timestamps?

Hello everyone: I want list all the outcoming connections for a process by using lsof, that process seems to be creating a lot of sequential connections and one of them takes more time than the others, however lsof does not include information about timestamps or how long each connection is... (1 Reply)
Discussion started by: edgarvm
1 Replies

5. Shell Programming and Scripting

is there command to show the fs on a directory?

On Solaris, is there a command which can show the file system of a specific directory? In a script, i need to figure out whether a directory or its parent directory is mounted as "NFS". Is there a easy way to figure it out? (3 Replies)
Discussion started by: sleepy_11
3 Replies

6. UNIX for Dummies Questions & Answers

ls how to not show date

Hello, I'm using ls -laR to print out a list of file and folders. I want to print only the permission, file size and file name. Also, excluding the '.' and '..'. result from ls -laR: total 6 drwxr-xr-x 8 user staff 512 Nov 28 16:17 . drwxr-x--- 16 user staff 1024... (3 Replies)
Discussion started by: minifish
3 Replies

7. UNIX for Dummies Questions & Answers

Show path name

Hello I'm new to this forum. So please spare me! I'm using SCO UnixWare 7.1.4 and created a few accounts. So far so good. When I login I see: $. But here I want to see (for example), /home 25$ So I want to see the pathname where I am without each time typing pwd (2 Replies)
Discussion started by: p.vvugt
2 Replies

8. UNIX Desktop Questions & Answers

Show us your Desktop

I don't see any threads like this and I know that a bunch of people have really cool desktops, so I`ll start. rules 1 no images in your post,attachments only 2 no default desktops, tha would be very much a waste (2 Replies)
Discussion started by: Genral
2 Replies
Login or Register to Ask a Question