Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Listing a file/directory with 7 letters long Post 302967182 by Don Cragun on Saturday 20th of February 2016 04:00:19 PM
Old 02-20-2016
Is this a homework assignment? Note that homework and coursework questions can only be posted in the Homework and Coursework forum and posts there must follow special homework rules.

If it isn't homework, please be a little bit less cryptic. What ., ?, !, and spaces?

Are you saying that some of your filenames contain those characters and you only want to list files that have names containing seven characters but only if none of those seven characters are a period, question mark, exclamation point, or a space?

Are you saying that some of your filenames contain those characters and you only want to list files that have names containing seven characters (ignoring any period, question mark, exclamation point, and space characters when counting the number of characters in the file's name).

Are you saying that you don't want ls to include any spaces, tabs, or newlines between the filenames it lists?

Or are you asking for something else that I haven't guessed might be what you're trying to do?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

long listing of files up to a given date

Hi I would like to a long list of files up to a given date. I've tried: ls -al > filelist but this command gives me all the files. I've also have tried the find command: find . -mtime -10 -type f -print > filelist This gives me information on active file within the past 10 days and... (2 Replies)
Discussion started by: rlh
2 Replies

2. UNIX for Dummies Questions & Answers

Recursive directory listing without listing files

Does any one know how to get a recursive directory listing in long format (showing owner, group, permission etc) without listing the files contained in the directories. The following command also shows the files but I only want to see the directories. ls -lrtR * (4 Replies)
Discussion started by: psingh
4 Replies

3. Shell Programming and Scripting

grep/matching help with long listing of directories

How do I get this to work? cat somefile | grep "-rw-r--r-- 1 root wheel 287 Sep 10 15:12 shells~" This is the the desired output -rw-r--r-- 1 root wheel 287 Sep 10 15:12 shells~ I basically want an exact match of the line I am grepping for, the special characters and... (5 Replies)
Discussion started by: streetfighter2
5 Replies

4. Shell Programming and Scripting

listing Directory chronologically based on part of file name

hi Everbody, I had file names as shown file_01_20101104.txt file_01_20101105.txt file_02_20101104.txt file_01_20101205.txt file_03_20101104.txt file_02_20101105.txt Now i want to list them based on the date in the file name as shown... file_01_20101104.txt file_02_20101104.txt... (3 Replies)
Discussion started by: Reddy482
3 Replies

5. UNIX for Advanced & Expert Users

script regarding listing long group names

Hello, When listing the file systems (using ls -ltr) , if the group names are longer the group name is getting truncated. Can someone help with the script which would display the truncated group name? I appreciate if someone could help in this regard. (1 Reply)
Discussion started by: mike12
1 Replies

6. Solaris

Listing the long groupnames

Hello, When listing the file systems (using ls -ltr) , if the group names are longer the group name is getting truncated. Can someone help with the script which would display the truncated group name? I appreciate if someone could help in this regard. (1 Reply)
Discussion started by: mike12
1 Replies

7. UNIX for Dummies Questions & Answers

shell script for long listing of groupnames

Hello, When listing the file systems (using ls -ltr) , if the group names are longer the group name is getting truncated. Can someone help with the script which would display the truncated group name? I appreciate if someone could help in this regard. (3 Replies)
Discussion started by: mike12
3 Replies

8. UNIX for Dummies Questions & Answers

File listing from remote to local directory

Hello, I have a file at remote server. I have to select only current day's files that are dropped on ftp server. The files do not have date or timestamp on them. so I plan to get the file listing from remote server to the local server. Based on file listing date I can find out when the files... (2 Replies)
Discussion started by: pavan_test
2 Replies

9. UNIX for Dummies Questions & Answers

File Listing from remote to loca directory using SFTP

Hello, Using ftp i was able to get a directory listing to local directory. ftp - i <host_name> ftp <user> ftp <password> dir <dir> 200 PORT command successful 150 Opening ASCII mode data connection for file list -rw-rw-r-- 1 <uuu> <kkk> 160384 Apr 13 19:38 walmart.txt 226... (5 Replies)
Discussion started by: pavan_test
5 Replies

10. UNIX for Beginners Questions & Answers

Need help with listing file name and modified date on a huge directory

hi, We have a huge directory that ha 5.1 Million files in it. We are trying to get the file name and modified timestamp of the most recent 3 years from this huge directory for a migration project. However, the ls command (background process) to list the file names and timestamp is running for... (2 Replies)
Discussion started by: subbu
2 Replies
MojoMojo::Formatter::Wiki(3pm)				User Contributed Perl Documentation			    MojoMojo::Formatter::Wiki(3pm)

NAME
MojoMojo::Formatter::Wiki - Handle interpage linking. DESCRIPTION
This formatter handles intra-Wiki links specified between double square brackets or parentheses: [[wiki link]] or ((another wiki link)). It will also indicate missing links with a question mark and a link to the edit page. Links can be implicit (like the two above), where the path is derived from the link text by replacing spaces with underscores (<a href="wiki_link">wiki link</a>), or explicit, where the path is specified before a '|' sign: [[/explicit/path|Link text goes here]] Note that external links have a different syntax: [Link text](http://foo.com). METHODS
format_content_order Format order can be 1-99. The Wiki formatter runs on 10. strip_pre Replace <pre ... with a placeholder reinsert_pre Put pre and lang back into place. format_content Calls the formatter. Takes a ref to the content as well as the context object. format_link <c> <wikilink> <base> [<link_text>] Format a wikilink as an HTML hyperlink with the given link_text. If the wikilink doesn't exist, it will be rendered as a hyperlink to an .edit page ready to be created. Since there is no difference in syntax between new and existing links, some abiguities my occur when it comes to characters that are invalid in URLs. For example, * [[say "NO" to #8]] should be rendered as "<a href="say_%22NO%22_to_%238">say "NO" to #8</a>" * [[100% match]] should be rendered as "<a href="100%25_match>100% match</a>", URL-escaping the '%' * but what about a user pasting an existing link, "[[say_%22NO%22_to_%238]]"? We shouldn't URL-escape the '%' or '#' here. * for links with explicit link text, we should definitiely not URL-escape the link: "[[say_%22NO%22_to_%238|say "NO" to #8]]" This is complicated by the fact that '#' can delimit the start of the anchor portion of a link. * "[[Mambo #5]]" - URL-escape '#' => Mambo_%235 * "[[Mambo#origins]]" - do not URL-escape * "[[existing/link#Introduction|See the Introduction]]" - definitely do not URL-escape Since escaping is somewhat magic and therefore potentially counter-intuitive, we will: * only URL-escape '#' if it follows a whitespace directly * always URL-escape '%' unless it is followed by two uppercase hex digits * always escape other characters that are invalid in URLs expand_wikilink <wikilink> Replace "_" with spaces and unescape URL-encoded characters find_links <content> <page> Find wiki links in content. Return a listref of linked (existing) and wanted pages. SEE ALSO
MojoMojo, Module::Pluggable::Ordered AUTHORS
Marcus Ramberg <mramberg@cpan.org> LICENSE
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2010-05-23 MojoMojo::Formatter::Wiki(3pm)
All times are GMT -4. The time now is 02:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy