9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I'm writing a simple USB driver to drive a stepper motor based on USB Skeleton 2.2 Driver, kernel 3.8. The basic version is running properly. As a advancement, I introduced KTHREAD to call the DEVICE_WRITE (skel_write) (), so that the driver will be available for other tasks & requests.
Calling... (0 Replies)
Discussion started by: miteshgaware
0 Replies
2. Shell Programming and Scripting
Dear all,
i am having text file like below
surya
rama
ranga
laxman
rajesh
reddy
i want add string (OK) before a text from line 3 to 5
the result will be
surya
rama
OK ranga
OK laxman
OK rajesh
reddy (1 Reply)
Discussion started by: suryanarayana
1 Replies
3. Red Hat
Hi all,
Hereby wish to have your advise for below:
Main concept is
I intend to get current directory of my script file.
This script file will be copied to /etc/init.d.
A string in this copy will be replaced with current directory value.
Below is original script file:
... (6 Replies)
Discussion started by: cielle
6 Replies
4. UNIX for Dummies Questions & Answers
I am a newbie to Unix and Linux,
sed "32,45s///g" file :
sed "s/\(\)-\(\)/\1\2/g" file
How do we describe these commands in English ? Please help. (2 Replies)
Discussion started by: krthknaidu
2 Replies
5. Shell Programming and Scripting
I want to instert Category:XXXXX into the 2. line
something like this should work, but I have somewhere the wrong sytanx. something with the linebreak goes wrong:
sed "2i\\${n}Category:$cat\n"
Sample:
Titel Blahh Blahh abllk sdhsd sjdhf
Blahh Blah Blahh
Blahh
Should look like... (2 Replies)
Discussion started by: lowmaster
2 Replies
6. Shell Programming and Scripting
Hi
I have a 'sed' editor command trying to update a line in the file:
NEW_PX=7777
echo 'PX_LIST="2259 221 270 263 2874" ' | sed "s/PX_LIST="/&${NEW_PX} /"
The above command should add value of NEW_PX as the first entry inside the quotes, so the output should look like this:
... (2 Replies)
Discussion started by: aoussenko
2 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have to edit a lot of partitions soon and wanted to do so with EMACS rather than VI.
The "disklabel -e -r disknumber" command picks up VI as it's defined, but how do I set "-e" so it uses EMACS instead please?
Thanks...! (2 Replies)
Discussion started by: Bagel08
2 Replies
8. UNIX and Linux Applications
I'm currently building a system to perfom a check on some operations on a unix system, i'm very new to unix and i need help.
i know 'uname' displays the name of the OS been used, but how do u send the content of uname into a directory or file ? (1 Reply)
Discussion started by: dasadino
1 Replies
9. AIX
For some reason something has changing in my AIX environment where when I type:
ACLEDIT filename
...I get:
3002-104 acledit: EDITOR environment variable must be full pathname
I know I need to reset the EDITOR variables path to /usr/bin/vi but I can't remember the syntax anyone? (2 Replies)
Discussion started by: heprox
2 Replies