Sponsored Content
Full Discussion: File name offset
Top Forums UNIX for Dummies Questions & Answers File name offset Post 302925538 by kri321shna on Monday 17th of November 2014 07:38:28 PM
Old 11-17-2014
Yes i want to rename the files

Thanks

---------- Post updated at 06:04 AM ---------- Previous update was at 06:03 AM ----------

I am new to awk code i dont know much commands. plz help this time, i will learn from that. Thanks RudiC

---------- Post updated at 06:08 AM ---------- Previous update was at 06:04 AM ----------

Joeyg:
Will the layout always be like:

Code:
ANI_WFMASS_PIST0000n.gif

I am referring to the exact character layout:
grab third word, using _ as delimiter [PIST0000n.gif]
grab first word using . as delimiter [PIST0000n]
grab beginning with 5th letter [0000n].
-----------------------------------------------------------------------

I have vba code with this logic, but i have to transfer files every time, so I want to rename in linux.

I am new to awk. can you please make code (awk or linux).

Thank you so much.
Krishna
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

offset - informix chunk

Hello all, I am trying to add chunks to my informix dataspace. I have one dataspace ( the rootdbs ) and the new chunk is a raw device. Precisely slice1 on my new external harddisk. The question is, what should be the offset value. The document says, the offset is used by the engine to... (1 Reply)
Discussion started by: shibz
1 Replies

2. UNIX for Advanced & Expert Users

Script to Extract the line from File with specified offset

Hi All, I need to extract only XML details from large log file which may contain other unwanted junk details. For example, our xml will be start as <OUTBOUND_MESSAGE .....> and ends with </OUTBOUND_MESSAGE>. I want to extract only lines between these start and end tag (Including these tags)... (5 Replies)
Discussion started by: thinakarmani
5 Replies

3. UNIX for Dummies Questions & Answers

Reading a file from a specified offset

Hi, I want to read a file from a specified offset from the start of file. With the read command, is it possible to do so. Please suggest. Is there any other alternative? Thanks, Saurabh (2 Replies)
Discussion started by: saurabhsinha23
2 Replies

4. Programming

Negative Offset

Function: int fcntl(int fd, int cmd, struct flock * lock) Data Type: struct flock This structure is used with the fcntl function to describe a file lock. It has these members: off_t l_start This specifies the offset of the start of the region to which the lock applies, and... (1 Reply)
Discussion started by: DNAx86
1 Replies

5. Shell Programming and Scripting

increment a value at an offset in hundreds very large hex file

I have a lot of very large hex files that I need to change one value at the same offset and save to another file. I have a script that finds each file and just need to put an operator for each file. I think sed might be able to do this but I have not used it before and would like some help. If... (8 Replies)
Discussion started by: Eruditass
8 Replies

6. Shell Programming and Scripting

Moving bytes in file by offset and length

Hi, I'm looking for a way (other than C) to pull out a number of bytes in a Linux file for a giving length. for example: file1 contains 2 records: abcdefghijkl mnopqrstuv ..... so, I want to pull starting in byte 9 for a length of 8 file2 would contain: ijkmnopq Thanks (2 Replies)
Discussion started by: jbt828
2 Replies

7. Solaris

NTP client offset

How to add offset to NTP client so that, for eg., clock is -20 seconds? (2 Replies)
Discussion started by: orange47
2 Replies

8. UNIX for Dummies Questions & Answers

Tail with positive offset

I have read the below from the book bash cookbook.Tail +1 filenames is similar to cat filename I have tried the same in Ubuntu 11.10 with bash. 4.0 . I have received error for the Same. May I know in which system that will work fine ? Thanks (1 Reply)
Discussion started by: pandeesh
1 Replies

9. Shell Programming and Scripting

Get Compressed byte offset from .gz file

Hi , I have a .gz file whose contents look like below. data1^filename1 data2^filename2. .. . . Is it possible to find out the byte offset of each record from the .gz file. Like in an uncompressed file. grep -nb "Filename" give the byte offset of the record in this case. ... (4 Replies)
Discussion started by: chetan.c
4 Replies

10. UNIX for Advanced & Expert Users

Grep --byte-offset not returning the offset (Grep version 2.5.1)

Hi, I am trying to get the position of a repeated string in a line using grep -b -o "pattern" In my server I am using GNU grep version 2.14 and the code is working fine. However when I am deploying the same code in a different server which is using GNU grep version 2.5.1 the code is not... (3 Replies)
Discussion started by: Subhamoy
3 Replies
XtUngrabKeyboard()														XtUngrabKeyboard()

Name
  XtUngrabKeyboard - release an active keyboard grab.

Synopsis
  void XtUngrabKeyboard(widget, time)
	   Widget widget;
	   Time time;

Inputs
  widget    Specifies the widget which has the active keyboard grab.

  time	    Specifies the time when the grab should end.  CurrentTime is acceptable.

Availability
  Release 4 and later.

Description
  XtUngrabKeyboard() releases an active keyboard grab by calling XUngrabKeyboard(), passing the display of widget and time.

  The  time  argument  may  be a timestamp or the constant CurrentTime.  If the specified time is earlier than the last-keyboard-grab time or
  later than the current server time the keyboard will not be ungrabbed.

  See XtGrabKeyboard() for more information about grabbing the keyboard.

Usage
  Most applications will never need to issue a grab.  XtAddGrab() (called by XtPopup()) can be used  to  implement  modal  popups  inside  an
  application,	and  XtSetKeyboardFocus()  can	be used to redirect keyboard focus within an application.  Neither function actually issues a
  grab, and so does not interrupt event processing by other clients.

See Also
  XtAddGrab(1), XtGrabButton(1), XtGrabKey(1), XtGrabKeyboard(1), XtGrabPointer(1), XtSetKeyboardFocus(1), XtUngrabButton(1), XtUngrabKey(1),
  XtUngrabPointer(1).

Xt - Keyboard Handling														XtUngrabKeyboard()
All times are GMT -4. The time now is 10:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy