Aloha! I have just over 1k of users that have permissions that they shouldn't under our system. I need to parse a provided list of usernames, check their permissions file, and strip the permissions that they are not allowed to have. If upon the permissions strip they are left with no permissions,... (6 Replies)
Hi,
In ksh we use 'while read line' statement to read a file line by line. In my input file I have 5 spaces appended at the end of each line. When I use while read line statement it chops off the spaces at the end of each line
Inp.txt
aaaa<five spaces>
bbbb<five spaces>
cccc<five spaces>
... (3 Replies)
Hello, I am quite new in shell scripting and I would like to write a little scritp to run a program on some parameters files.
all my parameters files are in the same directory, so pick them up with
ls *.para >>dirafter that I have a dir file like that:
param1.para
param2.para
etc...
I... (2 Replies)
So, the beginning of my script will cat & grep a file with the output directed to a new file. The data I have in this file needs to be parsed, read and evaluated.
Basically, I need to identify the latest date/time stamp and then calculate whether or not it is within 15 minutes of the current... (1 Reply)
Hi All,
I am new to the scripting and using solaris 10 OS. Please suggest me from the below script which modifications need to be done to delete the files more that 2days older. Current script is deleting existing file.
# Remove old explorer runs if needed
DIR=`dirname ${EXP_TARGET}`
if ... (2 Replies)
Hi Experts/Gurus,
Is there a way to remove lines in a file that are older than x days (i.e. 30 days) based on the date stamp in the first column?
Example.
$ date
Sat Jan 11 14:12:06 EDT 2014
$cat sample.txt
10-10-2013 09:00:01 AM|Line test 1234567
16-10-2013 08:30:00 AM|Line test... (6 Replies)
I have to display only those subscribers which are in "unconnected state" and the date is 90 days older than today's date.
Below command is used for this purpose:
cat vfsubscriber_20170817.csv | sed -e 's/^"//' -e '1d' | nawk -F '",' '{if ( (substr($11,2,4) == 2017) && ( substr($11,2,8) -lt... (1 Reply)
Hi,
I have some 2000 names in a table like below.
Java
Oracle/SQL
ANSI SQL
SQL,DWH,DB
DB&Java
And by using for loop in my code i am able to get a single word but if there is any special character or space then it is considering as a next line.
I have to execute the below queries in... (10 Replies)
Discussion started by: Samah
10 Replies
LEARN ABOUT DEBIAN
news
NEWS(1) USER COMMANDS NEWS(1)NAME
news - display system news
SYNOPSIS
news [-adDeflnpvxs] [[article1] [article2] ..]
DESCRIPTION
The news command keeps you informed of news concerning the system. Each news item is contained in a separate file in the /var/lib/sysnews
directory. Anyone having write permission to this directory can create a news file.
If you run the news command without any flags, it displays every unread file in the /var/lib/sysnews directory.
Each file is preceded by an appropriate header. To avoid reporting old news, the news command stores a currency time. The news command con-
siders your currency time to be the date the $HOME/.news_time file was last modified. Each time you read the news, the modification time of
this file changes to that of the reading. Only news item files posted after this time are considered unread.
OPTIONS -a, --all
Display all news, also the already read news.
-d, --datestamp
Add a date stamp to each article name printed. this can only be used with the -nl flags.
-D, --datefmt <fmt>
Specify a date format, see the strftime(3) man page for more details. the default format is (%b %d %Y)
-f, --newsdir <dir>
Read news from an alternate newsdir.
-l, --oneperline
One article name per line.
-n, --names
Only show the names of news articles.
-p, --page
Pipe articles through $PAGER or more(1) if the $PAGER environment variable is not set.
-s, --articles
Reports the number of news articles.
MAINTAINER OPTIONS -e, --expire #
Expire news older than # days.
-x, --exclude a,b,c
A comma separated list of articles which may not be expired. if a file named .noexpire exists in the /var/lib/sysnews direcory,
filenames are read from it also. names in this file may be comma separated, and/or one per line.
AUTHOR
Charles, <int@link.xs4all.nl>
Linux 18 January 1995 NEWS(1)