10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I have a .csv file that has ~600 columns and thousands of rows. I would like to create a numerical list of the column names (so that I can later easily select the columns I want to extract). The format that I would hope for is something like:
1 "ID"
2 "X"
3 "Y"
..
600 "Z"
... (4 Replies)
Discussion started by: aberg
4 Replies
2. Shell Programming and Scripting
Data files coming in different names in a file name called process.txt.
1. shipments_yyyymmdd.gz
2 Order_yyyymmdd.gz
3. Invoice_yyyymmdd.gz
4. globalorder_yyyymmdd.gz
The process needs to discard all the below files and only process two of the 4 file names available
... (1 Reply)
Discussion started by: dsravanam
1 Replies
3. Shell Programming and Scripting
Hi,
I want to display the file names and the record count for the files in the 2nd column for the files created today.
i have written the below command which is listing the file names. but while piping the above command to the wc -l command
its not working for me.
ls -l... (5 Replies)
Discussion started by: Showdown
5 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
Could you please help to resolve my following issues:
Problem Description:
Suppose my user name is "MI90".
i.e. $USER = MI90
when i run below command, i get all the processes running on the system containing name MQ.
ps -ef | grep MQ
But sometimes it lists... (8 Replies)
Discussion started by: KDMishra
8 Replies
5. Shell Programming and Scripting
Hi,
I want to display latest files (created or modified) recursively in a path.
I tried in different ways, but didn't get any desired output:
find $path -type f -exec ls -lt {} \; | sort -n -r
find $path -type f -printf %p";" | xargs -d ";" ls -t
Second one is giving the error:... (21 Replies)
Discussion started by: karumudi7
21 Replies
6. Shell Programming and Scripting
Hi,
I'm trying to use a config file to define frequencies for checking log files. If the config file contains a frequency it will be used else a default value. The format of the config file (and hence the environment variable) is
FREQ_log_logname=value
A test shell script as below:... (2 Replies)
Discussion started by: u671296
2 Replies
7. UNIX for Advanced & Expert Users
Hello,
When listing the file systems (using ls -ltr) , if the group names are longer the group name is getting truncated.
Can someone help with the script which would display the truncated group name?
I appreciate if someone could help in this regard. (1 Reply)
Discussion started by: mike12
1 Replies
8. Shell Programming and Scripting
Sun Solaris Unix Question
Haven't been able to find any solution for this situation. Let's just say the file names listed below exist in a directory. I want the find command to find all files in this directory but at the same time I want to eliminate certain file names or files with certain... (2 Replies)
Discussion started by: 2reperry
2 Replies
9. UNIX for Dummies Questions & Answers
This is what I have to do:
Display the full file name (including the full path) and file size of all files whose name (excluding the path) is exactly 3 characters long.
This is the code I have:
find / -printf "Name: %f Path: %h Size: %s (bytes)\n" 2>/dev/null | grep -E "Name: .{3,} Path" |... (7 Replies)
Discussion started by: Joesgrrrl
7 Replies
10. UNIX for Dummies Questions & Answers
hello all,
iam new to shell scripting.I have searched the forum and could'nd find a close enough answer and hence this post:
I want to list all the file names whose names don't start as abc.
For example if my folder constains files with names: abc123.txt,erdf23.rdf,ed45r.fmb
i want a... (13 Replies)
Discussion started by: valluvan
13 Replies
Wiki::Toolkit::Feed::Listing(3pm) User Contributed Perl Documentation Wiki::Toolkit::Feed::Listing(3pm)
NAME
Wiki::Toolkit::Feed::Listing - parent class for Feeds from Wiki::Toolkit.
DESCRIPTION
Handles common data fetching tasks, so that child classes need only worry about formatting the feeds.
Also enforces some common methods that must be implemented.
METHODS
"fetch_recently_changed_nodes"
Based on the supplied criteria, fetch a list of the recently changed nodes
"fetch_newest_for_recently_changed"
Based on the supplied criteria (but not using all of those used by fetch_recently_changed_nodes), find the newest node from the recently
changed nodes set. Normally used for dating the whole of a Feed.
"fetch_node_all_versions"
For a given node (name or ID), return all the versions there have been, including all metadata required for it to go into a "recent
changes" style listing.
"recent_changes"
Build an Atom Feed of the recent changes to the Wiki::Toolkit instance, using any supplied parameters to narrow the results.
If the argument "also_return_timestamp" is supplied, it will return an array of the feed, and the feed timestamp. Otherwise it just returns
the feed.
"node_all_versions"
Build an Atom Feed of all the different versions of a given node.
If the argument "also_return_timestamp" is supplied, it will return an array of the feed, and the feed timestamp. Otherwise it just returns
the feed.
"format_geo"
Using the geo and space xml namespaces, format the supplied node metadata into geo: and space: tags, suitable for inclusion in a feed with
those namespaces imported.
The following are methods that any feed renderer must provide:
"feed_timestamp"
All implementing feed renderers must implement a method to produce a feed specific timestamp, based on the supplied node
"generate_node_list_feed"
All implementing feed renderers must implement a method to produce a feed from the supplied list of nodes
"generate_node_name_distance_feed"
All implementing feed renderers must implement a method to produce a stripped down feed from the supplied list of node names, and
optionally locations and distance from a reference point.
"parse_feed_timestamp"
Take a feed_timestamp and return a Time::Piece object.
MAINTAINER
The Wiki::Toolkit team, http://www.wiki-toolkit.org/.
COPYRIGHT AND LICENSE
Copyright 2006-2009 the Wiki::Toolkit team.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2011-09-25 Wiki::Toolkit::Feed::Listing(3pm)