10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am looking for the way to add variable number of spaces between two string. e.g input line is
a ,bb
abc ,bcb
pqr ,bfg
My output should be something like this
a ,bb
abc ,bcb
pqr ,bfg
This text... (9 Replies)
Discussion started by: diehard
9 Replies
2. UNIX for Dummies Questions & Answers
Hi,
var=QSB SBD SDN SGJ SJP SKB SKD SLP SML SNB SRE SRG STP TAJ UMP UNO VKS VND VNS WAH ZRR
I have to put *.sql after every word
What I did
echo $var>/root/file1.sql
sed -i 's/ /*.sql /g' file1.sql
cat file1.sql
Output
QSB*.sql SBD*.sql SDN*.sql SGJ*.sql SJP*.sql SKB*.sql... (9 Replies)
Discussion started by: kaushik02018
9 Replies
3. UNIX Desktop Questions & Answers
Is there any way to add lines to the pattern space of sed?
I know a bit about the N flag, but am not able to use it to do what I want which is:
read a file n lines at a time. If I find a match I quit else move to the next line. e.g. if I am looking for the following three lines
Hello
How... (2 Replies)
Discussion started by: jawsnnn
2 Replies
4. UNIX for Dummies Questions & Answers
dears
i have the data below, i want a command ( i think it should be sed) that add a space after the seconds as below :
Jun 24 22:28:18966568406148@
Jun 24 05:47:35966555747744@
Jun 24 05:47:53966560825239@
Jun 24 06:07:52966541147164@
Jun 24 15:49:55966566478883@
thanks... (5 Replies)
Discussion started by: thehero
5 Replies
5. UNIX for Dummies Questions & Answers
Hello,
I am using Red Hat linux system. I see my /work directory has used space 300GB. But there are so many sub directory under /work. I want to list each direcotry and under all subdirectory. But i want to know how much space occupied by each directory. What kind of command i can use to... (3 Replies)
Discussion started by: govindts
3 Replies
6. HP-UX
Hello, I am trying to add space to my existing system and I need a little assistance determining if I have any disk space available to allocate. Here is what I have:
DISKS:
Class I H/W Path Driver S/W State H/W Type Description... (1 Reply)
Discussion started by: dkranes
1 Replies
7. Linux
I am on Red Hat Linux 4.7.
I am getting this error message:
Preparing... ###########################################
You have insufficient diskspace in the destination directory (/usr/lib) to
install xxxxxxxxxxxxx. The installation requires at
least 1.5 GB free on this... (2 Replies)
Discussion started by: jxh461
2 Replies
8. Windows & DOS: Issues & Discussions
Hi,
I have a Windows 2K3 machine. I have installed the OS on C: partiiton which has 8 GB space and D: has 60GB space. I want to add the 60GB of D: to C; without rebuilding the host. How can I do that?
Thanks. (3 Replies)
Discussion started by: gunnervarma
3 Replies
9. AIX
Hello I have a flesystem that has run out of space. I have tried using the following command to add space:
# chfs -a size=+100 /lsrc
I get the following error:
0516-404 allocp: This system cannot fulfill the allocation request.
There are not enough free partitions or not enough... (9 Replies)
Discussion started by: dkranes
9 Replies
10. Shell Programming and Scripting
Hi,
I have a problem where some of the records I need to process have the first address field as something like "10Walpole Street" where obviously I want it to be "10 Walpole Street". I know I need to somehow separate out the integer and probably form a new string variable, but I just don't... (5 Replies)
Discussion started by: jonathanm
5 Replies