Search Results

Search: Posts Made By: in2nix4life
14,160
Posted By in2nix4life
Make sure you're using vim, and not vi. In...
Make sure you're using vim, and not vi.

In the file, switch to INSERT mode. Hit CTRL-V and release. Should see a ^ symbol. Type in the numeric value for the character.
Forum: Debian 06-01-2015
9,133
Posted By in2nix4life
No problem. :)
No problem. :)
Forum: Debian 06-01-2015
9,133
Posted By in2nix4life
Test it with this one: sed 's/^.*$/"&"/g'...
Test it with this one:


sed 's/^.*$/"&"/g' largefile.txt


Make the change to the file with this one and create a backup (largefile.txt.ORIG):

sed -i.ORIG 's/^.*$/"&"/g' largefile.txt
1,629
Posted By in2nix4life
sed -ne '/Registry Admin ID:/,/Registry Tech...
sed -ne '/Registry Admin ID:/,/Registry Tech ID:/{/Registry Admin ID:\|Registry Tech ID:/!p}'
19,947
Posted By in2nix4life
Setup SSH keys for password-less logins?
Setup SSH keys for password-less logins?
5,278
Posted By in2nix4life
You could use the find command. i.e. file...
You could use the find command.

i.e. file date is March 05, 2015

find /path/to/file -type -newermt 2015-03-05 -not -newermt 2015-03-06 -exec mv {} /path/to/folder \;
5,192
Posted By in2nix4life
awk 'NR==FNR{a[$1]=$0;next}($3 in a){print}'...
awk 'NR==FNR{a[$1]=$0;next}($3 in a){print}' file1 file2
20,176
Posted By in2nix4life
Here's a good explanation of the last command...
Here's a good explanation of the last command (http://linoxide.com/linux-command/linux-last-command/) to help you learn more about it.

In particular:

When you see down value, it means that the...
Forum: Red Hat 01-25-2015
6,144
Posted By in2nix4life
How is your network configured for your VM(s)?
How is your network configured for your VM(s)?
Forum: Debian 01-20-2015
6,388
Posted By in2nix4life
Could you post the contents of your...
Could you post the contents of your /etc/resolv.conf file?
Forum: SuSE 08-22-2014
21,226
Posted By in2nix4life
Try: grep DMI: /var/log/dmesg* If...
Try:


grep DMI: /var/log/dmesg*


If the old logs are gzipped then you may need to uncompress them first.
3,840
Posted By in2nix4life
Occam's Razor.... The simplest answer is...
Occam's Razor....

The simplest answer is usually the right one...;)
3,840
Posted By in2nix4life
# Print the file (print each element of the...
# Print the file (print each element of the array)
NUMBER=1
getArray "junk2"
for e in "${array[@]}"
do
project -C$e -A145 -G0.01k -L-2500/2500 -Q > junk3

cat junk3 | grdtrack...
11,260
Posted By in2nix4life
The following will read a file line-by-line....
The following will read a file line-by-line. Replace "users.txt" with the name and path to your file.


#!/usr/bin/expect -f
#

set fh [ open "users.txt" r]

set fileData [read $fh]

close...
2,001
Posted By in2nix4life
The information here...
The information here (http://www.faqs.org/docs/iptables/traversingoftables.html) may help make sense of it.
Forum: Red Hat 07-31-2014
1,925
Posted By in2nix4life
The -p switch allows the rpm command to perform...
The -p switch allows the rpm command to perform actions on a standalone rpm package, whether it be on the local filesystem or remote (URL).

i.e.

rpm -qip filename.rpm

Will list the...
Forum: AIX 07-31-2014
7,642
Posted By in2nix4life
True, but like the majority of postings on here,...
True, but like the majority of postings on here, we never seem to get the entire picture. Just the bits and pieces...:D
Forum: AIX 07-30-2014
7,642
Posted By in2nix4life
Here's a hack that may help. TEST As...
Here's a hack that may help.

TEST
As root, create a file, let's call it pdictlst, and make sure only root has read\write permissions.

Add a user's username to the file and save it.

Use...
4,417
Posted By in2nix4life
netstat -antu | awk...
netstat -antu | awk '/LISTEN|ESTABLISHED|TIME_WAIT/{a[$6]++}; END { for(b in a) print "Count of "b" is: "a[b]}'
4,065
Posted By in2nix4life
If you have the tee command, replace >> $LOGFILE...
If you have the tee command, replace >> $LOGFILE with tee -a $LOGFILE and it should direct the output both to the console and the log file.
5,778
Posted By in2nix4life
Simplest solution... Wrap your awk command in a...
Simplest solution... Wrap your awk command in a script and detect which OS the script is being executed on and run the correct awk command. :D
5,778
Posted By in2nix4life
Most awk on Linux do not recognize [A-Z]{3} which...
Most awk on Linux do not recognize [A-Z]{3} which is called an interval expression, but it can be enabled like so:


echo -e "Sun 12 Jul BST 2014\nSun 12 Jul 2014\nSun 12 Jul IS 2014" | awk...
3,473
Posted By in2nix4life
Maybe something like this: zip...
Maybe something like this:


zip APP_Deg_Dummy_$(ls | head -n1 | awk -F_ '{print substr($2, 1, 8)"TM"substr($2, 10, 6)}').zip Dummytest_20140601W110515_file*
adding:...
1,531
Posted By in2nix4life
awk '/^>/{print...
awk '/^>/{print ">"$3;getline;print;getline;print}'
3,722
Posted By in2nix4life
So you're trying to start mousepad and then...
So you're trying to start mousepad and then immediately kill it? Please provide more detail on what you're trying to accomplish.
Showing results 1 to 25 of 500

 
All times are GMT -4. The time now is 08:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy