Sponsored Content
Full Discussion: Typical problem in UNIX
Top Forums Shell Programming and Scripting Typical problem in UNIX Post 302917709 by rbatte1 on Thursday 18th of September 2014 09:06:02 AM
Old 09-18-2014
Are we after replacing the first, second and last comma with a pipe?

You need to explain more about the context so suggestions will be suitable and leave you able to support it in future.



Robin
 

8 More Discussions You Might Find Interesting

1. Solaris

Typical way to disable a dameon

I want to disable some services starting automatically while system booting, for instance if i want to disable vold what i have to do ? i think some services related to a script init level shell directory,and i think as well that since solaris 10 they added a command to enable and disable services... (2 Replies)
Discussion started by: XP_2600
2 Replies

2. Shell Programming and Scripting

typical mail script

hi i have a requirement to write a mail script which needs to be automated.There are 7 CSV files generated for 7 clients in a single day.Each file will contain one header and the name of the file follows a nomenclature like ABC_20080402_ClientID.csv.ClientID is lets say... (3 Replies)
Discussion started by: dr46014
3 Replies

3. UNIX for Dummies Questions & Answers

Meaning and typical use of -3 signal in kill

Hi, What is the use of the signal -3 in kill command in unix? I read the meaning and typical use of this signal in one of the Oreilly books as below. Quit -- stop running (and dump core). Sent when you type CTRL-\. what does the CTRL-\ command do? Is it the combination of CTRL and... (6 Replies)
Discussion started by: venkatesht
6 Replies

4. Shell Programming and Scripting

A typical array script

Hi All, I need to store the output of "find ." to an array one by one. Output of find . in my case will look like :- . ./one ./one/a ./one/b ./one/c ./two So my first array element should be "/one" and second one "/one/a" (need to remove "." from the output as well). Then I need to... (11 Replies)
Discussion started by: Renjesh
11 Replies

5. Shell Programming and Scripting

Guidance needed for a typical shell script with sql query

Hi , I have a txt file with contents like: 1234 2345 3456 7891 I need to write a script which takes input file as txt file..run a sql query for that number and place the output of query in another file.. select * from bus_event where acct_nbr='1234'( from input txt file) the query... (20 Replies)
Discussion started by: Rajesh Putnala
20 Replies

6. Emergency UNIX and Linux Support

Calculating total space in GB for all files with typical pattern

Hi Experts, In a particular dir, I have many files *AJAY*. How can I get total size of all such files. I tried du -hs *AJAY* but it gave me individual size of all files. All I require is summation of all. Thanks, Ajay (4 Replies)
Discussion started by: ajaypatil_am
4 Replies

7. UNIX for Dummies Questions & Answers

Typical steps to be followed while applying an application patch upgrade on linux

what are the typical steps used by system adminstrators while applying an application patch upgrade (1 Reply)
Discussion started by: ramky79
1 Replies

8. UNIX for Dummies Questions & Answers

How to compile a software for a non-typical platform?

I am quite new to compiling source codes in linux and have been running into a lot of problems in trying to do so since the platform configuration is different from most. For starters, I know that you need to enter the following commands in order to install any software manually in linux:... (2 Replies)
Discussion started by: Ice_Drake1
2 Replies
dfc(1)								   USER COMMANDS							    dfc(1)

NAME
dfc - display file system space usage using graph and colors SYNOPSIS
dfc [OPTION(S)] [-c WHEN] [-u UNIT] [-t FILESYSTEM] DESCRIPTION
dfc(1) is a tool similar to df(1) except that it is able to show a graph along with the data and is able to use color (color mode is "color-auto" by default but you can change this with "-c" option). The available size correspond to the space available to a user point of view and not from root's perspective (ie: use f_bavail instead of f_bfree). In the same idea, used space is computed simply by substracting the available space from the total size. Without any argument, size is displayed in human readable format. Be aware that when using human-readable format, there might be some rounding when computing the size. If you want maximum precision, use the "-u" option and choose the unit. dfc(1) also has a built in feature that makes the output auto adjust based on terminal width. If you want to override this behavior, use the "-f" option. OPTIONS
-a Show information about all file systems found in the mtab file. -b Do not show the graph bar. -c [WHEN] Choose color mode where WHEN is one of the following sub-option: "always": Color will always be used, no matter what stdout is. "auto": This is default when "-c" is not activated. Color is used only if "stdout" is a terminal. For instance, color will be disabled with this option if you pipe the output of dfc(1) into another command. "never": Color will never be used. -f Override auto-adjust behavior by forcing information to be displayed. You probably do not want to activate this option but choice is yours. This option may be useful if you pipe the output of dfc(1) though. -h Show a short help text. -i Show information about inodes. -m Use SI units (metric) (ie: size is computed using powers of 10 instead of powers of 2). -n Do not print header. -o Show mount options. -s Sum the total usage. -t [FILESYSTEM] Allows you to perform filtering on file system type. FILESYSTEM could take any known file system value. For instance, "ext4", "ufs", "tmpfs", "reiserfs", etc. Multiple selection on file system is also possible. In this case, FILESYSTEM needs to be comma separated (without spaces). For instance, if you want to filter "ext4" and "tmpfs", you would use the following: dfc -t ext4,tmpfs You can also use negative matching to filter the output. To do so, you just need to prepend a "-" to FILESYSTEM. In the following example, dfc(1) will display all file system type except those mentionned: dfc -t -rootfs,tmpfs -T Show filesystem type. -u [UNIT] Show size using unit specified. UNIT can take one of the following value: "h": Human readable (default when not using "-u" option). "b": Show bytes. "k": Show size using Kio. "m": Show size using Mio. "g": Show size using Gio. "t": Show size using Tio. "p": Show size using Pio. "e": Show size using Eio. "z": Show size using Zio. "y": Show size using Yio. NOTE: When using "-u" option along with "-m" option, those suboptions are replaced by their SI counterparts. -v Print dfc(1) version and exit. -w Use a wider bar. -W Wide path name (avoid truncation of file name). May require a larger display. BUGS
If you find one, please contact the author and explain what you encounter. AUTHORS
Robin Hahling (robin.hahling (at) gw-computing.net) COPYRIGHT
Copyright (C) 2012 Robin Hahling LICENSE
3 Clauses BSD SEE ALSO
df(1), du(1) version 2.5.0 April 3, 2012 dfc(1)
All times are GMT -4. The time now is 08:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy