09-12-2018
Given the positions of the numbers in your ls output, the first number would be the link count number, and the second one the directory size (in blocks). What type of filesystem is mounted on that directory? A network one, a USB one, or some other that your OS doesn't fully understand, but it happy to read?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am getting a variable as x=2006/01/18
now I have to extract each field from it.
Like x1=2006, x2=01 and x3=18.
Any idea how?
Thanks a lot for help.
Thanks
CSaha (6 Replies)
Discussion started by: csaha
6 Replies
2. Shell Programming and Scripting
Hi guys,
I couldn't find solution to this problem. If anyone knows please help me out.
your guidance is highly appretiated.
I have two files -
FILE1 has the following 7 columns ( - has been added to make columns visible enough else columns are separated by single space)
155.34 - leg - 1... (8 Replies)
Discussion started by: smriti_shridhar
8 Replies
3. Shell Programming and Scripting
Hi,
I am writing a code where the file is a pipe delimited and I would need to extract the 2nd part of field2 if it is "ATTN", "C/O" or "%" and check to see if field9 is populated or not. If field9 is already populated then leave it as is but if field9 is not populated then take the 2nd part of... (3 Replies)
Discussion started by: msalam65
3 Replies
4. Shell Programming and Scripting
Hi All,
Looking for a quick AWK script to output some differences between two files.
FILE1
device1 1.1.1.1 PINGS
device1 2.2.2.2 PINGS
FILE2
2862 SITE1 device1-prod 1.1.1.1 icmp - 0 ... (4 Replies)
Discussion started by: stacky69
4 Replies
5. Shell Programming and Scripting
Diff output as follows:
< AAA BBB CCC DDD EEE 123
> PPP QQQ RRR SSS TTT 111
> VVV WWW XXX YYY ZZZ 333
> AAA BBB CCC DDD EEE 124
How can i use awk to compare the last field to determine if the counter has increased, and need to ensure that the first 4 fields must have the same... (15 Replies)
Discussion started by: ux4me
15 Replies
6. Shell Programming and Scripting
Attached is a file called diff.txt
It is the output from this command:
diff -y --suppress-common-lines --width=5000 1.txt 2.txt > diff.txt
I have also attached 1.txt and 2.txt for your convenience.
Both 1.txt and 2.txt contain one very long CSV string.
File 1.txt is a CSV dump of... (0 Replies)
Discussion started by: gvolpini
0 Replies
7. Shell Programming and Scripting
Hi All,
I am using the following command in Linux:
sar -r 30 3
Linux 2.6.18-194.3.1.7.3.el5xen 02/07/2013
02:55:47 PM kbmemfree kbmemused %memused kbbuffers kbcached kbswpfree kbswpused %swpused kbswpcad
02:56:17 PM 128646024 22348920 14.80 230232 15575860 75497464 ... (4 Replies)
Discussion started by: a1_win
4 Replies
8. Red Hat
In our environment we used to lot of events for ntp issues. I am unable to find the what needs to consider here. :(
ntpq -p fields.
remote refid st t when poll reach delay offset jitter
---------- Post updated at 05:13 AM ---------- Previous update was at 04:47 AM... (1 Reply)
Discussion started by: Naveen.6025
1 Replies
9. Shell Programming and Scripting
help me (2 Replies)
Discussion started by: sonu pandey
2 Replies
10. Shell Programming and Scripting
I need to print field and the next one if field matches 'patternA' and also print 'patternB' fields.
echo "some output" | awk '{for(i=1;i<=NF;i++){if($i ~ /patternA/){print $i, $(i+1)}elif($i ~ /patternB/){print $i}}}'
This code returnes me 'syntax error'. Pls advise how to do properly. (2 Replies)
Discussion started by: urello
2 Replies
LEARN ABOUT LINUX
fribidi
FRIBIDI(1) User Commands FRIBIDI(1)
NAME
fribidi - a command line interface for the fribidi library, converts a logical string to visual
SYNOPSIS
fribidi [OPTION]... [FILE]...
DESCRIPTION
A command line interface for the fribidi library, Converts a logical string to visual.
-h, --help
Display this information and exit
-V, --version
Display version information and exit
-v, --verbose
Verbose mode, same as --basedir --ltov --vtol --levels --changes
-d, --debug
Output debug information
-t, --test
Test fribidi, same as --clean --nobreak --showinput --reordernsm
-c, --charset CS
Specify character set, default is UTF-8
-C, --charsetdesc CS
Show descriptions for character set CS and exit
--caprtl
Old style: set character set to CapRTL
--showinput
Output the input string too
--nopad
Do not right justify RTL lines
--nobreak
Do not break long lines
-w, --width W
Screen width for padding, default is 80, but if environment variable COLUMNS is defined, its value will be used, --width over-
rides both of them.
-B, --bol BOL
Output string BOL before the visual string
-E, --eol EOL
Output string EOL after the visual string
--rtl Force base direction to RTL
--ltr Force base direction to LTR
--wrtl Set base direction to RTL if no strong character found
--wltr Set base direction to LTR if no strong character found (default)
--nomirror
Turn mirroring off, to do it later
--reordernsm
Reorder NSM sequences to follow their base character
--clean
Remove explicit format codes in visual string output, currently does not affect other outputs
--basedir
Output Base Direction
--ltov Output Logical to Visual position map
--vtol Output Visual to Logical position map
--levels
Output Embedding Levels
--changes
Output information about changes between logical and visual string (start, length)
--novisual
Do not output the visual string, to be used with --basedir, --ltov, --vtol, --levels, --changes
All string indexes are zero based
Output:
For each line of input, output something like this:
[input-str` => '][BOL][[padding space]visual-str][EOL] [
base-dir][
ltov-map][
vtol-map][
levels][
changes]
Available character sets:
* UTF-8
: UTF-8 (Unicode)
* CapRTL
: CapRTL (Test) X
* ISO8859-6 : ISO 8859-6 (Arabic) * ISO8859-8 : ISO 8859-8 (Hebrew) * CP1255 : CP1255 (Hebrew/Yiddish) * CP1256 : CP1256 (MS-
Arabic) * ISIRI-3342: ISIRI 3342 (Persian) X: Character set has descriptions, use --charsetdesc to see
REPORTING BUGS
Report bugs online at <http://fribidi.sourceforge.net/bugs.php>.
interface version 2 Unicode version 3.2.0
COPYRIGHT
Copyright (C) 2002 FriBidi Project (http://fribidi.sf.net/). fribidi comes with NO WARRANTY, to the extent permitted by law. You may
redistribute copies of fribidi under the terms of the GNU Lesser General Public License. For more information about these matters, see the
files named COPYING.
fribidi 0.10.5 April 2003 FRIBIDI(1)