9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi guys
how can i add spacein file name with sed if strings have no space around dash
input
19-20
( 18-19 )
ABC-EFG
output after add white space
19 - 20
(18 - 19 )
ABC - EFG
thx in advance (2 Replies)
Discussion started by: mhs
2 Replies
2. What is on Your Mind?
HI,
i want to be a white hacker(those who use their skills in ethical hacking)
for that what all languages do i need to know
i am working in an IT company and its paying me well, i just want to learn it because it has always attracted me..i know c,c++,shell,little bit html what else do... (13 Replies)
Discussion started by: shekhar_4_u
13 Replies
3. 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
2 Replies
4. Shell Programming and Scripting
Hi,
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
18 Replies
5. Shell Programming and Scripting
Hi,
I am having problem in deleting the leading spaces:-
cat x.csv
baseball,NULL,8798765,Most played
baseball,NULL,8928192,Most played
baseball,NULL,5678945,Most played
cricket,NOTNULL,125782,Usually played
cricket,NOTNULL,678921,Usually played
$ nawk 'BEGIN{FS=","}!a... (2 Replies)
Discussion started by: scripter12
2 Replies
6. UNIX for Dummies Questions & Answers
Dear Members,
Suppose i have a variable test which stores a string as below:
test='John drives+++++++++a+++++car'
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
1 Replies
7. Shell Programming and Scripting
Hi All;
Having a problem with a file..
the file contains the following data... (a snapshot)
1331F9E9DB7C2BB80EAEDE3A8F043B94,AL7 1DZ,M,50
186FDF93E1303DBA217279EC3671EA91,NG5 1JU,M,24
3783FFAF602015056A8CD21104B1AAAF,CH42 4NQ,M,17
It has 3 columns sepreated by a ,
the second column... (7 Replies)
Discussion started by: Zak
7 Replies
8. Shell Programming and Scripting
Hi,
Can anybody suggest me how to combine two strings with two or more white spaces and assign it to a variable?
E.g.
first=HAI
second=HELLO
third="$first $second" # appending strings with more than one white spaces
echo $third
this would print
HAI HELLO
Output appears... (2 Replies)
Discussion started by: harish_oty
2 Replies
9. UNIX for Dummies Questions & Answers
How would I delete white spaces in a specified file?
Also, I'd like to know what command I would use to take something off a regular expression, and put it onto another.
ie.
.
.
.
expression1 <take_off>
.
.
.
expression2 (put here)
.
.
.
Any help would be great, thanks! (10 Replies)
Discussion started by: cary530
10 Replies
rmfset(8) System Manager's Manual rmfset(8)
NAME
rmfset - Removes a fileset or a clone fileset from an AdvFS file domain
SYNOPSIS
/sbin/rmfset [-f] domain fileset
OPTIONS
Turns off the message prompt.
OPERANDS
Specifies the name of an existing AdvFS file domain. Specifies the name of the fileset to be removed from the specified file domain.
DESCRIPTION
The rmfset command removes a fileset (and all of its files) from an existing AdvFS file domain. Unless you use the -f option, you are
prompted with the following request before a fileset is removed: rmfset: remove fileset <filesetname>? [y/n]
If you answer n, the fileset is not removed. If you answer y, the fileset is removed.
The -f option is useful for scripts or when you do not want to be queried about each fileset. If you choose the -f option, no prompts are
displayed. The rmfset command operates as if you responded yes to the prompt.
Unmount a fileset before removing it with the rmfset command.
RESTRICTIONS
A fileset or clone fileset cannot be removed with this command if it is mounted.
A fileset that has a clone fileset cannot be removed with this command until the clone fileset has been removed.
You must be the root user to use this command. An rmfset operation can hang if you attempt to remove a fileset and the target AdvFS domain
is experiencing heavy I/O. To work around the restriction, avoid using the utility on busy AdvFS domains.
EXAMPLES
The following example deletes the test_fset fileset from the test_domain file domain. In this example, the test_fset fileset is mounted on
the /mnt3 directory: # umount /mnt3 # rmfset test_domain test_fset rmfset: remove fileset test_fset? [y/n] y #
SEE ALSO
Commands: mkfset(8), showfdmn(8), showfsets(8), mount(8)
Functions: advfs_rmfset(3)
File Formats: advfs(4)
rmfset(8)