General :: Insert Heading In Awk?

Jun 8, 2011

I need to put headings on top of the output of this awk script :

#!/bin/sh

[Code].....

View 2 Replies


ADVERTISEMENT

Ubuntu :: Lost Drop - Down Heading?

Mar 13, 2011

I've noticed that since that time I have lost the subject heading at the top of the page and also the arrows that allow me to visit a previous screen or a subsequent screen. Any suggestions for how I can retrieve the menu box at the top of the screen and the directional arrows?

View 2 Replies View Related

Debian :: How To See Command Output Heading

Feb 25, 2011

How to see the command output headings
For example:
on executing the 'w' command u will get the following output:

$ w
USER TTY FROM LOGIN IDLE JCPU PCPU WHAT<<<column headings
navdeep tty1 - 23:55 31:10 5:00 0.00s /bin/bash /usr/
navdeep pts/0 :0.0 00:00 0.00s 0.44s 0.00s w

Here we know what each column stand for but this not the case with other commands. How to do this (column heading for commands).

View 1 Replies View Related

Ubuntu :: Getting A Message In Russian Under The Heading Of Subscription Request?

Mar 6, 2010

Why am I getting a message in Russian under the heading of "subscription request" where the messages about wireless internet pop up?

View 4 Replies View Related

General :: Insert Column With Awk / Sed Between Two?

Jan 18, 2011

I have a two column file and I need to create a new column in between the first and second but the new column adds a value to the first. E.g.code...

I thought I had figured out how to do it with the following but it just hangs:

awk -F '{print $0,$0+25,$1}' file_in > file_out

Also tried the following to no avail:

awk -F,-v OFS,'{print $0,$0+25,$1}' file_in > file_out

I can add the new column with the added value to the last column easy ( awk '{print $0,$0+25}' file_in > file_out).

View 8 Replies View Related

General :: Vim Stuck In Insert Mode

Apr 11, 2010

I've been using Vim for several months now via my web host (they allow putty access). All of a sudden, the escape key has become unresponsive. I cannot exist insert or any other mode by simply hitting escape. I have to hit F1 which brings up the help in vim and kicks me into command mode.

I'm most certain that my escape key on my keyboard is functioning fine since all of my windows shortcuts that use the escape key operate normally.

I know this is a ridiculous question and I'm certain there's a lot more to look into regarding a solution. What I really need is a solid lead as to where to start looking.

I'm using vim via putty I'm logging in using jailshell I'm not root

View 2 Replies View Related

General :: Insert A Folder Into A ZIP File?

Aug 11, 2011

I'm a newbie on Linux and had to do something like this with the zip command:

My folder structure inside a zip file abc.zip is code...

It would move into abc.zip as folder3/textfile.txt (the hierarchy preserved)
Also used a -j switch (help said it junked the path info and it did but) - it would move only into abc.zip and sit at the same level as folder1 and folder2 instead of replacing the textfile.txt within abc.zip/folder1

My question is - I want to replace the abc.zip/folder1/textfile.txt with the one inside seconddir/folder3/textfile.txt.

How do I achieve this via the command line interface?

View 3 Replies View Related

General :: How To Get Insert Mode In GEdit

Mar 3, 2011

How do I get to insert mode in gedit? Why is there no documentation to do this? My Gedit comes up in overlay mode.

View 5 Replies View Related

General :: Insert Value Of Vmstat To Database?

Aug 17, 2010

I m trying to store the output of vmstat 1 10 into a database.I have done the necessary homework to connect bash to interact with the database.Program logic.1)storing the output of vmstat 1 10 to a file named abc.txt2)I m applying a filter to vmstat to get desired output containing cpu(user),cpu(system),cpu(idle) values.3)

Code:
# cat abc.txt | grep -vE '(procs|free)'| awk '{print $13 " "$14 " " $15}'
0 1 97

[code]....

View 3 Replies View Related

General :: Insert Text To A Specified Line?

Aug 23, 2009

Code:

sed -n '123p' file

that will print line 123 but how might I insert text to a specified line?

View 3 Replies View Related

General :: Get Vim Insert Mode In Emacs?

Apr 20, 2010

Is it possible to get vim insert mode in Emacs?

View 2 Replies View Related

General :: Insert (Same Template Strings) Column With VI

Jun 24, 2011

I have this piece of code with some template strings.

Code:
Big_L: $Big_L
$Big_R
$Lambda_tf
$Epsilon_1
$mu
$n_0
$ms
$Delta_R
$Epsilon_2
$Lambda_d
$Epsilon_3
$Small_N
$Small_Q

How can I insert exactly the same template strings in front of each string, but just without the '$' sign (see the first line for an example)?

View 7 Replies View Related

General :: Unable To Insert The Driver Module

Jun 18, 2010

I am viswanath. i want to know how to insert a driver module in Linux fedora 2.6.while using insmod <driver name> it showing an error. shall i install any plugins.

View 2 Replies View Related

General :: Insert Texts In A File By Using Shell?

Jan 26, 2011

I'm using fedora 14...i would like to insert few texts to a file in shell prompt(may be useful in scripting for in the future)...for eg,

[root@ruby ~]# cat > hello
1
2
2

[code]....

so in the above file i need to add the line "new line added" near the number 4 in the above file ....how can be this done ...?

View 8 Replies View Related

General :: Insert Line Into A File With A Command?

Jan 4, 2010

I would like to insert a line into the /etc/sysconfig/iptables with a command like sed or with any script. How can I insert this line:

-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT

but under the line "-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT"

View 2 Replies View Related

General :: Insert Radio Button On Panel?

Jul 30, 2010

i am using fedora12(gnome) and i would like to know if i could install radio button on my top panel.

View 1 Replies View Related

General :: Insert Tab At Beginning Of Each Line In File?

Aug 5, 2010

I am trying to create a shell script where a user can specify a file with a list of logins and the script will create a batch file with specific information in specific columns.

Example:

loginfile.txt has

User1
User2
User3

I need the output to be as below:

1 User1 Date 12/31/9999
2 User2 Date 12/31/9999
3 User3 Date 12/31/9999

Where the columns are separated as below.

1[tab][tab]User1[tab]date +%D[tab]12/31/9999
2[tab][tab]User2[tab]date +%D[tab]12/31/9999
3[tab][tab]User3[tab]date +%D[tab]12/31/9999

I can use the nl utility to get the numbers easily enough, but I need two tab separations between the number and the user list. Is there a sed command that will insert at the beginning of each line? If so I can just run nl after I get some tabs up in the front.

View 2 Replies View Related

General :: Insert Character Code Into Text Editor?

Aug 11, 2010

I need a lightweight GUI text editor on my Ubuntu Lucid system which lets me specify a Unicode code point (e.g. U+1234), and inserts that character to a UTF-8 text document. I know that gedit can't do it (not even with the Character Map plugin).

I'm not interested in solutions involving any kind of emacs or vi. I'm also not interested in text editors running in the terminal (such as joe, which has this functionality). I need the absolute simplest, smallest and fastest plain text editor for Linux which lets me type a few letters, insert a few characters by their code, type some more letters, and then save the .txt file as UTF-8-encoded.

View 1 Replies View Related

General :: Smartcard Insert / Removal Event Notification

Jun 24, 2010

I'm working on an app that will authenticate user with a smartcard when the user inserts it in the card reader (this is on Red Hat 5.5). How do I detect a card has been inserted? Is there a daemon service I need to listen to and associated api to get notified etc? .

View 3 Replies View Related

General :: Insert Text In The Last Line Of A File With Sed Command?

Oct 4, 2010

I want to insert the text "DB dept" in the last line of passwd file which looks like this right now

Quote:

newuser:x:717:717::/home/sacharje:/bin/bash

And I want it to be like this:

Quote:

newuser:x:717:717: DB dept:/home/sacharje:/bin/bash

I tried to do that with sed but failed, I'd like to know the proper syntex with sed to achieve this.

View 7 Replies View Related

General :: Find URL Of Screenshot To Insert Into New Thread Or Post?

Mar 15, 2010

I know what the URL of a webpage is and how to find it, but can't figure out how to do it with the screenshot accessory in Ubuntu 9.10. It is easy to use the tool to capture the image of a desktop, but won't let me do anything with the URL to insert it into anywhere!

View 5 Replies View Related

General :: Insert A String For Different Files....complete A Sentence Only?

Mar 3, 2010

I have the following bash script:

#Add extension into the name
for FILE in $(ls $SOURCE*$1*);
do echo $FILE;

[code]...

View 12 Replies View Related

General :: Insert Text To A File Using Command Line?

Jan 28, 2010

I need to be able to edit a file from the commend line as I intend to script this operation, the file is called menu.lst The original is as below

Code:

titleUbuntu 8.04.3 LTS, kernel 2.6.24-24-generic
root(hd0,0)
kernel/boot/vmlinuz-2.6.24-24-generic root=UUID=b09feb23-5524-4ec4-862f-94700b968f64 ro quiet splash

[code]....

View 4 Replies View Related

General :: Unable To Use Shift + Insert To Paste And Copy Using Text Selection?

Mar 9, 2010

know what can be done to enable the "select text to copy" and "shift+insert to paste" features in linux.

View 2 Replies View Related

General :: Insert Intel I395 Wifi Modules In Debian 6.0 Live DVD?

Feb 19, 2011

i tried the new debian 6.0 live dvd and was so happy or the first time i had debian actually booting and then i was like o.O and what's up with my wireless and i then tried to install and the installer finally told me i need the iwlwifi395 drivers for my wireless so i copied that and now i have the drivers and i don't know how to build them to be like on the live image like straight in there since i boot have my wireless.

View 1 Replies View Related

General :: Recognized Pragma - Insert At The Beginning Of A Text Document To Designate It To Be UTF-8 Encoded

Jun 4, 2011

Is there some kind of universally recognized pragma that one can insert at the beginning of a text document to designate it to be UTF-8 encoded (or any other encoding)? I've seen certain editors insert encoding comments, and one or two compilers that have an encoding pragma. But I was wondering if anyone has tried to establish some kind of universal tag format for text documents.

View 1 Replies View Related

General :: Error: Cannot Connect To The Database Because: INSERT Command Denied To User 'webuser'@'localhost' For Table 'visitor'

May 6, 2011

Error: Cannot connect to the database because: INSERT command denied to user 'webuser'@'localhost' for table 'visitor'

[Code]...

View 3 Replies View Related

General :: Insert A Line Into A Text File Using "sed" Command?

Sep 18, 2010

I've been reading tutorials of Linux sed command, but haven't got anything yet. the problem is : I want to insert a line into my DNS database file which has a pattern like below:

<Domain name> 3tabs here <IN> <A> <ip address>

the question is : how to add a line into a file like this using linux sed command? I have problem inserting tabs and the spaces!

View 7 Replies View Related

General :: Booted Up System And It Stated Please Insert System Disk Press Any Key?

Oct 28, 2010

Booted up system and it stated please insert system disk press any key.So it sounds like my startup got corrupted? I running centos 4.5 on it (old yes) Is there a repair I can perform by a disk? Would it matter if I chose i386 or x86? I cant remeber which version was installed on it.

View 8 Replies View Related

General :: Script To Insert Number Of Lines In A File To The Start Of The File?

Sep 17, 2009

I'm looking for a way to insert the number of lines in a file to the start of the aformentioned file. This should be simple but as I am not used to scripts in Linux, I am finding it tough going. I can find the number of lines in a file easily enough via

filesize=$(awk 'END {print NR}' $1)

but as for inserting this into the first line, i'm failing to do so. I've tried some of the other approaches on these forums but none so far have been able to do so.

I've tried:

sed '1i$filesize' $1

but sed i requires a string, not a variable so no go I've also tried:

mv "$1" "${1}.bak" 2>/dev/null || touch "${1}.bak"
cat $filesize "${1}.bak" >"$1"

but again with no luck as cat seems to need an input stream Just to recap, i want to insert a line at the start of a given file that holds the number of lines the original file has.

ie the file:

a
b
c
d
e

should become:

5
a
b
c

[code].....

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved