FOLD(1) General Commands Manual FOLD(1)NAME
fold - fold long lines for finite width output device
SYNOPSIS
fold [ -width ] [ file ... ]
DESCRIPTION
Fold is a filter which will fold the contents of the specified files, or the standard input if no files are specified, breaking the lines
to have maximum width width. The default for width is 80. Width should be a multiple of 8 if tabs are present, or the tabs should be
expanded using expand(1) before coming to fold.
SEE ALSO expand(1)BUGS
If underlining is present it may be messed up by folding.
3rd Berkeley Distribution April 29, 1985 FOLD(1)
Check Out this Related Man Page
FOLD(1) BSD General Commands Manual FOLD(1)NAME
fold -- fold long lines for finite width output device
SYNOPSIS
fold [-bs] [-w width] [file ...]
DESCRIPTION
fold is a filter which folds the contents of the specified files, or the standard input if no files are specified, breaking the lines to have
a maximum of 80 characters.
The options are as follows:
-b Count width in bytes rather than column positions.
-s Fold line after the last blank character within the first width column positions (or bytes).
-w width Specifies width to use as a line width, instead of the default 80 characters.
ENVIRONMENT
LC_CTYPE
EXIT STATUS
The fold utility exits 0 on success, and >0 if an error occurs.
SEE ALSO expand(1), fmt(1)STANDARDS
The fold utility conforms to IEEE Std 1003.1-2008 (``POSIX.1'').
BUGS
If underlining is present it may be messed up by folding.
Width should be a multiple of 8 if tabs are present, or the tabs should be expanded using expand(1) before using fold.
BSD September 15, 2011 BSD
Hi Gurus, Experts,
I am facing a problem to concatenate all the files based on timeStamps.
The Problem is like this .
The are many files in a folder Which are of the below types
Ack_to_MDS_20070809141159.xml
Ack_to_MDS_20070809141157.xml
Ack_to_MDS_20070809141155.xml... (19 Replies)
Hello Unix gurus,
I am new to Unix. I am working on some dummy project which involves unix scripting.
I have a query :
There is a file Number.dat which is of form say
AAA|123|4563|animal
AAA|1234|45634|animal2
BBB|123444|456312|bird
BBB|123445|456313|bird2
Here AAA,BBB are... (29 Replies)
I do not know much about shell scripting so I am at a loss here. If someone can help me, that would be great!
I have two directories
/dir1
/dir2
I need to delete all files from /dir1 and that does not have a correspondent file in /dir2. It should NOT check file suffixes in /dir2 . Why?... (20 Replies)
1.) I am to write scripts that will be phasetest folder in the home directory.
2.) The folder should have a set-up,phase and display files
I have written a small script which i used to check for the existing users and their password.
What I need help with:
I have a set of questions in a... (19 Replies)
Hi Gurus,
I need to cut single record in the file(asdf) to multile records based on the number of bytes..(44 characters). So every record will have 44 characters. All the records should be in the same file..to each of these lines I need to add the folder(<date>) name.
I have a dir. in which... (20 Replies)
Hi All,
I have a requirement to monitor the sub-directories under /home in a way that if the the folder size increases by 30 GB in a span of like an hour then it needs to send email alerts listing what as the actual size was and what's the current size which the subject listing the sub-directory... (25 Replies)
Hi All,
I have to merge the data in all the files in a folder such that the data of the earliest file come first then the second file's data and so on. Please help.
Thanks. (22 Replies)
I have a script that will output folders that all end with "x.deb".
I want a shell script snippet that removes the "x.deb" from all those folders.
Thanks in advance. (27 Replies)
I'm looking for a script that sums the contents of a folder,
When you give a parameter to the script , i want to know the size of the directory, the number of files, number of folders,
These are commands that I have already found
du -s
find . -type f | wc -l
find . -type d | wc -ly
... (19 Replies)
Hi,
I am having two folders where i need to compare the content of files and also to know if any new files been added and redirect the difference output in respective filename logs. For e.g.:
Directory D1:
f1
f2
f3
Directory D2:
f1
f2
f3
f4
i Need to compare the directories... (25 Replies)
hi all,
i attach a link with what im trying to do automatically via script but i have some questions i need answering please, bear in mind i am really new to bash scripting, the only thing i know how to do is commands in scripts like cd rm tar rsync cp stuff like that
i have mutiple project... (48 Replies)
Hi all,
I have 3 servers, rx2600, rx2600, and rx2660.
I have another x86 server running on Suse, and create a shared folder named /public
From 1 of the rx2600 server I can mount that shared folder :
intaqa:/>mount 10.1.2.82:/public /bkup
intaqa:/>cd /bkup
But from 2 others server I... (29 Replies)
I can not understand why this little script with a loop processes only one file.
At boot in /etc/rc.local i wrote:
/usr/local/bin/./myscript &
This is myscript:
#!/bin/bash
while inotifywait -e create /HOTFOLDER/ ; do
for fullname in /HOTFOLDER/*.xlsx; do
if !... (22 Replies)