10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Greetings. I know enough Unix to be dangerous (!) and know that there is a clever way to do the following and it will save me about a day of agony (this time) and I will use it forever after! (many days of agony saved in the future)!
I need to find any image files (JPGs, PSDs etc)... (5 Replies)
Discussion started by: Clyde Lovett
2. Shell Programming and Scripting
how can i add spacein file name with sed if strings have no space around dash
( 18-19 )
output after add white space
19 - 20
(18 - 19 )
ABC - EFG
thx in advance (2 Replies)
Discussion started by: mhs
3. UNIX for Advanced & Expert Users
Hi Guys ,
we have one directory ...in that directory all files will be set on each day..
files must have header ,contents ,footer..
i wants to compare the header,contents,footer ..if its same means display an error message as 'files contents same' (7 Replies)
Discussion started by: Venkatesh1
4. Shell Programming and Scripting
I have a very big file 25GB with information present in it like
$ head ind_stats
update index statistics pfirm001.dbo.Office using 200 values
... (11 Replies)
Discussion started by: sam05121988
5. UNIX for Dummies Questions & Answers
our user creates a text file with a white space on the filename. this same file is transfered to unix via automation tool. i have a korn shell script that reads these files on a input directory and connects to oracle database to run the oracle procedures which will load the data from each of the... (2 Replies)
Discussion started by: wtolentino
6. Shell Programming and Scripting
What sed command (if sed is the right command) can remove ALL white space from my file. I have a csv, except I want to remove all white space between commas and characters.
My idea (without testing)
sed 's/ //g'
Is there a better way? (18 Replies)
Discussion started by: mcclunyboy
7. Shell Programming and Scripting
I have a string "disk0 with a trailing white space after it" but I want to get rid of this white space from right to left so that I am left with "disk0" only.
Using sed 's/ $//g' doesn't seem to work
Any ideas ?
Thanks (5 Replies)
Discussion started by: cillmor
8. UNIX for Dummies Questions & Answers
Suppose i have a variable test which stores a string as below:
now i want to use sed on the above variable and replace + with a white space, so that i get
echo $test should give me
'john drives a car'
Between... (1 Reply)
Discussion started by: sandeep_1105
9. Shell Programming and Scripting
I need to compare 2 diff type of files and find out the duplicate after comparing each types of files:
Type 1 file name is like: file1.abc
(the extension abc could any 3 characters but I can narrow it down or hardcode for 10/15 combinations).
The other file is file1.bcd01abc (the extension... (2 Replies)
Discussion started by: ricky007
10. Shell Programming and Scripting
Having a problem with a file..
the file contains the following data... (a snapshot)
It has 3 columns sepreated by a ,
the second column... (7 Replies)
Discussion started by: Zak
WRAP-AND-SORT(1) General Commands Manual WRAP-AND-SORT(1)
wrap-and-sort - wrap long lines and sort items in Debian packaging files
wrap-and-sort wraps the package lists in Debian control files. By default the lists will only split into multiple lines if the entries are
longer than 80 characters. wrap-and-sort sorts the package lists in Debian control files and all .install files. Beside that wrap-and-sort
removes trailing spaces in these files.
This script should be run in the root of a Debian package tree. It searches for control, control.in, copyright, copyright.in, install, and
*.install in the debian directory.
Show this help message and exit.
Wrap all package lists in the Debian control file even if the entries are shorter than 80 characters and could fit in one line line.
Only indent wrapped lines by one space (default is in-line with the field name).
Sort binary package paragraphs by name.
When sorting binary package paragraphs, leave the first one at the top. Unqualified debhelper(7) configuration files are applied to
the first package.
Do not remove trailing whitespaces.
-d path, --debian-directory=path
Location of the debian directory (default: ./debian).
-f file, --file=file
Wrap and sort only the specified file. You can specify this parameter multiple times. All supported files will be processed if no
files are specified.
Print all files that are touched.
wrap-and-sort and this manpage have been written by Benjamin Drung <email@example.com>.
Both are released under the ISC license.
Debian Utilities WRAP-AND-SORT(1)