Sponsored Content
Full Discussion: Problems with cut
Top Forums Shell Programming and Scripting Problems with cut Post 302189803 by scorpio on Monday 28th of April 2008 01:42:08 AM
Old 04-28-2008
Hi
Thanks for the reply

But i cant trim my whitespaces from log files . i need to take that also..
becos parameters are set like
• 10 first characters: MSISDN
• 6 next characters: Hour
• 18 next characters: ID SA Source
• 18 next characters: ID SA Destination
This characters includes white spaces also
 

3 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Cut Command error cut: Bad range

Hi Can anyone what I am doing wrong while using cut command. for f in *.log do logfilename=$f Log "Log file Name: $logfilename" logfile1=`basename $logfilename .log` flength=${#logfile1} Log "file length $flength" from_length=$(($flength - 15)) Log "from... (2 Replies)
Discussion started by: dgmm
2 Replies

2. UNIX for Beginners Questions & Answers

Cut command: can't make it cut fields

I'm a complete beginner in UNIX (and not a computer science student either), just undergoing a tutoring course. Trying to replicate the instructions on my own I directed output of the ls listing command (lists all files of my home directory ) to My_dir.tsv file (see the screenshot) to make use of... (9 Replies)
Discussion started by: scrutinizerix
9 Replies

3. Shell Programming and Scripting

Using :<<cut / cut to comment out block of bash script

I am using : << cut / cut to comment out block of code. Works fine on few lines of script, then it gives me this cryptic error when I try to comment out about 80 lines. The "warning " is at last line of script. done < results 169 echo "END read all positioning parameters" 170... (8 Replies)
Discussion started by: annacreek
8 Replies
labelit_hsfs(1M)					  System Administration Commands					  labelit_hsfs(1M)

NAME
labelit_hsfs - provide and print labels for hsfs file systems SYNOPSIS
/usr/sbin/labelit -F hsfs [generic_options] [-o specific_options] special DESCRIPTION
labelit can be used to provide labels for unmounted CD-ROM images (CD-ROMs may not be labeled, as they are read-only media). generic_options are options supported by the generic labelit command. If no specific_options are specified, labelit prints the current value of all label fields. The special name should be the physical disk section (for example, /dev/dsk/c0d0s6). OPTIONS
-o Use one or more of the following name=value pairs separated by commas (with no intervening spaces) to specify values for specific label fields. According to the ISO 9660 specification, only certain sets of characters may be used to fill in these labels. Thus, ``d-characters'' below refers to the characters `A' through `Z', the digits `0' through `9', and the `_' (underscore) character. ``a-characters'' below refers to `A' through `Z', `0' through `9', space, and the following characters: !"%&'()*+,-./:;<=>?_. absfile= Abstract file identifier, d-characters, 37 characters maximum. applid= Application identifier, d-characters, 128 characters maximum. bibfile= Bibliographic file identifier, d-characters, 37 characters maximum. copyfile= Copyright file identifier, d-characters, 128 maximum. prepid= Data preparer identifier, d-characters, 128 maximum. pubid= Publisher identifier, d-characters, 128 maximum. sysid= System identifier, a-characters, 32 maximum. volid= Volume identifier, d-characters, 32 maximum. volsetid= Volume set identifier, d-characters, 128 maximum. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
labelit(1M), volcopy(1M), attributes(5) SunOS 5.10 20 Mar 1992 labelit_hsfs(1M)
All times are GMT -4. The time now is 08:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy