Hw Can I Write Shell Script In Unix Tht Accept A Line Frm User Nd Reverse Individual Word In It?
PLZ GIVE ME ANS SOONNNNNNNNNNNNNNNNNNNNNNNNNNNNN
Read MoreHow Do I Open A File Using Unix?
I’m trying to change the path in unix to the newest version of java. The tutorial says:
“The next step is to actually open your .cshrc file using a text editor (you should be able to open and edit a file in vi). Once it is open, scroll down to the line that says “set [...]
How To Read Line By Line From Unix Shell(bash)?
I have a file named abcd.txt. I want to read that file using BASH one line at a time. I tried using CAT but it just displays whole file. How to read it?
Read MoreUrgent: Unix Command Line To Solve The Median Problem.?
My input:
10
15
20
My desired output:
Median = 15
**From the three figures in above, I know that 15 is the median. How can I use the UNIX command line to find it out automatically? My senior is advised me can use the ‘awk’ command line and the ‘if’ ‘else’ condition at the same time. Hope any UNIX expert [...]
In Unix How Can You Run A Program Without Closing Your Vi Session?
The most obvious answer is to run the program
in another window.
If you’re limited to one window, the next most
obvious answer is to suspend (but not exit) “vi”
by typing “ctl-z” (hold down the “control” key
while typing the character “z”). Then run your
command from the shell. Finally, resume the
“vi” session using the correct shell-specific
syntax. [...]
Why Text Files Have Ctrl+m Character Appended To Each Line When Copied From Windows To Unix?
I copied some text files from windows to unix. I used ssh client and using ascii mode i transfered the text files. But each file had ctrl+M characters appended at each line.
I know that dos2unix cmd will remove all those unwanted characters. But wanted to know how I can avoid ctrl+M characters appearing in the [...]
Thanks People For The Help With The Unix In Vm?
Ok now stupid question, I’m using this as a practice lab, so i need for the command line to be similar to sun microsystems unix (learning purposes) so does ubuntu have a command line that is similar or the same to unix?
Read MoreWhat’s The Best Way To Remove Leading Whitespaces From Each Line In A File In Unix?
The following “sed” command is a reasonable solution:
sed “s/^[ ]*//” output
Please note that between the [] characters are a single
space character and a single TAB character.
This pattern means to “match the beginning of a line
(that’s what the “^” does), then match any number of
spaces and tabs (the “*” says match [...]
What’s The Best Way To Remove Leading Whitespaces From Each Line In A File In Unix?
The following “sed” command is a reasonable solution:
sed “s/^[ ]*//” output
Please note that between the [] characters are a single
space character and a single TAB character.
This pattern means to “match the beginning of a line
(that’s what the “^” does), then match any number of
spaces and tabs (the “*” says match [...]