11-23-2008
Listing all the files names not starting as
hello all,
iam new to shell scripting.I have searched the forum and could'nd find a close enough answer and hence this post:
I want to list all the file names whose names don't start as abc.
For example if my folder constains files with names: abc123.txt,erdf23.rdf,ed45r.fmb
i want a command which will list only files erdf23.rdf,ed45r.fmb and omit the file abc123.txt.
the ls command does'nt seem to have a -not option
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
2. UNIX for Dummies Questions & Answers
This is what I have to do:
Display the full file name (including the full path) and file size of all files whose name (excluding the path) is exactly 3 characters long.
This is the code I have:
find / -printf "Name: %f Path: %h Size: %s (bytes)\n" 2>/dev/null | grep -E "Name: .{3,} Path" |... (7 Replies)
Discussion started by: Joesgrrrl
7 Replies
3. Shell Programming and Scripting
Hi,
I am new to perl:
I need to write perl script to list all the files present in directory and mail should be come to my inbox with all the files present in that directory.
advanced thanks for valuable inputs.
Thanks
Prakash GR (1 Reply)
Discussion started by: prakash.gr
1 Replies
4. Shell Programming and Scripting
Hi,
I have been looking for a method to list file names as soon as they are created. I have used the following command :
find . -name "*.xml" -mmin -2 -exec ls --full-time {} \; | sort -k6
this finds all xml files created in the last 2 minutes and orders them by time. The problem is that... (7 Replies)
Discussion started by: phil.e.b
7 Replies
5. UNIX for Advanced & Expert Users
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. Shell Programming and Scripting
Hi,
I have lets say 10 files , I need to process them one by one.
So I need a command to get one file name at a time to process it into a variable
Example
Files
P1111.dat
P3344.dat
S344.dat
...
v_file_name = 'p111.dat' .. I will rename it to something after processing
... (1 Reply)
Discussion started by: prassu
1 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I need some help.
How can I list files starting with p or f and with the exact length of 3 characters? (2 Replies)
Discussion started by: airbebe
2 Replies
8. Shell Programming and Scripting
Hi,
I want to display the file names and the record count for the files in the 2nd column for the files created today.
i have written the below command which is listing the file names. but while piping the above command to the wc -l command
its not working for me.
ls -l... (5 Replies)
Discussion started by: Showdown
5 Replies
9. Shell Programming and Scripting
Data files coming in different names in a file name called process.txt.
1. shipments_yyyymmdd.gz
2 Order_yyyymmdd.gz
3. Invoice_yyyymmdd.gz
4. globalorder_yyyymmdd.gz
The process needs to discard all the below files and only process two of the 4 file names available
... (1 Reply)
Discussion started by: dsravanam
1 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I have a .csv file that has ~600 columns and thousands of rows. I would like to create a numerical list of the column names (so that I can later easily select the columns I want to extract). The format that I would hope for is something like:
1 "ID"
2 "X"
3 "Y"
..
600 "Z"
... (4 Replies)
Discussion started by: aberg
4 Replies
LEARN ABOUT DEBIAN
gpm.conf
GPM.CONF(5) BSD File Formats Manual GPM.CONF(5)
NAME
gpm.conf -- startup configuration file for gpm
DESCRIPTION
gpm.conf specifies options to be passed to the gpm daemon at start time. It is parsed by the init script, rather than by gpm itself. It
comprises variable assignments in Bourne shell syntax: variable=value (with no extra spaces; to embed spaces or other shell metacharacters in
values, use quotes as in shell scripting). Blank lines and lines beginning with a hash ("#") are ignored.
Settings are implemented by setting flags on the gpm command line; these are documented in gpm(8). The following variable names are speci-
fied:
device Specifies the device file for your primary mouse. This sets -m.
type Specifies the protocol for your primary mouse. This sets -t.
device2, type2
The same as device and type, but for your secondary mouse. These set -m and -t after passing -M. If either of these are
defined, both must be.
responsiveness
Specifies the responsiveness for your primary mouse. This sets -r.
sample_rate Specifies the sample rate for your primary mouse. This sets -s.
repeat_type Enables the gpm repeater and sets the repeater protocol, using the -R flag. Repeat type none or an empty value will disable
the repeater.
append Any options specified here are appended to the gpm command line. If you use multiple options, you will need to enclose the
value in quotes ("").
EXAMPLES
A simple gpm.conf file for a PS/2 mouse whose protocol should be autodetected, and which should be repeated in /dev/gpmdata as a serial Mi-
crosoft Intellimouse:
# Sample gpm.conf
device=/dev/psaux
type=autops2
repeat_type=ms3
This will cause the daemon to be started as gpm -m /dev/psaux -t autops2 -Rms3.
FILES
/etc/gpm.conf
SEE ALSO
gpm(8), dpkg-reconfigure(8). dpkg-reconfigure gpm can be used to generate and update the gpm.conf file automatically.
Debian 3.0 January 5, 2005 Debian 3.0