Search Results

Search: Posts Made By: luke222010
2,546
Posted By luke222010
awk trailing character removal
Hi,

The command - id | awk '{print $1}' - returns the following:
uid=9028(luke)

What do I need to further that awk so that I only have "luke", I want to set this as a variable.

Thanks in...
8,958
Posted By luke222010
Hi, I've now got this: cat $file1 | while...
Hi,

I've now got this:
cat $file1 | while read line
do
grep $line $file2
if [[ $? != 0 ]]
then
echo $line >> $file2
else
ex $file2
/ESI185
/^$
i
EOF
...
8,958
Posted By luke222010
Using Ex editor commands in a shell script - Help!
Hi all,

I am trying to use the Ex editor and its commands in a script - more specifically within an if statement within a while loop.

Here are the basics of the loop:
cat $file1 | while read...
Showing results 1 to 3 of 3

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