Sponsored Content
Full Discussion: Changing names
Top Forums Shell Programming and Scripting Changing names Post 302439730 by kristinu on Friday 23rd of July 2010 11:56:32 AM
Old 07-23-2010
Changing names

I have file names

Code:
m04-npt06-z30-syn.ps
m04-npt06-dp018-8x6smp.vmod
m04-npt06-sr40-syn-dp01-16x12drw.params
m04-npt06-sr40-syn-dp008-16x12drw.params
m04-npt06-sr40-syn-dp008-16x12drw.vmod
m04-npt06-sr40-syn-dp008-16x12drw.bck
m04-npt06-sr40-syn-dp008-16x12drw.exp
m04-npt06-sr40-syn-dp01-16x12drw.vmod
m04-npt06-sr40-syn-dp01-16x12drw.bck
m04-npt06-sr40-syn-dp01-16x12drw.exp
m04-npt06-sr40-syn-dp01-16x12drw.log
m04-npt06-sr40-syn-dp008-16x12drw.log
m04-npt06-dp015-8x6drw.log
m04-npt06-dp018-8x6drw.log
m04-npt06-4x3drw.log
m04-npt06-sr40-syn-dp008-16x12drw-rms.tmp
m04-npt06-sr40-syn-dp008-16x12drw-bst.tmp
m04-npt06-sr40-syn-dp008-16x12drw-rms.xy
m04-npt06-sr40-syn-dp008-16x12drw-bst.xy
m04-npt06-sr40-syn-dp01-16x12drw-rms.tmp
m04-npt06-sr40-syn-dp01-16x12drw-bst.tmp
m04-npt06-sr40-syn-dp01-16x12drw-rms.xy
m04-npt06-sr40-syn-dp01-16x12drw-bst.xy
m04-npt06-sr40-syn-dp008-16x12drw-rms-misf.xy
m04-npt06-sr40-syn-dp008-16x12drw-bst-misf.xy
m04-npt06-sr40-syn-dp008-16x12drw.vel
m04-npt06-sr40-syn-dp008-16x12drw.xzv
m04-npt06-sr40-syn-dp008-16x12drw.grd
m04-npt06-sr40-syn-dp008-16x12drw.cpt
m04-npt06-sr40-syn-dp008-16x12drw.ps
m04-npt06-sr40-syn-dp01-16x12drw-rms-misf.xy
m04-npt06-sr40-syn-dp01-16x12drw-bst-misf.xy
m04-npt06-sr40-syn-dp01-16x12drw-iter24.vel
m04-npt06-sr40-syn-dp01-16x12drw-iter24.xzv
m04-npt06-sr40-syn-dp01-16x12drw-iter24.grd
m04-npt06-sr40-syn-dp01-16x12drw-iter24.cpt
m04-npt06-sr40-syn-dp01-16x12drw-iter24.ps
m04-npt06-sr40-syn-dp01-16x12drw.vel
m04-npt06-sr40-syn-dp01-16x12drw.xzv
m04-npt06-sr40-syn-dp01-16x12drw.grd
m04-npt06-sr40-syn-dp01-16x12drw.cpt
m04-npt06-sr40-syn-dp01-16x12drw.ps
m04-npt06-4x3drw-rms-misf.xy
m04-npt06-4x3drw-bst-misf.xy

I want to remove the m04- at the beginning using awk

How can I do this?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

changing file names to lowercase

hey guys having some trouble figuring this out. my program is supposed to take a name of a directory as a command line argument and change the filenames inside that directory to lowercase. what i dont get is how you access that directory and go thru all the files and change the filenames... (1 Reply)
Discussion started by: 30177005
1 Replies

2. UNIX for Dummies Questions & Answers

Moving files and changing names

i have many files with extention filename.ASN_ERROR~ at a path. I want to move these files to another path and change extension to .ASN There are more then 80,000 files so i cant use manual commands muneebr (5 Replies)
Discussion started by: muneebr
5 Replies

3. Red Hat

changing ethernet NIC names?

I have an RHEL 5 server with 2 Broadcom on-board NICs and 2 quad-port Intel NICs. After I installed the OS, the Intel NICs became eth0-7, and the onboards are eth8 and eth9. I really need the onboard NICs to be eth0 and eth1 (I have plans to later remove the quad-ports and replace them with 10gE... (1 Reply)
Discussion started by: GKnight
1 Replies

4. Shell Programming and Scripting

Changing file names with AWK

Dear All, I have some thousands of files in a folder and i need to change those file names without opening the file (no need to change anything in the file content, need to change the file name only). The filenames are as follows: Myfile_name.1_parameter Myfile_name.2_parameter... (6 Replies)
Discussion started by: Fredrick
6 Replies

5. Shell Programming and Scripting

Changing file names

I have lot of files whose names are something like the following. I want to change the name of all the files from 'npt02' to 'n02'. npt02-z30-sr65-rgdt0p50-dc0p01-16x12drw.tpf npt02-z30-sr65-rgdt0p50-dc0p01-8x6drw.back npt02-z30-sr65-rgdt0p50-dc0p01-8x6drw-bst-mis.xy... (5 Replies)
Discussion started by: kristinu
5 Replies

6. Shell Programming and Scripting

changing multiple directory names

Hi guys, I have lots of files that look like: ABC.packed.dir DEF.packed.dir GHI.packed.dir etc... I would like them to have more of the usual naming convention ABC DEF GHI etc... so I was thinking that I could: (2 Replies)
Discussion started by: atjurhs
2 Replies

7. Shell Programming and Scripting

Changing file names

I have file names as shown and want to change the name to have only the first four numbers. /home/chrisd/Desktop/nips/nips_2013/5212-learning-feature-selection-dependencies-in-multi-task-learning.pdf /home/chrisd/Desktop/nips/nips_2013/5213-parametric-task-learning.pdf... (3 Replies)
Discussion started by: kristinu
3 Replies

8. Shell Programming and Scripting

Changing file names

I have a series of files as follows file-1.pdf file-2.pdf file-3.pdf file-4.pdf file-5.pdf file-6.pdf file-7.pdf I want to have the file names with odd numbers starting from an initial number, for example 2000. The result would be the following: file-2001.pdf file-2003.pdf... (9 Replies)
Discussion started by: kristinu
9 Replies

9. Debian

Changing file extension names

Hi I have a list of files :root@L28mustang:/var/log/exim4/2017/Jul2017_Blast_BC07# ls -lrt | grep mainlog -rw-r----- 1 Debian-exim adm 3636932 Jul 8 06:25 mainlog.3.gz -rw-r----- 1 Debian-exim adm 919512 Jul 9 06:27 mainlog.2.gz -rw-r----- 1 Debian-exim adm 7655054 Jul 10 06:25 mainlog.1... (1 Reply)
Discussion started by: anaigini45
1 Replies

10. Shell Programming and Scripting

Changing file names

sac_pzs_iv_epoz_hhe__2013.074.14.40.46.0000_2599.365.23.59.59.99999 sac_pzs_iv_epoz_hhn__2013.074.14.40.46.0000_2599.365.23.59.59.99999 sac_pzs_iv_epoz_hhz__2013.074.14.40.46.0000_2599.365.23.59.59.99999 sac_pzs_iv_haga_hhe__2006.111.00.00.00.0000_2599.365.23.59.59.99999... (3 Replies)
Discussion started by: kristinu
3 Replies
NTPD.CONF(5)							File Formats Manual						      NTPD.CONF(5)

NAME
ntpd.conf - Network Time Protocol daemon configuration file DESCRIPTION
This manual page describes the format of the ntpd(8) configuration file. The optional weight keyword permits finer control over the relative importance of time sources (servers or sensor devices). Weights are specified in the range 1 to 10; if no weight is given, the default is 1. A server with a weight of 5, for example, will have five times more influence on time offset calculation than a server with a weight of 1. ntpd.conf has the following format: Empty lines and lines beginning with the `#' character are ignored. Keywords may be specified multiple times within the configuration file. They are as follows: listen on address OpenNTPd has the ability to sync the local clock to remote NTP servers and, if this directive is specified, can act as NTP server itself, redistributing the local clock. Specify a local IP address or a hostname the ntpd(8) daemon should listen on to enable remote clients synchronization. If it appears multiple times, ntpd(8) will listen on each given address. If `*' is given as an address, ntpd(8) will listen on all local addresses. ntpd(8) does not listen on any address by default. For example: listen on * or listen on 127.0.0.1 listen on ::1 sensor device [correction microseconds] [weight weight-value] Specify a timedelta sensor device ntpd(8) should use. The sensor can be specified multiple times: ntpd(8) will use each given sen- sor that actually exists. Non-existent sensors are ignored. If `*' is given as device name, ntpd(8) will use all timedelta sensors it finds. ntpd(8) does not use any timedelta sensor by default. For example: sensor * sensor udcf0 An optional correction in microseconds can be given to compensate for the sensor's offset. The maximum correction is 127 seconds. For example, if a DCF77 receiver is lagging 15ms behind actual time: sensor udcf0 correction 15000 server address [weight weight-value] Specify the IP address or the hostname of an NTP server to synchronize to. If it appears multiple times, ntpd(8) will try to syn- chronize to all of the servers specified. If a hostname resolves to multiple IPv4 and/or IPv6 addresses, ntpd(8) uses the first address. If it does not get a reply, ntpd(8) retries with the next address and continues to do so until a working address is found. For example: server 10.0.0.2 weight 5 server ntp.example.org weight 1 To provide redundancy, it is good practice to configure multiple servers. In general, best accuracy is obtained by using servers that have a low network latency. servers address [weight weight-value] As with server, specify the IP address or hostname of an NTP server to synchronize to. If it appears multiple times, ntpd(8) will try to synchronize to all of the servers specified. Should the hostname resolve to multiple IP addresses, ntpd(8) will try to syn- chronize to all of them. For example: servers pool.ntp.org FILES
/etc/openntpd/ntpd.conf default ntpd(8) configuration file SEE ALSO
ntpd(8), sysctl(8) HISTORY
The ntpd.conf file format first appeared in OpenBSD 3.6 . $Mdocdate: October 2 2007 $ NTPD.CONF(5)
All times are GMT -4. The time now is 06:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy