10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi,
Hope you are all doing fine.
The problem today i faced during my coding was i wanted to add a space equals to a tab character in front of all the lines which i am cat using tee command.
Main file contents
mainfile
... (4 Replies)
Discussion started by: mad man
4 Replies
2. Shell Programming and Scripting
I have a file say ADCD which is like following-->
Please consider 'z' as space
#cat ADCD
<!--Yzzz|z-->
<!--Nzzzzz-->
Now I want to store the content of this file to a variable say VAR like this-->
#VAR=`cat ADCD`
#echo $VAR
<!--Yz|z--> <!--Nz-->
Now I don' t want the variable... (2 Replies)
Discussion started by: muchyog
2 Replies
3. Shell Programming and Scripting
I have long list of input file's content that I plan to "cat" all of the content into another output file.
The total input file is around 20,000 which all named with ".txt"
Below is the command that I try:
cat *.txt > all_file.out
-bash: /usr/bin/sudo: Cannot allocate memory
Unfortunately,... (2 Replies)
Discussion started by: perl_beginner
2 Replies
4. Shell Programming and Scripting
While doing cat on a large file (3 GB file) , I am getting the no space error in the shell script hugefile.sh.
Eg: for i in `cat hugefile.txt`
do
echo "$i"
done
error: hugefile.sh: no space
Please let me know your thoughts in handling this no space issue. (2 Replies)
Discussion started by: techmoris
2 Replies
5. Shell Programming and Scripting
EDIT : This is for perl
@data2 = grep(/$data/, @list_now);
This gives me @data2 as
Printing data2 11 testzone1 running /zones/testzone1 ***-*****-****-*****-***** native shared
But I really cant access data2 by its individual elements.
$data2 is the entire list, while $data,2,3...... (1 Reply)
Discussion started by: shriyer
1 Replies
6. UNIX for Advanced & Expert Users
Hi,
We have an FTP server (vsftpd) running on Linux, that I've kinda built a "Data Management" system around. I could use some ideas as to the best way to handle/create "triggers" for file notifications.
Internal users drag 'n drop files from their Windows boxes to the server via Samba... (2 Replies)
Discussion started by: mph
2 Replies
7. UNIX for Dummies Questions & Answers
Hi all,
Today I was just fooling around with directories and faced this. I create a directory 'testdir' and create a file 'myfile' inside it.
gandalf@gondor:~$ mkdir testdir
gandalf@gondor:~$ cd testdir
gandalf@gondor:~/testdir$ touch myfile
Then I set the following permissions for the... (7 Replies)
Discussion started by: ranj@chn
7 Replies
8. Shell Programming and Scripting
trying to exclude hostnames ending in "s" from a host file:
# cat hosts
ssef
ssefd
ssefsfff
ssefsfs
# for x in `cat hosts`; do echo "${x/*s}" ;done
ef
efd
fff
#
How can I echo/or not echo only 'ssefsfs' ??
thanks (4 Replies)
Discussion started by: prkfriryce
4 Replies
9. UNIX for Dummies Questions & Answers
I am trying to create new files under my directory...but i getting the following message...
cat: write error: No space left on device
How do we handle this error.
I am not getting this error when I login as the super user (3 Replies)
Discussion started by: igandu
3 Replies
10. SuSE
Hey,
I was wondering if anybody could help me setup my PhpMyAdmin on my SUSE linux 9.1 machine. I want to use it to access MySQL server instead of the defualt MySQLCC-Console Manager.
I have not tried yet but i have done a such and it's installed in one of the folders.
I would like to point... (15 Replies)
Discussion started by: sybella1
15 Replies