Sponsored Content
Full Discussion: Replacement to cut command
Top Forums UNIX for Advanced & Expert Users Replacement to cut command Post 303025142 by jg355187 on Thursday 25th of October 2018 08:05:20 AM
Old 10-25-2018
$13 is based on empty field if Im not wrong ?

But empty spaces may increase or decrease and more dynamic in nature. This is due to the field "size of the file" = "594663". If size of the file increases the by another 6 digits extra , something like "111222594663" , situation may come I have decrease from $13 to $10/11/12, which is not practically possible when jobs are scheduled and vice versa if the size decreases $13 to $14/15/16. Kindly advise , what would be the best approach.

Code:
-rw-r-----+  1 sparksshuser sparksshuser     594663 2018-10-25 02:07 adl://xyz123.azuredatalakestore.net/devhdfs/DataWareHouse/sf_inbound/appointment/part-00000-aa60bb3c-6780-44fa-b93d-4232df81faa1-c000.snappy.parquet

 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to use a command in sed s/match/replacement

hi, how can i make use of a command in the replacement segment.. cat a | sed '/^*]\{3\}$/{ s/\(.*\)/REPLACEMENT/g }' suppose if I want to use a awk command in the replacement section , how to achieve that ? Thanks (1 Reply)
Discussion started by: AbhishekG
1 Replies

2. UNIX for Dummies Questions & Answers

using cut command

I am new to unix ... I have a file with name unixile.123761 I need to cut the extension from this file name? can u help me for this i have tried like follows copied the file lo one variable v and then `echo $v | grep cut -d = -f 1` (8 Replies)
Discussion started by: shika123
8 Replies

3. Shell Programming and Scripting

Need help for Cut Command

Hi All, Greetings.. I am having a Line of 1600 characters in which each specifi fields have some values. For example 1-5 Firstname 6-8 Age and so on.. I am using `expr substr $line 100,7` to get values from the line and store in seperate variables.. The file contains 70000 lines. It is taking 3... (8 Replies)
Discussion started by: dinesh1985
8 Replies

4. Shell Programming and Scripting

Help with command cut

Hi, I have a script that use some files and generate one file using these files. The main command that i am using in the script is the command cut, but it is very low, and i would like another command to generate my file faster... My need is be able to use another command similar than "cut"... (2 Replies)
Discussion started by: the_pas
2 Replies

5. UNIX for Dummies Questions & Answers

Need help with Cut command

Hi I am using 'find' on a particular directory which has some subdirectories too,so when I search for .txt files from the parent directory, it gives all files that matches the pattern in the parent aswellas in the sub directories . eg: Iam at /a/b/c where c has many other directories in it ... (7 Replies)
Discussion started by: jagadish_gaddam
7 Replies

6. Shell Programming and Scripting

Help with cut command

Hello, I have a file packed with records similar to: -rw-rw---- 1 pcpdsrv8 suppw 98737 21 Jan 09:08 Workflow_Calc_Distance.log.20101223060615.bin Could someone tell me how I can cut out all the info up until the Date field please so it looks like: 21 Jan 09:08... (3 Replies)
Discussion started by: Grueben
3 Replies

7. 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

8. UNIX for Dummies Questions & Answers

Cut pid from ps using cut command

hay i am trying to get JUST the PID from the ps command. my command line is: ps -ef | grep "mintty" | cut -d' ' -f2 but i get an empty line. i assume that the delimiter is not just one space character, but can't figure out what should i do in order to do that. i know i can use awk or cut... (8 Replies)
Discussion started by: ran ber
8 Replies

9. 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
nfs4_max_transfer_size(5)					File Formats Manual					 nfs4_max_transfer_size(5)

NAME
nfs4_max_transfer_size - control the size of the data portion of a NFS version 4 read, write, readdir, or readdirplus request VALUES
Failsafe Default Allowed values Recommended values A warning will be issued at runtime if the tunable is set to a value greater than 1048576 since this is outside the tested limits. This is not a serious warning but just an information message for the administrator. DESCRIPTION
controls the maximum size of the data portion of a NFS version 4 read, write, readdir, or readdirplus request. This parameter controls both the maximum size of a request that the server returns as well as the maximum size of a request that the client generates. Who Is Expected to Change This Tunable? Distributed file system administrators should examine this value if they want to decrease or increase the default size of a NFS packet. Restrictions on Changing The tunable is dynamic; however, the transfer size for a file system is set when the file system is mounted. To affect a particular file system, unmount and mount the file system after changing this parameter. The actual NFS version 4 transfer size is controlled by these tunable parameters: and The actual transfer size will depend on the tunable with the smallest value. For NFS version 4 traffic increase and to the same value to increase the transfer size. To decrease the transfer size, just changing is sufficient. When Should the Value of This Tunable Be Raised? An increase in the transfer size will result in fewer requests to the NFS server at the expense of system resources on both the NFS client and NFS server. What Are the Side Effects of Raising the Value? An increase in system resources on both the NFS client and NFS server. When Should the Value of This Tunable Be Lowered? In the event of NFS communication failures, the value should be changed back to the default value. What Are the Side Effects of Lowering the Value? An increase in NFS version 4 network traffic caused by an increase in the number of I/O requests. WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of HP-UX. Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation, some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun- able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was factory installed on your system, see at AUTHOR
was developed by Sun Microsystems, Inc. SEE ALSO
kctune(1M), sam(1M), gettune(2), settune(2), nfs4_bsize(5), nfs4_max_transfer_size_cots(5), values(5). Tunable Kernel Parameters nfs4_max_transfer_size(5)
All times are GMT -4. The time now is 08:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy